/* Lesson 1.2: The Greek Alphabet & Writing - Specific Styles */

/* Introduction Section */
.intro-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
}

.intro-section h2 {
    color: #0066ff;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-section p {
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 0.5rem;
}

/* Alphabet Section */
.alphabet-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

/* Video Section */
.video-section {
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.video-caption {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 1rem;
}

/* Letter Detail Panel */
.letter-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.letter-detail.hidden {
    display: none;
}

.detail-content {
    position: relative;
}

.close-detail {
    position: absolute;
    right: -1rem;
    top: -1rem;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    transition: all 0.2s ease;
}

.close-detail:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.detail-letter {
    text-align: center;
    margin-bottom: 1rem;
}

.detail-letter span {
    font-family: 'GFS Neohellenic', 'Times New Roman', serif;
    font-size: 4rem;
    color: #0066ff;
    margin: 0 1rem;
}

.letter-detail h3 {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.detail-sound {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.detail-sound span {
    color: #0066ff;
    font-weight: 600;
}

.detail-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Writing Practice */
.writing-practice {
    border-top: 2px solid #e0e0e0;
    padding-top: 1.5rem;
}

.writing-practice h4 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.writing-guides {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.guide-box {
    text-align: center;
}

.guide-box canvas {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    margin-bottom: 0.5rem;
}

.guide-box p {
    color: #666;
    font-size: 0.9rem;
}

/* Special Cases Section */
.special-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

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

.special-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.special-card h4 {
    color: #0066ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.special-card ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
    color: #555;
    line-height: 1.8;
}

.special-card .greek-text {
    font-family: 'GFS Neohellenic', 'Times New Roman', serif;
    font-size: 1.2em;
    color: #0066ff;
    font-weight: 500;
}

.example {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f0f7ff;
    border-radius: 6px;
    color: #333;
}

/* Practice Section */
.practice-section {
    margin-bottom: 2rem;
}

.exercise-box {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.exercise-box h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.quiz-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.quiz-letter {
    font-family: 'GFS Neohellenic', 'Times New Roman', serif;
    font-size: 2.5rem;
    color: #0066ff;
    margin-bottom: 0.5rem;
}

.quiz-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Transliteration Exercises */
.transliteration-exercises {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.exercise-item {
    display: grid;
    grid-template-columns: 150px 150px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.greek-word {
    font-family: 'GFS Neohellenic', 'Times New Roman', serif;
    font-size: 1.3rem;
    color: #0066ff;
    font-weight: 500;
}

.hint {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

.answer-input {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.answer-input:focus {
    outline: none;
    border-color: #0066ff;
}

/* Check Button */
.check-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Feedback */
.feedback {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.feedback.hidden {
    display: none;
}

.feedback {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Tips Section */
.tips-section {
    background: linear-gradient(135deg, #0066ff 0%, #4d94ff 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.tips-section .section-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

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

.tip-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tip-card h4 {
    color: #0066ff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tip-card p {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .writing-guides {
        flex-direction: column;
        align-items: center;
    }
    
    .special-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .exercise-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .quiz-grid {
        grid-template-columns: 1fr;
    }
    
    .letter-detail {
        width: 95%;
        padding: 1.5rem;
    }
    
    .detail-letter span {
        font-size: 3rem;
    }
}
