/* DeepDiveCinema - Eras Section Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Unbounded:wght@400;600;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Special Elite', monospace;
    color: #e0e0e0;
    line-height: 1.7;
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Film strip background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: -10px;
    width: 20px;
    height: 100vh;
    background:
            repeating-linear-gradient(
                    0deg,
                    #ff2c55 0px,
                    #ff2c55 20px,
                    transparent 20px,
                    transparent 40px
            );
    opacity: 0.1;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    right: -10px;
    width: 20px;
    height: 100vh;
    background:
            repeating-linear-gradient(
                    0deg,
                    #ff2c55 0px,
                    #ff2c55 20px,
                    transparent 20px,
                    transparent 40px
            );
    opacity: 0.1;
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 85%;
    margin: 0 auto;
}

/* Main Content Container */
.era-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Era Title */
h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ff2c55;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 44, 85, 0.3);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff2c55, transparent);
}

/* Section Headers */
h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff2c55;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 1rem;
}

h2::before {
    content: attr(data-icon);
    position: absolute;
    left: -0.5rem;
    top: 0;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Default icons for sections that don't have specific ones */
h2:not([data-icon])::before {
    content: '🎬';
}

/* Image Section */
.image-section {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.image-section img {

    border-radius: 10px;
    border: 3px solid rgba(255, 44, 85, 0.3);
    box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 44, 85, 0.1);
    transition: all 0.3s ease;
}

.image-section img:hover {
    border-color: #ff2c55;
    box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.7),
            0 0 30px rgba(255, 44, 85, 0.2);
    transform: translateY(-5px);
}

.image-section p {
    margin-top: 1rem;
    font-style: italic;
    color: #aaa;
    font-size: 0.95rem;
}

.image-section em {
    color: #ff2c55;
}

/* Content Sections */
.section {
    margin-bottom: 2.5rem;
    background: rgba(20, 20, 20, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 44, 85, 0.1);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.section:hover {
    border-color: rgba(255, 44, 85, 0.3);
    background: rgba(20, 20, 20, 0.8);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff2c55, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section:hover::before {
    opacity: 1;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #ccc;
}

/* Emphasis and Highlights */
.highlight, strong {
    color: #ff2c55;
    font-weight: 600;
}

em {
    color: #ffc107;
    font-style: italic;
}

/* Lists */
ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    position: relative;
}

li::marker {
    color: #ff2c55;
}

/* Custom bullet points for special lists */
.section ul li {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
}

.section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff2c55;
    font-weight: bold;
}

/* Links */
a {
    color: #ffc107;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff2c55;
    border-bottom-color: #ff2c55;
    text-shadow: 0 0 5px rgba(255, 44, 85, 0.3);
}

/* Special Sage Sidebar */
.sidebar {
    background: linear-gradient(135deg, rgba(255, 44, 85, 0.1), rgba(255, 44, 85, 0.05));
    border: 2px solid rgba(255, 44, 85, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 44, 85, 0.1) 0%, transparent 50%);
    animation: sage-glow 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes sage-glow {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.1; }
}

.sidebar h2 {
    color: #ff2c55;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sidebar p {
    font-style: italic;
    color: #f0f0f0;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

.sidebar p::before {
    content: '"';
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    font-size: 3rem;
    color: #ff2c55;
    opacity: 0.3;
    font-family: 'Georgia', serif;
}

.sidebar p::after {
    content: '"';
    position: absolute;
    right: -0.5rem;
    bottom: -1rem;
    font-size: 3rem;
    color: #ff2c55;
    opacity: 0.3;
    font-family: 'Georgia', serif;
}

/* Film Strip Decorative Elements */
.section.notable-films::before,
.section.icons-archetypes::before {
    content: '🎞️';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

/* Era Timeline Badge */
.era-timeline {
    display: inline-block;
    background: linear-gradient(45deg, #ff2c55, #cc1f44);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 1rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 44, 85, 0.3);
}

/* Consensus Attribution */
.consensus {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 44, 85, 0.2);
}

/* Technology Section Special Styling */
.section.technology ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.section.technology li {
    background: rgba(255, 44, 85, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid #ff2c55;
}

/* Notable Differences Styling */
.differences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.difference-item {
    background: rgba(255, 44, 85, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 44, 85, 0.2);
}

.difference-item strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .era-container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .image-section img {
        width: 90%;
    }

    .section {
        padding: 1.5rem;
    }

    .sidebar {
        padding: 1.5rem;
    }

    .differences-grid,
    .section.technology ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body::before,
    body::after {
        display: none;
    }

    .era-container {
        padding: 0.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Loading Animation for Era Sections */
.section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    body::before,
    body::after {
        display: none;
    }

    .section::before {
        display: none;
    }

    .sidebar::before {
        display: none;
    }

    * {
        background: white !important;
        color: black !important;
    }

    h1, h2 {
        color: #333 !important;
    }
}