/* DC Squarehood Stylesheet - Enhanced UX/UI */

:root {
    --yellow: #FFD700;
    --red: #C41E3A;
    --dark-red: #8B0000;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F0F0F0;
    --gray: #666666;
    --dark: #1A1A1A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: rotate(5deg);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--red);
    letter-spacing: 0.5px;
}

.nav-tagline {
    font-size: 0.75rem;
    color: var(--gray);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

/* Page Content */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2.5rem;
    border-bottom: 3px solid var(--red);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.page-header .subtitle {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--gray);
    font-weight: 400;
}

/* Sources Page */
.source-category {
    margin-bottom: 4rem;
}

.source-category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
}

.source-item {
    background: var(--off-white);
    border-left: 4px solid var(--red);
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.source-item:hover {
    background: var(--white);
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.12);
    transform: translateX(6px);
}

.source-item .title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.source-item .citation {
    font-style: italic;
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.source-item .note {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* Timeline */
.full-timeline {
    position: relative;
    padding-left: 4rem;
}

.full-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red) 0%, var(--dark-red) 100%);
}

.timeline-entry {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -4rem;
    top: 0.5rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--red);
    box-shadow: 0 0 0 4px var(--white);
    transition: all 0.3s ease;
}

.timeline-entry:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px var(--white), 0 0 20px rgba(196, 30, 58, 0.3);
}

.timeline-entry.major::before {
    width: 24px;
    height: 24px;
    background: var(--red);
    left: calc(-4rem - 3px);
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.timeline-entry h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.timeline-entry p {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.timeline-entry .source {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    margin-top: 0.75rem;
}

.timeline-entry ul {
    margin: 0.75rem 0 0.75rem 2rem;
}

.timeline-entry li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* FAQ */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    padding-left: 1.25rem;
}

.faq-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.faq-answer p {
    margin-bottom: 1.25rem;
    color: var(--dark);
    font-size: 1.05rem;
}

.faq-answer ul {
    margin: 1rem 0 1.5rem 2rem;
}

.faq-answer li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

/* Divider */
.divider {
    text-align: center;
    margin: 4rem 0;
    color: var(--red);
}

.divider-ornament {
    font-size: 2rem;
}

/* Bordered Section */
.bordered-section {
    border: 2px solid var(--red);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    margin: 3rem 0;
    background: var(--off-white);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.08);
}

.bordered-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--red);
    margin-bottom: 1rem;
}

.bordered-section p {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

.footer-slogan {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .full-timeline {
        padding-left: 3rem;
    }
    
    .timeline-entry {
        padding-left: 1.5rem;
    }
    
    .timeline-entry::before {
        left: -3rem;
    }
    
    .timeline-entry.major::before {
        left: calc(-3rem - 3px);
    }
    
    .faq-question {
        font-size: 1.3rem;
    }
    
    .bordered-section {
        padding: 2rem;
    }
}
