/* ============================================ */
/* DEUTSCHMIND - GRAMMAR BASE STYLES           */
/* Reusable CSS for all grammar pages          */
/* Location: /grammar/grammar-base.css         */
/* Created by: aliattia02                      */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================ */
/* PRACTICE CARDS                              */
/* ============================================ */
.practice-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.verb-infinitive {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
    text-align: center;
}

.verb-meaning {
    font-size: 1.1em;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

.conjugation-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.conjugation-input label {
    font-weight: 600;
    color: #667eea;
    min-width: 80px;
}

.conjugation-input input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.conjugation-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.conjugation-input input.correct {
    border-color: #4CAF50;
    background: #E8F5E9;
}

.conjugation-input input.incorrect {
    border-color: #F44336;
    background: #FFEBEE;
}

/* ============================================ */
/* SENTENCE BUILDER                            */
/* ============================================ */
.sentence-builder {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.sentence-target {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    text-align: center;
}

.drop-zone {
    min-height: 80px;
    background: white;
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.drop-zone.drag-over {
    background: #f0f0ff;
    border-color: #4CAF50;
    transform: scale(1.02);
}

.drop-zone:empty::before {
    content: "Drag words here or click them below";
    color: #999;
    font-style: italic;
}

.word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    min-height: 60px;
}

.draggable-word {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
}

.draggable-word:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.draggable-word:active {
    cursor: grabbing;
}

.draggable-word.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.draggable-word.in-dropzone {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    cursor: pointer;
}

.sentence-feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    display: none;
}

.sentence-feedback.correct {
    display: block;
    background: #E8F5E9;
    color: #2E7D32;
    border: 2px solid #4CAF50;
}

.sentence-feedback.incorrect {
    display: block;
    background: #FFEBEE;
    color: #C62828;
    border: 2px solid #F44336;
}

.builder-controls {
    margin-top: 20px;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .conjugation-input {
        flex-direction: column;
        align-items: stretch;
    }

    .conjugation-input label {
        min-width: auto;
        text-align: center;
    }

    .draggable-word {
        font-size: 1em;
        padding: 10px 15px;
    }

    .drop-zone {
        min-height: 100px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================ */
/* NAVIGATION BAR                              */
/* ============================================ */
.top-navigation {
    background: #000;
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-navigation a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1em;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.top-navigation a:first-child {
    color: #FFCE00;
}

.top-navigation a:hover {
    color: #FFCE00;
}

/* ============================================ */
/* HEADER                                      */
/* ============================================ */
header {
    background: linear-gradient(90deg, #000000, #DD0000, #FFCE00);
    color: white;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header p {
    font-size: 1.3em;
    opacity: 0.95;
}

header .subtitle {
    font-size: 0.9em;
    margin-top: 10px;
    opacity: 0.9;
}

/* ============================================ */
/* COLOR SYSTEM: der=BLUE, das=GREEN, die=RED  */
/* ============================================ */
.der-color { color: #1565C0; }
.das-color { color: #2E7D32; }
.die-color { color: #C62828; }

.der-bg { background: #E3F2FD; border-left: 5px solid #2196F3; }
.das-bg { background: #E8F5E9; border-left: 5px solid #4CAF50; }
.die-bg { background: #FFEBEE; border-left: 5px solid #F44336; }

.der-header { background: linear-gradient(135deg, #2196F3, #1976D2); }
.das-header { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.die-header { background: linear-gradient(135deg, #F44336, #D32F2F); }

.stem-color { color: #1565C0; }
.ending-color { color: #C62828; }
.prefix-color { color: #2E7D32; }
.verb-color { color: #7B1FA2; }

.highlight-stem { background: #E3F2FD; }
.highlight-ending { background: #FFEBEE; }
.highlight-prefix { background: #E8F5E9; }

/* ============================================ */
/* AUDIO CONTROLS                              */
/* ============================================ */
.audio-controls {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.audio-controls h3 {
    color: #667eea;
    margin-bottom: 10px;
    width: 100%;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-group label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.control-group select,
.control-group input {
    padding: 8px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
}

.play-all-btn {
    background: linear-gradient(135deg, #DD0000, #FFCE00);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.play-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ============================================ */
/* TABS SYSTEM                                 */
/* ============================================ */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.tab-button {
    background: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tab-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #DD0000;
    color: white;
}

.tab-button.active {
    background: #DD0000;
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* CARDS                                       */
/* ============================================ */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card h2 {
    color: #DD0000;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid #FFCE00;
    padding-bottom: 10px;
}

.card h3 {
    color: #667eea;
    font-size: 1.5em;
    margin: 25px 0 15px 0;
}

.section-icon {
    font-size: 1.5em;
    margin-right: 10px;
    vertical-align: middle;
}

/* ============================================ */
/* EXPLANATION BOX                             */
/* ============================================ */
.explanation-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #667eea;
}

.explanation-box p {
    margin: 10px 0;
    line-height: 1.8;
    font-size: 1.1em;
}

.key-point {
    background: #fff3cd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 5px solid #ffc107;
}

.key-point strong {
    color: #856404;
}

/* ============================================ */
/* TABLES                                      */
/* ============================================ */
.comparison-table,
.conjugation-table,
.article-table,
.reference-table,
.irregular-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1.1em;
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th,
.conjugation-table th,
.article-table th,
.reference-table th,
.irregular-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    text-align: center;
}

.comparison-table td,
.conjugation-table td,
.article-table td,
.reference-table td,
.irregular-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.comparison-table tr:hover td,
.conjugation-table tr:hover td,
.article-table tr:hover td,
.irregular-table tr:hover td {
    background: #f5f5f5;
    cursor: pointer;
}

.article-table th {
    text-align: left;
}

.article-table tbody tr {
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-table tbody tr:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-word {
    font-size: 1.3em;
    font-weight: 700;
}

.article-example {
    font-style: italic;
    color: #666;
}

.conjugation-table .pronoun {
    font-weight: 700;
    color: #667eea;
    background: #f8f9fa;
}

.conjugation-table .verb-form {
    font-size: 1.2em;
    font-weight: 600;
}

/* Irregular table specific styles */
.irregular-table .sein-header {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.irregular-table .haben-header {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.irregular-table .werden-header {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.irregular-table .pronoun-cell {
    background: #f8f9fa;
    font-weight: 700;
    color: #333;
}

.sein-cell { color: #1565C0; font-weight: 600; }
.haben-cell { color: #2E7D32; font-weight: 600; }
.werden-cell { color: #E65100; font-weight: 600; }

/* Reference table cells */
.reference-table .der-cell {
    background: #E3F2FD;
    color: #1565C0;
}

.reference-table .das-cell {
    background: #E8F5E9;
    color: #2E7D32;
}

.reference-table .die-cell {
    background: #FFEBEE;
    color: #C62828;
}

/* ============================================ */
/* EXAMPLE CARDS & GRIDS                       */
/* ============================================ */
.example-grid,
.verb-grid,
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.example-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.example-german {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 8px;
}

.example-english {
    color: #666;
    font-style: italic;
}

.audio-icon {
    float: right;
    font-size: 1.2em;
    opacity: 0.7;
}

.verb-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.verb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.verb-card .infinitive {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
}

.verb-card .meaning {
    font-size: 1.1em;
    opacity: 0.9;
}

.verb-card .audio-icon {
    font-size: 1.5em;
    margin-top: 10px;
}

/* ============================================ */
/* PATTERN DISPLAY                             */
/* ============================================ */
.pattern-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.pattern-item {
    background: white;
    border: 3px solid #667eea;
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pattern-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.pattern-item .pronoun {
    font-size: 1.2em;
    color: #667eea;
    font-weight: 600;
}

.pattern-item .ending {
    font-size: 2em;
    color: #C62828;
    font-weight: 700;
}

.pattern-item .example {
    font-size: 0.95em;
    color: #666;
    margin-top: 5px;
}

/* ============================================ */
/* SEPARABLE VERBS                             */
/* ============================================ */
.separable-demo {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.separable-verb-display {
    font-size: 2.5em;
    margin: 20px 0;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.prefix-part {
    color: #2E7D32;
    font-weight: 700;
    transition: all 0.5s ease;
    display: inline-block;
}

.verb-part {
    color: #1565C0;
    font-weight: 700;
    transition: all 0.5s ease;
    display: inline-block;
}

.prefix-part.separated {
    transform: translateX(100px);
    color: #C62828;
}

.separable-controls {
    margin-top: 20px;
}

.separate-btn {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.separate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.sentence-example {
    margin-top: 20px;
    font-size: 1.3em;
    color: #333;
}

/* ============================================ */
/* CONVERSATIONS                               */
/* ============================================ */
.conversation-container {
    margin: 20px 0;
}

.conversation-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 1.2em;
    font-weight: 600;
}

.conversation-body {
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    padding: 20px;
}

.message {
    margin: 15px 0;
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 85%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.message-a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.message-b {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message-german {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
}

.message-english {
    font-size: 0.95em;
    opacity: 0.9;
    font-style: italic;
}

.verb-highlight {
    background: rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* ============================================ */
/* REVEAL CARDS                                */
/* ============================================ */
.reveal-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reveal-card:hover {
    transform: scale(1.02);
}

.reveal-question {
    font-size: 1.2em;
    font-weight: 600;
}

.reveal-answer {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 1.1em;
}

.reveal-card.revealed .reveal-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.reveal-hint {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
}

/* ============================================ */
/* EXERCISES & PRACTICE                        */
/* ============================================ */
.exercise-container {
    margin: 20px 0;
}

.exercise-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.exercise-item:hover {
    border-color: #667eea;
}

.exercise-sentence {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.exercise-blank {
    display: inline-block;
    min-width: 80px;
    border-bottom: 2px solid #667eea;
    text-align: center;
    font-weight: bold;
    padding: 5px 10px;
    margin: 0 5px;
}

.exercise-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.exercise-option {
    background: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.exercise-option:hover {
    border-color: #667eea;
    background: #f0f0ff;
}

.exercise-option.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.exercise-option.correct {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.exercise-option.incorrect {
    background: #F44336;
    color: white;
    border-color: #F44336;
}

.exercise-feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-weight: 600;
}

.exercise-feedback.correct {
    display: block;
    background: #E8F5E9;
    color: #2E7D32;
}

.exercise-feedback.incorrect {
    display: block;
    background: #FFEBEE;
    color: #C62828;
}

.check-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.check-btn:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
}

/* ============================================ */
/* MNEMONIC BOX                                */
/* ============================================ */
.mnemonic-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.mnemonic-box h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.mnemonic-box p {
    font-size: 1.3em;
    font-weight: bold;
}

.mnemonic-box .hint {
    font-size: 1em;
    opacity: 0.9;
    margin-top: 10px;
}

/* ============================================ */
/* PROGRESS TRACKER                            */
/* ============================================ */
.progress-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-weight: 600;
    color: #333;
}

/* ============================================ */
/* AUDIO STATUS                                */
/* ============================================ */
.audio-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    max-width: 300px;
}

.audio-status.show {
    display: flex;
}

.audio-status .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

#audioStatusText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================ */
/* FOOTER                                      */
/* ============================================ */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer p {
    margin: 10px 0;
}

footer h3 {
    margin-top: 25px;
    color: #FFCE00;
    font-size: 1.2em;
}

/* FIXED: Grammar links wrap properly on mobile */
.grammar-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px auto;
    max-width: 900px;
    padding: 0 10px;
}

.grammar-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95em;
}

.grammar-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.8;
    color: #FFCE00;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ============================================ */
/* MOBILE RESPONSIVE                           */
/* ============================================ */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1.1em;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }

    .example-grid,
    .verb-grid,
    .practice-grid {
        grid-template-columns: 1fr;
    }

    .audio-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        width: 100%;
        justify-content: space-between;
    }

    .play-all-btn {
        width: 100%;
    }

    .comparison-table,
    .conjugation-table,
    .article-table,
    .reference-table,
    .irregular-table {
        font-size: 0.9em;
    }

    .comparison-table th,
    .comparison-table td,
    .conjugation-table th,
    .conjugation-table td,
    .article-table th,
    .article-table td,
    .reference-table th,
    .reference-table td,
    .irregular-table th,
    .irregular-table td {
        padding: 10px 5px;
    }

    .top-navigation {
        font-size: 0.9em;
    }

    .top-navigation a {
        margin: 5px;
        font-size: 1em;
    }

    /* FIXED: Mobile footer links */
    .grammar-links {
        flex-direction: column;
        align-items: center;
    }

    .grammar-link {
        width: 90%;
        max-width: 300px;
        text-align: center;
    }

    footer {
        padding: 20px 10px;
    }

    .audio-status {
        max-width: 250px;
        font-size: 0.9em;
    }

    .separable-verb-display {
        font-size: 1.8em;
    }

    .prefix-part.separated {
        transform: translateX(50px);
    }

    .message {
        max-width: 95%;
    }

    .pattern-display {
        flex-direction: column;
        align-items: center;
    }

    .exercise-options {
        flex-direction: column;
    }

    .exercise-option {
        width: 100%;
        text-align: center;
    }
}