/* Lesson 1-3 Specific Styles: The Homeric Hymn to Demeter */

/* Timeline Section */
.timeline-section {
    margin-bottom: 2rem;
}

.timeline-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.timeline-scroll {
    overflow-x: auto;
    padding: 1rem 0;
}

.timeline-flow {
    display: flex;
    min-width: 900px;
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066ff 0%, #4d94ff 100%);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-event {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    background: white;
    border: 2px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin: 0 0.5rem;
}

.timeline-event:hover {
    transform: translateY(-5px);
    border-color: #0066ff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.2);
}

.timeline-event.active {
    border-color: #0066ff;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.timeline-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: #0066ff;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
}

.timeline-event:hover .timeline-dot {
    transform: scale(1.2);
    background: #0052cc;
}

.timeline-event.active .timeline-dot {
    background: #0052cc;
    transform: scale(1.3);
}

.timeline-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.timeline-subtitle {
    font-size: 0.75rem;
    color: #666;
}

/* Text Container */
.text-container {
    background: linear-gradient(135deg, #fffef9 0%, #ffffff 100%);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.text-container p {
    margin-bottom: 1.5rem;
}

.verse-marker {
    color: #0066ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.line-number {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0.5rem;
}

/* Themes Grid */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.theme-card {
    background: white;
    border: 2px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-card:hover {
    border-color: #0066ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.2);
}

.theme-card.active {
    border-color: #0066ff;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.theme-title {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.theme-description {
    color: #666;
    font-size: 0.9rem;
}

/* Significance Cards */
.significance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.significance-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
    border-top: 4px solid #0066ff;
}

.significance-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.significance-title {
    color: #0066ff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.significance-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Interactive Text Elements - matching lesson 1.1 style */
.key-term {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.key-term:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #ffd93d 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.key-figure {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #17a2b8;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #0c5460;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.key-figure:hover {
    background: linear-gradient(135deg, #bee5eb 0%, #9dd7e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.key-concept {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #155724;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.key-concept:hover {
    background: linear-gradient(135deg, #c3e6cb 0%, #a8dab5 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.key-place {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #dc3545;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #721c24;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.key-place:hover {
    background: linear-gradient(135deg, #f5c6cb 0%, #f1b0b7 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Primary Source Quote - matching lesson 1.1 */
.primary-source {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #6c757d;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.primary-source::before {
    content: '"';
    font-size: 4rem;
    color: #6c757d;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

.source-citation {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1rem;
    font-weight: 600;
    font-style: normal;
}

/* Detail Box - matching lesson 1.1 */
.detail-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.detail-box h4 {
    color: #0066ff;
    margin-bottom: 1rem;
}

.detail-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.detail-box ul {
    margin-left: 1.5rem;
    color: #555;
}

.detail-box li {
    margin-bottom: 0.5rem;
}

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

/* Sample elements in sidebar - matching lesson 1.1 */
.sample-term {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #856404;
}

.sample-figure {
    background: #d1ecf1;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #0c5460;
}

.sample-concept {
    background: #d4edda;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #155724;
}

.sample-place {
    background: #f8d7da;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #721c24;
}

/* Info Panel Content - matching lesson 1.1 */
#info-content {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

#info-content h4 {
    color: #0066ff;
    margin-bottom: 0.5rem;
}

#info-content p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Content Sections */
.text-section,
.themes-section,
.significance-section,
.analysis-section,
.context-section {
    margin-bottom: 2rem;
}

/* Responsive Design - matching lesson 1.1 */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .left-sidebar {
        display: flex;
        gap: 3rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }
    
    .right-sidebar {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .right-sidebar {
        grid-template-columns: 1fr;
    }
    
    .timeline-flow {
        flex-direction: column;
        min-width: auto;
    }
    
    .timeline-line {
        width: 3px;
        height: auto;
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .timeline-event {
        margin: 0.5rem 0;
    }
    
    .themes-grid,
    .significance-cards {
        grid-template-columns: 1fr;
    }
}
