/* 스웨덴어 학습관 메인 컨테이너 */
.sv-container {
    max-width: 920px;
    margin: 20px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    font-family: 'Malgun Gothic', sans-serif;
}

    .sv-container h1 {
        color: #005293;
        font-size: 1.8em;
        margin-bottom: 8px;
    }

.sv-subtitle {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 25px;
}

.sv-mt-40 {
    margin-top: 40px;
}

/* 섹션 헤더 및 연속 재생 버튼 */
.sv-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #ebf5fb;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.sv-section-title {
    color: #005293;
    font-size: 1.3em;
    text-align: left;
    margin: 0;
}

.sv-play-all-btn {
    background: #005293;
    color: #fecb00;
    border: none;
    padding: 7px 15px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 82, 147, 0.25);
    transition: all 0.2s ease;
}

    .sv-play-all-btn:hover {
        background: #003d70;
        transform: translateY(-1px);
    }

    .sv-play-all-btn.playing {
        background: #c0392b;
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(192, 57, 43, 0.3);
    }

/* 자동 연속 재생 중 현재 읽고 있는 카드 하이라이트 */
.sv-card-speaking {
    border-color: #fecb00 !important;
    background-color: #fef9e7 !important;
    transform: translateY(-6px) scale(1.03) !important;
    box-shadow: 0 8px 20px rgba(254, 203, 0, 0.45) !important;
    z-index: 2;
}

/* 상단 네비게이션 탭 */
.sv-nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.sv-tab-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #555;
    padding: 10px 18px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sv-tab-btn:hover {
        border-color: #005293;
        color: #005293;
    }

    .sv-tab-btn.active {
        background: #005293;
        border-color: #005293;
        color: #fecb00;
        box-shadow: 0 4px 10px rgba(0, 82, 147, 0.3);
    }

/* 탭 콘텐츠 전환 효과 */
.sv-tab-content {
    display: none;
    animation: svFadeIn 0.3s ease;
}

    .sv-tab-content.active {
        display: block;
    }

@keyframes svFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. 알파벳 플래시 카드 그리드 */
.sv-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 15px;
}

.sv-card {
    background: #fff;
    border: 2px solid #d4e6f1;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .sv-card:hover {
        transform: translateY(-5px);
        border-color: #005293;
        box-shadow: 0 5px 15px rgba(0,82,147,0.2);
    }

    .sv-card .letter {
        font-size: 2.1em;
        font-weight: bold;
        color: #005293;
        margin: 0;
        line-height: 1.2;
    }

    .sv-card .letter-sub {
        font-size: 0.6em;
        color: #95a5a6;
    }

    .sv-card .emoji {
        font-size: 2em;
        margin: 8px 0;
    }

    .sv-card .word {
        font-size: 0.9em;
        color: #34495e;
        font-weight: bold;
    }

.sv-sound-btn {
    background: #005293;
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 0.8em;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
}

/* 2. 구개음화 및 특수 자음 카드 */
.sv-pron-desc {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95em;
    text-align: left;
}

.sv-pron-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 15px;
}

.sv-pron-card {
    background: #fff;
    border: 2px solid #f9e79f;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sv-pron-card:hover {
        transform: translateY(-5px);
        border-color: #d4ac0d;
        box-shadow: 0 5px 15px rgba(212,172,13,0.25);
    }

.sv-badge-type {
    display: inline-block;
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 6px;
}

.sv-badge-pal {
    background: #ebf5fb;
    color: #005293;
    border: 1px solid #aed6f1;
}

.sv-badge-con {
    background: #fef9e7;
    color: #b7950b;
    border: 1px solid #f9e79f;
}

.sv-badge-etc {
    background: #e8f8f5;
    color: #16a085;
    border: 1px solid #a3e4d7;
}

.sv-pron-symbol {
    font-size: 1.65em;
    font-weight: bold;
    color: #2c3e50;
    margin: 2px 0;
}

.sv-pron-sound {
    font-size: 0.9em;
    color: #d35400;
    font-weight: bold;
    margin-bottom: 6px;
}

.sv-pron-emoji {
    font-size: 1.8em;
    margin: 5px 0;
}

.sv-pron-word {
    font-size: 0.95em;
    font-weight: bold;
    color: #34495e;
}

.sv-pron-card .sv-sound-btn {
    background: #b7950b;
}

/* 3. 고유 모음 및 연음 규칙 카드 */
.sv-accent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 15px;
}

.sv-accent-card {
    background: #fff;
    border: 2px solid #aed6f1;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sv-accent-card:hover {
        transform: translateY(-5px);
        border-color: #005293;
        box-shadow: 0 5px 15px rgba(0,82,147,0.18);
    }

.sv-acc-name {
    font-size: 0.75em;
    color: #7f8c8d;
    font-weight: bold;
    margin-bottom: 4px;
}

.sv-acc-symbol {
    font-size: 1.6em;
    font-weight: bold;
    color: #005293;
    margin: 4px 0;
}

.sv-acc-sound {
    font-size: 0.84em;
    color: #2c3e50;
    background: #ebf5fb;
    padding: 3px 6px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.sv-acc-emoji {
    font-size: 1.8em;
    margin: 4px 0;
}

.sv-acc-word {
    font-size: 0.92em;
    font-weight: bold;
    color: #34495e;
}

.sv-accent-card .sv-sound-btn {
    background: #005293;
}

.sv-liaison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 15px;
}

.sv-liaison-card {
    background: #fef9e7;
    border: 2px solid #f7dc6f;
    border-radius: 12px;
    padding: 18px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sv-liaison-card:hover {
        transform: translateY(-5px);
        border-color: #005293;
        background: #ffffff;
        box-shadow: 0 5px 15px rgba(0,82,147,0.18);
    }

.sv-lia-rule {
    display: inline-block;
    background: #005293;
    color: #fecb00;
    font-size: 0.75em;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.sv-lia-phrase {
    font-size: 1.55em;
    font-weight: bold;
    color: #2c3e50;
    margin: 4px 0;
}

.sv-lia-pron {
    font-size: 1em;
    font-weight: bold;
    color: #d35400;
    margin-bottom: 6px;
}

.sv-lia-meaning {
    font-size: 0.88em;
    color: #555;
    margin-bottom: 6px;
}

/* 4. 기초 인사말 · 숫자 · 요일 · 월 단어장 */
.sv-greet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 15px;
}

.sv-greet-card {
    background: #fff;
    border: 2px solid #d1f2eb;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sv-greet-card:hover {
        transform: translateY(-5px);
        border-color: #16a085;
        box-shadow: 0 5px 15px rgba(22,160,133,0.18);
    }

.sv-grt-emoji {
    font-size: 2em;
    margin-bottom: 6px;
}

.sv-grt-sv {
    font-size: 1.3em;
    font-weight: bold;
    color: #16a085;
    margin-bottom: 2px;
}

.sv-grt-pron {
    font-size: 0.85em;
    color: #d35400;
    font-weight: bold;
    margin-bottom: 6px;
}

.sv-grt-ko {
    font-size: 0.9em;
    color: #34495e;
    font-weight: bold;
}

.sv-greet-card .sv-sound-btn {
    background: #16a085;
}

.sv-num-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 12px;
}

.sv-num-card {
    background: #fef9e7;
    border: 2px solid #f9e79f;
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sv-num-card:hover {
        transform: translateY(-5px);
        border-color: #b7950b;
        background: #fff;
        box-shadow: 0 5px 15px rgba(183,149,11,0.18);
    }

.sv-num-digit {
    font-size: 2em;
    font-weight: bold;
    color: #b7950b;
    line-height: 1.1;
}

.sv-num-sv {
    font-size: 1.25em;
    font-weight: bold;
    color: #2c3e50;
    margin: 4px 0 2px 0;
}

.sv-num-pron {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: bold;
}

.sv-num-card .sv-sound-btn {
    background: #d4ac0d;
}

.sv-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.sv-day-card {
    background: #fff;
    border: 2px solid #d4efdf;
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sv-day-card:hover {
        transform: translateY(-5px);
        border-color: #27ae60;
        box-shadow: 0 5px 15px rgba(39,174,96,0.18);
    }

.sv-day-ko {
    font-size: 0.85em;
    font-weight: bold;
    color: #27ae60;
    background: #eafaf1;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 6px;
}

.sv-day-sv {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2px;
}

.sv-day-pron {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: bold;
}

.sv-day-card .sv-sound-btn {
    background: #27ae60;
}

.sv-month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
}

.sv-month-card {
    background: #fff;
    border: 2px solid #d6eaf8;
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sv-month-card:hover {
        transform: translateY(-5px);
        border-color: #005293;
        box-shadow: 0 5px 15px rgba(0,82,147,0.18);
    }

.sv-mon-badge {
    font-size: 0.8em;
    font-weight: bold;
    color: #005293;
    background: #ebf5fb;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 6px;
}

.sv-mon-sv {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2px;
}

.sv-mon-pron {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: bold;
}

.sv-month-card .sv-sound-btn {
    background: #005293;
}
/* 5. 듣고 맞추기 퀴즈 */
.sv-listen-box {
    background: #ebf5fb;
    border: 2px solid #85c1e9;
    border-radius: 15px;
    padding: 25px 20px;
    max-width: 680px;
    margin: 0 auto;
}

.sv-quiz-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.sv-filter-btn {
    background: #ffffff;
    border: 1px solid #005293;
    color: #005293;
    padding: 6px 14px;
    font-size: 0.88em;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

    .sv-filter-btn:hover {
        background: #d4e6f1;
    }

    .sv-filter-btn.active {
        background: #005293;
        border-color: #005293;
        color: #fecb00;
    }

.sv-score-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #85c1e9;
    font-weight: bold;
    color: #005293;
}

.sv-score-num {
    font-size: 1.2em;
    color: #27ae60;
}

.sv-big-speaker-btn {
    background: #005293;
    color: #fecb00;
    border: none;
    padding: 16px 32px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 82, 147, 0.3);
    transition: transform 0.15s;
    margin: 10px 0 25px 0;
}

    .sv-big-speaker-btn:hover {
        background: #003d70;
        transform: scale(1.05);
    }

    .sv-big-speaker-btn:active {
        transform: scale(0.98);
    }

.sv-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 550px) {
    .sv-options-grid {
        grid-template-columns: 1fr;
    }
}

.sv-option-card {
    background: white;
    border: 2px solid #d4e6f1;
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: bold;
    color: #2c3e50;
}

    .sv-option-card:hover {
        border-color: #005293;
        background: #f4f9fd;
    }

    .sv-option-card.correct {
        background: #d4edda;
        border-color: #28a745;
        color: #155724;
    }

    .sv-option-card.wrong {
        background: #f8d7da;
        border-color: #dc3545;
        color: #721c24;
        opacity: 0.7;
    }

.sv-opt-tag {
    font-size: 0.72em;
    color: #7f8c8d;
    background: #f1f2f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.sv-opt-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05em;
}

.sv-opt-emoji {
    font-size: 1.6em;
}

.sv-feedback-msg {
    font-size: 1.15em;
    font-weight: bold;
    min-height: 28px;
    margin-bottom: 15px;
}

.sv-next-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1.05em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: none;
}

    .sv-next-btn:hover {
        background: #219150;
    }
