/* ==========================================
   PAST TENSE VERBS PAGE STYLES
   ========================================== */

body {
    background: linear-gradient(135deg, #B8D9F0 0%, #8FC0DC 100%);
}

body > .container {
    margin: 20px auto;
    flex: 1;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1600px;
    width: 100%;
}

h1 {
    text-align: center;
    font-size: clamp(28px, 5vw, 48px);
    color: #333;
    margin-bottom: 15px;
}

.main-display {
    background: #EDF5FA;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 20px;
    min-height: 500px;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

/* Image Section - Left */
.image-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-section img {
    max-width: 100%;
    max-height: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Verb Section - Center */
.verb-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.verb-display {
    font-size: 120px;
    font-weight: bold;
    text-align: center;
    color: #333;
    transition: all 0.3s ease;
}

.speak-btn {
    font-size: 64px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;
    opacity: 0.7;
    border-radius: 50%;
}

.speak-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(37, 99, 168, 0.15);
}

.speak-btn:active {
    transform: scale(0.95);
}

.pronunciation-display {
    font-size: 48px;
    font-weight: bold;
    color: #1F5494;
    text-align: center;
}

/* Translation Section - Right */
.translation-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.translation-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.translation-label {
    font-size: 18px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.translation-text {
    font-size: 36px;
    color: #333;
    font-weight: 600;
}

.progress {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    font-weight: 400;
    opacity: 0.7;
}

.toggle-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.toggle-btn {
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #2563A8;
    background: white;
    color: #2563A8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #E3F2FD;
}

.toggle-btn.active {
    background: #2563A8;
    color: white;
}

.controls {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.btn:hover {
    background: #e9ecef;
    color: #333;
    opacity: 1;
    border-color: #ccc;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: #2563A8;
    color: white;
    border-color: #2563A8;
    opacity: 0.9;
}

.btn-primary:hover {
    background: #1F5494;
    opacity: 1;
}

.speed-control {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    opacity: 0.8;
}

.speed-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666;
    font-size: 13px;
}

#speedSlider {
    width: 100%;
    margin-bottom: 8px;
    cursor: pointer;
}

#speedValue {
    display: inline-block;
    font-weight: 600;
    color: #2563A8;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .main-display {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .verb-display {
        font-size: 100px;
    }
    
    .translation-text {
        font-size: 30px;
    }
}

/* Tablet optimization */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    
    .main-display {
        padding: 25px;
        min-height: 400px;
    }
    
    .verb-display {
        font-size: 80px;
    }
    
    .speak-btn {
        font-size: 48px;
    }
    
    .pronunciation-display {
        font-size: 36px;
    }
    
    .translation-text {
        font-size: 24px;
    }
    
    .toggle-btn {
        padding: 10px 16px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .image-section img {
        max-height: 300px;
    }
}

/* Mobile phone optimization */
@media (max-width: 480px) {
    body > .container {
        margin: 10px auto;
    }
    
    .container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .main-display {
        padding: 20px;
        min-height: 250px;
        gap: 15px;
    }
    
    .verb-display {
        font-size: 48px;
    }
    
    .speak-btn {
        font-size: 40px;
        padding: 8px;
    }
    
    .pronunciation-display {
        font-size: 28px;
    }
    
    .translation-box {
        padding: 15px;
    }
    
    .translation-text {
        font-size: 20px;
    }
    
    .progress {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .toggle-controls {
        gap: 6px;
    }
    
    .toggle-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .controls {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .speed-control {
        padding: 12px;
        margin-top: 15px;
    }
    
    .speed-control label {
        font-size: 12px;
    }
    
    #speedValue {
        font-size: 12px;
    }
    
    .image-section img {
        max-height: 200px;
    }
}

/* Dark mode styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a2332 0%, #0f1823 100%);
}

body.dark-mode .container {
    background: #1e2936;
}

body.dark-mode h1 {
    color: #e8f1f8;
}

body.dark-mode .main-display {
    background: #2a3441;
}

body.dark-mode .verb-display {
    color: #e8f1f8;
}

body.dark-mode .pronunciation-display {
    color: #5ba3d1;
}

body.dark-mode .translation-box {
    background: #1e2936;
}

body.dark-mode .translation-text {
    color: #d4dfe8;
}

body.dark-mode .translation-label {
    color: #8a9db0;
}

body.dark-mode .progress {
    color: #8a9db0;
}

body.dark-mode .toggle-btn {
    background: #2a3441;
    color: #5ba3d1;
    border-color: #3d4f62;
}

body.dark-mode .toggle-btn:hover {
    background: #1e2936;
}

body.dark-mode .toggle-btn.active {
    background: #2563A8;
    color: white;
}

body.dark-mode .btn {
    background: #2a3441;
    color: #a8b8c8;
    border-color: #3d4f62;
}

body.dark-mode .btn:hover {
    background: #1e2936;
    color: #d4dfe8;
}

body.dark-mode .btn-primary {
    background: #2563A8;
    color: white;
}

body.dark-mode .btn-primary:hover {
    background: #1F5494;
}

body.dark-mode .speed-control {
    background: #2a3441;
}

body.dark-mode .speed-control label {
    color: #a8b8c8;
}

body.dark-mode #speedValue {
    color: #5ba3d1;
}
