/* ====================================
   K포커 SEO 페이지 스타일시트
   Target: 40대 남성 / 신뢰감 있는 디자인
   ==================================== */

/* CSS 변수 */
:root {
    --primary-color: #1a237e;
    --secondary-color: #3949ab;
    --accent-color: #ff6f00;
    --success-color: #2e7d32;
    --warning-color: #f57c00;
    --danger-color: #c62828;
    --text-primary: #212121;
    --text-secondary: #616161;
    --text-light: #9e9e9e;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* 기본 리셋 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 링크 스타일 */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 헤더 */
.site-header {
    background: var(--bg-dark);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.main-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    border-radius: 6px;
    object-fit: contain;
}

.logo:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.logo:hover .logo-img {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: var(--radius);
    white-space: nowrap;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb ol {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb li::after {
    content: '>';
    margin-left: 10px;
    opacity: 0.7;
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: white;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.rating-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.3rem;
}

.review-count {
    opacity: 0.8;
}

/* 목차 */
.table-of-contents {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.table-of-contents h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.table-of-contents ol {
    columns: 2;
    column-gap: 40px;
    padding-left: 20px;
}

.table-of-contents li {
    margin-bottom: 10px;
    break-inside: avoid;
}

.table-of-contents a {
    color: var(--text-primary);
}

.table-of-contents a:hover {
    color: var(--secondary-color);
}

/* 콘텐츠 섹션 */
.content-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.content-section:nth-child(even) {
    background: var(--bg-secondary);
}

.content-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.content-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.content-section h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 30px 0 15px;
}

.content-section p {
    margin-bottom: 20px;
    text-align: justify;
}

.content-section ul, .content-section ol {
    margin: 20px 0;
    padding-left: 25px;
}

.content-section li {
    margin-bottom: 10px;
}

/* 테이블 스타일 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: var(--bg-secondary);
}

.info-table th {
    width: 30%;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.hand-ranking-table {
    font-size: 0.95rem;
}

.hand-ranking-table td:first-child {
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
}

/* 카드 스타일 */
.bonus-card, .channel-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.bonus-card h4, .channel-card h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 알림 박스 */
.notice-box, .security-notice, .warning-box, .legal-box {
    padding: 25px;
    border-radius: var(--radius);
    margin: 25px 0;
}

.notice-box {
    background: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
}

.security-notice {
    background: #e8f5e9;
    border-left: 4px solid var(--success-color);
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid var(--warning-color);
}

.legal-box {
    background: #fce4ec;
    border-left: 4px solid var(--danger-color);
}

.notice-box h4, .security-notice h4, .warning-box h4, .legal-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* 리뷰 섹션 */
.review-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.overall-rating {
    text-align: center;
}

.rating-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.rating-stars {
    display: block;
    color: #ffc107;
    font-size: 1.5rem;
    margin: 10px 0;
}

.rating-count {
    color: var(--text-secondary);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-bar .bar {
    flex: 1;
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 6px;
}

.category-rating {
    max-width: 500px;
}

.category-rating td:last-child {
    color: #ffc107;
    font-weight: 600;
}

/* 사용자 리뷰 카드 */
.user-review {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--primary-color);
}

.reviewer-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.review-rating {
    color: #ffc107;
}

.review-text {
    margin-bottom: 10px;
}

.user-review time {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ 섹션 */
.faq-list {
    max-width: 900px;
}

.faq-item {
    margin-bottom: 15px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

/* 법적 고지 섹션 */
.legal-section {
    background: var(--bg-secondary);
}

.legal-section h5 {
    margin: 20px 0 10px;
    font-size: 1rem;
}

.copyright-notice {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 푸터 */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* 이미지 figure 스타일 */
.hand-rankings-figure {
    margin: 30px 0;
    text-align: center;
}

.hand-rankings-figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hand-rankings-figure figcaption {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hand-rankings-figure figcaption strong {
    color: var(--primary-color);
}

/* 고객센터 채널 그리드 */
.support-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.channel-card.primary {
    border: 2px solid var(--primary-color);
    position: relative;
}

.channel-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.channel-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 지원 유형 테이블 */
.support-types-table {
    width: 100%;
    margin: 20px 0;
}

/* 팁 박스 */
.tip-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 25px 0;
    border-left: 4px solid var(--success-color);
}

.tip-box h4 {
    color: var(--success-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.tip-box ul {
    margin-bottom: 0;
}

/* 정보 알림 박스 */
.notice-box.info {
    background: #e1f5fe;
    border-left-color: #0288d1;
}

.notice-box.info h4 {
    color: #0288d1;
}

/* 반응형 */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 4px;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .main-nav .nav-container {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .table-of-contents ol {
        columns: 1;
    }
    
    .review-summary {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px;
    }
    
    .rating-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .rating-summary {
        flex-direction: column;
    }
}

/* 인쇄 스타일 */
@media print {
    .site-header, .site-footer, .table-of-contents {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
}

/* 접근성 */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 스크롤 인디케이터 */
html {
    scroll-padding-top: 80px;
}
