/* Base Container */
.intro-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media screen and (max-width: 768px) {
    .intro-container {
        padding: 2rem 0rem;
    }
}

/* Introduction Section */
.intro-section {
    margin-bottom: 3rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.intro-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.intro-paragraph {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.625;
}

/* Tips Box */
.tips-box {
    background-color: #EBF8FF;
    border-left: 4px solid #3182CE;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.tips-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.tips-bullet {
    color: #3182CE;
    margin-right: 0.5rem;
}

/* Chapters */
.chapters-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.chapter-block {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    scroll-margin-top: 80px;
}

@media screen and (max-width: 768px) {
    .chapter-block {
        padding: 1rem;
    }
}

.chapter-header {
    margin-bottom: 2rem;
}

.chapter-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6B7280;
}

.chapter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.chapter-subtitle {
    color: #4B5563;
    margin-top: 0.25rem;
}

.chapter-intro {
    margin-top: 1rem;
    font-size: 1.125rem;
}

.section {
    margin-bottom: 2rem;
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-intro {
    margin-bottom: 1rem;
    color: #374151;
}

/* =====================
   UNIFIED CARD SYSTEM
   ===================== */

/* Card Grids - Unified */
.card-grid {
    display: grid;
    gap: 1rem;
}

.card-grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.card-grid-md {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media screen and (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Base Styles */
.card {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #E5E7EB;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
}

.card-subtitle {
    color: #4B5563;
    font-size: 0.875rem;
}

.card-section {
    margin-bottom: 0.75rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section-alt {
    border-top: 1px solid #E5E7EB;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.card-label {
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.card-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E5E7EB;
}

/* =====================
   UNIFIED LIST ITEMS
   ===================== */

.list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-item {
    background-color: #F9FAFB;
    border-radius: 0.25rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-accent {
    background: linear-gradient(to right, #F9FAFB, white);
    border-left: 4px solid #10B981;
}

.list-content {
    flex-grow: 0;
}

/* =====================
   LANGUAGE PAIRS
   ===================== */

.sourceLanguage {
    font-weight: 700;
    font-size: 1.125rem;
    color: #059669;
}

.translatedLanguage {
    color: #4B5563;
}

.translation-arrow {
    margin: 0 0.75rem;
    color: #9CA3AF;
}

.translation-pair {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .card-section.flex {
        justify-content: space-between;
    }
}

/* =====================
   CONTEXT ANNOTATIONS
   ===================== */

.usage-note {
    margin-left: 1rem;
    font-size: 0.875rem;
    color: #4B5563;
}

.formal-tag {
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background-color: #DBEAFE;
    color: #1E40AF;
    font-size: 0.75rem;
    border-radius: 0.125rem;
}

.example-text {
    font-size: 0.875rem;
    color: #059669;
    margin-top: 0.25rem;
}

.example-translation {
    color: #6B7280;
    font-style: italic;
}

/* =====================
   AUDIO BUTTONS
   ===================== */

.audio-btn {
    margin-left: 5px;
    background-color: #3B82F6;
    color: white;
    border-radius: 50%;
    min-width: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    margin-left: auto;
}

@media screen and (max-width: 768px) {
    .audio-btn {
        margin-left: 1rem;
    }
}

.audio-btn:hover {
    background-color: #2563EB;
}

.audio-btn-green {
    background-color: #10B981;
}

.audio-btn-green:hover {
    background-color: #059669;
}

.audio-btn-yellow {
    background-color: #F59E0B;
}

.audio-btn-yellow:hover {
    background-color: #D97706;
}

/* =====================
   SPECIAL CARD TYPES
   ===================== */

/* Conjugation Table */
.conjugation-table {
    background-color: #FEF3C7;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.conjugation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.conjugation-item {
    background-color: white;
    border-radius: 0.25rem;
    padding: 1rem;
    border: 2px solid #FDE68A;
}

.conjugation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.conjugation-pronoun {
    font-weight: 700;
    font-size: 1.125rem;
}

.conjugation-verb {
    margin: 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563EB;
}

.conjugation-translation {
    color: #4B5563;
}

.conjugation-examples {
    font-size: 0.875rem;
    border-top: 1px solid #E5E7EB;
    padding-top: 0.5rem;
}

/* Color Swatches */
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
    margin-left: 0.5rem;
}

/* Gender Type Tags */
.gender-tag {
    padding: 0.25rem 0.75rem;
    background-color: #DBEAFE;
    color: #1E40AF;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

/* Double Consonants */
.consonant-single {
    color: #3B82F6;
}

.consonant-double {
    color: #8B5CF6;
    letter-spacing: 0.025em;
}

/* Trait Opposites */
.trait-positive {
    color: #059669;
    font-weight: 700;
}

.trait-negative {
    color: #DC2626;
    font-weight: 700;
}

/* False Friends */
.card-correct {
    background-color: #DCFCE7;
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.card-incorrect {
    background-color: #FEE2E2;
    border-radius: 0.25rem;
    padding: 0.75rem;
}

/* =====================
   STORY/PRACTICE
   ===================== */

.introduction-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
}

.story-container {
    background-color: #DEB2000F;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.story-title {
    color: #92400E;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.vocabulary-help {
    background-color: #DBEAFE;
    padding: 1rem;
    border-radius: 0.5rem;
}

.vocabulary-title {
    color: #1E3A8A;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.vocabulary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

/* =====================
   TABLES
   ===================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    background-color: #F3F4F6;
}

.data-table th,
.data-table td {
    border: 1px solid #D1D5DB;
    padding: 0.75rem;
    text-align: left;
}

.data-table tbody tr:hover {
    background-color: #F9FAFB;
}

/* =====================
   NAVIGATION
   ===================== */

.navigation-bar {
    position: sticky;
    bottom: 0;
    background-color: white;
    border-top: 1px solid #E5E7EB;
    padding: 1rem;
    margin-top: 3rem;
}

.navigation-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 56rem;
    margin: 0 auto;
}

.nav-buttons {
    display: flex;
    gap: 25px;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.nav-btn-prev {
    background-color: #E5E7EB;
    font-weight: 600;
}

.nav-btn-prev:hover {
    background-color: #D1D5DB;
}

.nav-btn-next {
    background-color: #3B82F6;
    color: white;
    font-weight: 600;
}

.nav-btn-next:hover {
    background-color: #2563EB;
}

.page-indicator {
    font-size: 0.875rem;
    color: #4B5563;
}

/* Completion Section */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* .button {
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: #059669;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
} */

/* =====================
   MOBILE ADJUSTMENTS
   ===================== */

@media screen and (max-width: 768px) {
    .navigation-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .page-indicator {
        order: -1;
        margin-bottom: 0.5rem;
    }

    .nav-buttons {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }

    .nav-btn {
        flex: 1;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

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

@media screen and (min-width: 768px) {
    .buttons {
        flex-direction: row;
        margin-top: 2rem;
    }

    .buttons a {
        flex: 1;
    }
}