/* 포르투갈어 학습관 메인 컨테이너 */
.pt-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;
}

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

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

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

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

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

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

    .pt-play-all-btn:hover {
        background: #004d26;
        transform: translateY(-1px);
    }

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

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

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

.pt-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;
}

    .pt-tab-btn:hover {
        border-color: #006633;
        color: #006633;
    }

    .pt-tab-btn.active {
        background: #006633;
        border-color: #006633;
        color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 102, 51, 0.3);
    }

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

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

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

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

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

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

    .pt-card:hover {
        transform: translateY(-5px);
        border-color: #006633;
        box-shadow: 0 5px 15px rgba(0,102,51,0.2);
    }

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

    .pt-card .letter-sub {
        font-size: 0.6em;
        color: #aaa;
    }

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

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

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

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

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

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

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

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

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

.pt-badge-dip {
    background: #ebf5fb;
    color: #2980b9;
    border: 1px solid #aed6f1;
}

.pt-badge-con {
    background: #eafaf1;
    color: #006633;
    border: 1px solid #a9dfbf;
}

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

.pt-pron-sound {
    font-size: 0.92em;
    color: #c0392b;
    font-weight: bold;
    margin-bottom: 6px;
}

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

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

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

/* 3. 강세 부호 및 연음 카드 */
.pt-accent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 15px;
}

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

    .pt-accent-card:hover {
        transform: translateY(-5px);
        border-color: #c0392b;
        box-shadow: 0 5px 15px rgba(192,57,43,0.18);
    }

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

.pt-acc-symbol {
    font-size: 1.65em;
    font-weight: bold;
    color: #c0392b;
    margin: 4px 0;
}

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

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

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

.pt-accent-card .pt-sound-btn {
    background: #c0392b;
}

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

.pt-liaison-card {
    background: #eafaf1;
    border: 2px solid #82e0aa;
    border-radius: 12px;
    padding: 18px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .pt-liaison-card:hover {
        transform: translateY(-5px);
        border-color: #006633;
        background: #ffffff;
        box-shadow: 0 5px 15px rgba(0,102,51,0.18);
    }

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

.pt-lia-phrase {
    font-size: 1.7em;
    font-weight: bold;
    color: #2c3e50;
    letter-spacing: 0.5px;
    margin: 4px 0;
}

.pt-lia-pron {
    font-size: 1.05em;
    font-weight: bold;
    color: #c0392b;
    margin-bottom: 6px;
}

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

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

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

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

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

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

.pt-grt-pron {
    font-size: 0.88em;
    color: #c0392b;
    font-weight: bold;
    margin-bottom: 6px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.pt-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;
}

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

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

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

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

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

    .pt-month-card:hover {
        transform: translateY(-5px);
        border-color: #2980b9;
        box-shadow: 0 5px 15px rgba(41,128,185,0.18);
    }

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

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

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

.pt-month-card .pt-sound-btn {
    background: #2980b9;
}
/* 5. 듣고 맞추기 퀴즈 */
.pt-listen-box {
    background: #eafaf1;
    border: 2px solid #82e0aa;
    border-radius: 15px;
    padding: 25px 20px;
    max-width: 680px;
    margin: 0 auto;
}

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

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

    .pt-filter-btn:hover {
        background: #d4efdf;
    }

    .pt-filter-btn.active {
        background: #006633;
        border-color: #006633;
        color: #ffffff;
    }

.pt-score-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #82e0aa;
    font-weight: bold;
    color: #006633;
}

.pt-score-num {
    font-size: 1.2em;
    color: #d4ac0d;
}

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

    .pt-big-speaker-btn:hover {
        background: #004d26;
        transform: scale(1.05);
    }

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

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

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

.pt-option-card {
    background: white;
    border: 2px solid #d4efdf;
    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;
}

    .pt-option-card:hover {
        border-color: #006633;
        background: #f4fbf7;
    }

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

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

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

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

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

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

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

    .pt-next-btn:hover {
        background: #b7950b;
    }
