/* guide.html 전용 스타일 */

/* 헤더 로고 링크 스타일 */
.logo {
    text-decoration: none;
    color: white;
}

.nav-active {
    text-decoration: underline !important;
    opacity: 0.9;
}

/* 가이드 히어로 */
.guide-hero {
    background: var(--gradient-1);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.guide-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.guide-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* 내부 앵커 네비게이션 */
.guide-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.guide-nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    border: 2px solid rgba(255,255,255,0.4);
}

.guide-nav-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* 가이드 섹션 공통 */
.guide-section {
    padding: 4rem 2rem;
}

.guide-section-alt {
    background: var(--light);
}

.guide-container {
    max-width: 800px;
    margin: 0 auto;
}

.guide-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.guide-section-icon {
    font-size: 2.5rem;
}

.guide-section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
}

/* 가이드 본문 */
.guide-content {
    color: #444;
    line-height: 1.8;
}

.guide-content p {
    margin-bottom: 1rem;
}

.guide-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0 0.75rem;
}

.rule-list, .how-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.rule-list li, .how-list li {
    margin-bottom: 0.5rem;
}

/* 특징 목록 */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* 난이도 가이드 */
.difficulty-guide {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.diff-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
}

.diff-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.diff-item span {
    font-size: 0.85rem;
    font-weight: 400;
}

.diff-easy {
    background: #e8f5e9;
    color: #2e7d32;
}

.diff-medium {
    background: #fff3e0;
    color: #e65100;
}

.diff-hard {
    background: #fce4ec;
    color: #c62828;
}

/* CTA 버튼 */
.guide-cta {
    margin-top: 2rem;
    text-align: center;
}

.guide-play-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.guide-play-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.guide-play-btn-alt {
    background: var(--secondary);
}

.guide-play-btn-alt:hover {
    background: #003a6b;
}

/* 팁 그리드 */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.tip-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* 전략 카드 */
.strategy-card {
    background: white;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem;
    box-shadow: var(--shadow-sm);
}

.strategy-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.75rem;
}

.strategy-example {
    background: var(--light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.strategy-example code {
    display: block;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    color: var(--secondary);
}

.strategy-tip {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 0 0;
}

/* 단축키 표 */
.shortcut-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0 1.5rem;
}

.shortcut-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.shortcut-key {
    background: var(--dark);
    color: white;
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 150px;
    text-align: center;
}

/* 점수 표 */
.score-table {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.75rem 0 1.5rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.score-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--light);
}

.score-row:last-child {
    border-bottom: none;
}

.highlight-row {
    background: #fff3e0;
    font-weight: 700;
    color: var(--primary-dark);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.6rem !important;
}

.faq-answer {
    font-size: 0.95rem;
    color: #555;
    margin: 0 !important;
    line-height: 1.7;
}

/* diff-item span 여러 개 */
.diff-item span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
}

/* 맨 위로 */
.guide-back-top {
    text-align: right;
    margin-top: 2rem;
}

.back-top-btn {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.back-top-btn:hover {
    opacity: 0.7;
}

/* 반응형 */
@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 1.6rem;
    }

    .guide-hero {
        padding: 2rem 1rem;
    }

    .guide-section {
        padding: 2.5rem 1rem;
    }

    .guide-section-header h2 {
        font-size: 1.5rem;
    }

    .difficulty-guide {
        flex-direction: column;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .strategy-card {
        padding: 1rem 1.25rem;
    }

    .shortcut-key {
        min-width: 120px;
        font-size: 0.78rem;
    }

    .score-row {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .faq-item {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .guide-nav {
        gap: 0.5rem;
    }

    .guide-nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .guide-section-icon {
        font-size: 2rem;
    }

    .guide-section-header h2 {
        font-size: 1.4rem;
    }
}
