/* Epoch-specific styles */

.epoch-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-link, .next-epoch {
    padding: 0.5rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.back-link:hover, .next-epoch:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    transform: translateY(-2px);
}

.epoch-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(231, 76, 60, 0.1) 100%);
}

.epoch-header h1 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 300;
}

.epoch-period {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.epoch-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.epoch-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.epoch-content section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.epoch-content section:nth-child(1) { animation-delay: 0.1s; }
.epoch-content section:nth-child(2) { animation-delay: 0.2s; }
.epoch-content section:nth-child(3) { animation-delay: 0.3s; }
.epoch-content section:nth-child(4) { animation-delay: 0.4s; }
.epoch-content section:nth-child(5) { animation-delay: 0.5s; }
.epoch-content section:nth-child(6) { animation-delay: 0.6s; }

.epoch-content h2 {
    font-size: 2.5rem;
    color: #34495e;
    margin-bottom: 2rem;
    font-weight: 300;
    position: relative;
}

.epoch-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
}

.epoch-overview {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.epoch-overview p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #5d6d7e;
}

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

.characteristic-card, .tradition-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.characteristic-card:hover, .tradition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.characteristic-card h3, .tradition-card h3 {
    color: #3498db;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.characteristic-card p, .tradition-card p {
    color: #5d6d7e;
    line-height: 1.6;
}

.worldview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.worldview-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.worldview-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5d6d7e;
    margin-bottom: 1.5rem;
}

.worldview-highlights {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
    padding: 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.worldview-highlights h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.worldview-highlights ul {
    list-style: none;
    padding: 0;
}

.worldview-highlights li {
    color: #5d6d7e;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.worldview-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
}

.practices-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.practice-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
}

.practice-item:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.practice-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.practice-item p {
    color: #5d6d7e;
    line-height: 1.7;
    font-size: 1.1rem;
}

.transition {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.transition p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5d6d7e;
    margin-bottom: 1.5rem;
}

.epoch-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-label {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    font-size: 1.2rem;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-title:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .epoch-nav {
        padding: 0.75rem 1rem;
        justify-content: center;
    }
    
    .epoch-nav .nav-links {
        display: none;
    }
    
    .back-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 20px;
        background: rgba(52, 152, 219, 0.15);
        border: 1px solid rgba(52, 152, 219, 0.4);
    }
    
    .epoch-header {
        padding: 2.5rem 1rem 1.5rem;
    }
    
    .epoch-header h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .epoch-period {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .epoch-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        max-width: 95%;
    }
    
    .epoch-content {
        padding: 1rem;
    }
    
    .epoch-content h2 {
        font-size: 2rem;
    }
    
    .characteristics-grid, .traditions-grid {
        grid-template-columns: 1fr;
    }
    
    .worldview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .epoch-navigation {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.5rem;
        margin-top: 3rem;
    }
    
    .nav-item {
        flex: 1;
        align-items: flex-start;
        text-align: left;
    }
    
    .nav-item:last-child {
        text-align: right;
        align-items: flex-end;
    }
    
    .nav-label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .nav-title {
        font-size: 1rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .epoch-nav {
        padding: 0.5rem;
    }
    
    .back-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .epoch-navigation {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .nav-label {
        font-size: 0.75rem;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
}