/* Lesson 2-3 Specific Styles: The Twelve Labours */

/* Hero Theme Colours */
:root {
    --hero-primary: #dc3545;
    --hero-secondary: #c82333;
    --hero-accent: #ffd700;
    --hero-light: #f8d7da;
    --hero-gradient: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Introduction Section */
.intro-section {
    margin-bottom: 3rem;
}

/* Why Twelve Section */
.why-twelve-section {
    margin-bottom: 3rem;
}

.highlight-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.discounted-labours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.discounted-labour {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.discounted-labour .labour-number {
    background: var(--hero-gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.labour-info h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.labour-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Labour Categories */
.categories-section {
    margin-bottom: 3rem;
}

.labour-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.category-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--hero-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.2);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.category-card:hover .category-icon {
    filter: grayscale(0);
}

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

.category-count {
    color: #6c757d;
    font-size: 0.9rem;
}

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

.timeline-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.1);
    margin: 2rem 0;
}

.labours-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.timeline-group {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
}

.timeline-group-title {
    color: var(--hero-primary);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timeline-labours {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.timeline-labour {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.timeline-labour:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--hero-primary);
}

.timeline-labour.active {
    background: var(--hero-gradient);
    color: white;
    border-color: var(--hero-primary);
}

.timeline-labour-number {
    background: var(--hero-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.9rem;
}

.timeline-labour.active .timeline-labour-number {
    background: white;
    color: var(--hero-primary);
}

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

.timeline-labour-name {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Labour Detail Box with Reveal Buttons */
.labour-detail-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    display: none;
    animation: fadeInUp 0.3s ease;
    border: 2px solid rgba(220, 53, 69, 0.1);
}

.labour-detail-box.active {
    display: block;
}

.labour-detail-header {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.labour-detail-number {
    background: var(--hero-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.labour-detail-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.4rem;
}

.labour-detail-location {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.labour-detail-narrative {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.labour-detail-narrative p {
    margin-bottom: 1rem;
}

.reveal-button {
    background: #f8f9fa;
    border: 2px solid var(--hero-primary);
    color: var(--hero-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
}

.reveal-button:hover {
    background: var(--hero-primary);
    color: white;
}

.reveal-button.revealed {
    display: none;
}

.reveal-content {
    display: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    animation: slideDown 0.3s ease;
}

.reveal-content.revealed {
    display: block;
}

.reveal-content.difficulty {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.reveal-content.solution {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.reveal-content.significance {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.reveal-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.reveal-content.difficulty .reveal-label {
    color: #856404;
}

.reveal-content.solution .reveal-label {
    color: #155724;
}

.reveal-content.significance .reveal-label {
    color: #0c5460;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        max-height: 0;
    }
    to { 
        opacity: 1; 
        max-height: 500px;
    }
}

/* Metope Modal Styles */
.metope-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2rem 2rem 2rem;
    margin: 2rem auto;
}

.metope-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0 1.5rem 0;
    border-bottom: 2px solid #e9ecef;
}

.metope-detail-number {
    background: #17a2b8;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.metope-detail-title h3 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

.metope-detail-location {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.metope-image-large {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin: 2rem auto;
    display: block;
}

.metope-description {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.metope-description h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.metope-description p {
    color: #495057;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

.metope-analysis {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 1rem 1rem 1rem;
}

.metope-analysis h4 {
    color: #17a2b8;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.metope-analysis p {
    color: #495057;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

/* Temple Section */
.temple-section {
    margin-bottom: 3rem;
}

.temple-intro {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.temple-intro p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.temple-intro p:last-child {
    margin-bottom: 0;
}

.temple-visualization {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(23, 162, 184, 0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.temple-visualization h4 {
    text-align: center;
    color: #17a2b8;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.metopes-container {
    display: grid;
    gap: 2rem;
}

.porch-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.porch-title {
    text-align: center;
    font-weight: 600;
    color: #17a2b8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.metopes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.metope {
    aspect-ratio: 1;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metope:hover {
    border-color: #17a2b8;
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.3);
}

.metope.active {
    border-color: #17a2b8;
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.4);
}

.metope-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.metope:hover .metope-image {
    transform: scale(1.05);
}

.metope-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 5px;
}

.metope:hover .metope-tooltip {
    opacity: 1;
}

/* Olympic Section */
.olympic-section {
    margin-bottom: 3rem;
}

.olympic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.olympic-fact {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.olympic-fact::before {
    content: '🏛️';
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 60px;
    opacity: 0.1;
}

.olympic-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.olympic-description {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Significance Section */
.significance-section {
    margin-bottom: 3rem;
}

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

.significance-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.significance-card:hover {
    border-color: var(--hero-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.15);
}

.significance-title {
    color: var(--hero-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.significance-text {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Interactive Text Elements */
.key-figure {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid var(--hero-primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #721c24;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

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

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

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

/* Primary Source */
.primary-source {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--hero-primary);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.primary-source::before {
    content: '"';
    font-size: 4rem;
    color: var(--hero-primary);
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: serif;
}

.source-citation {
    font-size: 0.9rem;
    color: var(--hero-secondary);
    margin-top: 1.5rem;
    font-weight: 600;
    font-style: normal;
}

/* Detail Box */
.detail-box {
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
    border: 2px solid rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 0.3s ease;
}

.detail-box h4 {
    color: var(--hero-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid rgba(220, 53, 69, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
}

.summary-section::before {
    content: '🏆';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    opacity: 0.3;
}

.summary-section h3 {
    color: var(--hero-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.summary-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.summary-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.summary-section li {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.summary-section li strong {
    color: var(--hero-primary);
}

/* Progress Tracker */
.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: var(--hero-gradient);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Sample elements in sidebar */
.sample-figure {
    background: #f8d7da;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #721c24;
}

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

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

#info-content h4 {
    color: var(--hero-primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

#info-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive Design */
@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;
    }
    
    .labour-categories {
        grid-template-columns: 1fr;
    }
    
    #labours-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metopes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .olympic-grid,
    .significance-grid {
        grid-template-columns: 1fr;
    }
    
    .discounted-labours {
        grid-template-columns: 1fr;
    }
}
