/**
 * Research Deep Dive Styles
 * Rich visual storytelling for historical articles
 */

/* Research Article Base */
.research-deep-dive {
    background: #FFFFFF;
    min-height: 100vh;
}

/* Research Hero Section */
.research-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
}

.research-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.research-meta span::after {
    content: "•";
    margin-left: 2rem;
    opacity: 0.5;
}

.research-meta span:last-child::after {
    display: none;
}

.research-title {
    font-family: 'Stardos Stencil', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.research-subtitle {
    font-family: 'Literata', Georgia, serif;
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.research-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    opacity: 0.8;
}

/* Table of Contents */
.research-toc {
    position: sticky;
    top: 20px;
    float: right;
    width: 250px;
    margin-left: 4rem;
    margin-bottom: 2rem;
    background: #F9F7F5;
    border-radius: 8px;
    padding: 2rem;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.toc-container h3 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: #7E5D4C;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
    color: #5A4339;
    border-left-color: #C9CC68;
}

/* Research Content Container */
.research-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content Blocks Base */
.content-block {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Full Width Text Block */
.content-block.full-width-text .text-container {
    max-width: 740px;
    margin: 0 auto;
    font-family: 'Literata', Georgia, serif;
    font-size: 19px;
    line-height: 1.8;
    color: #2C2C2C;
}

.content-block.full-width-text h2 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2.2rem;
    color: #7E5D4C;
    margin: 3rem 0 1.5rem;
}

.content-block.full-width-text h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #5A4339;
    margin: 2rem 0 1rem;
}

.content-block.full-width-text p {
    margin-bottom: 1.5em;
}

/* Two Column Layout */
.content-block.two-column {
    max-width: 1200px;
    margin: 4rem auto;
}

.column-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-left .text-column {
    order: 1;
}

.text-left .image-column {
    order: 2;
}

.image-left .text-column {
    order: 2;
}

.image-left .image-column {
    order: 1;
}

.text-column {
    font-family: 'Literata', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: #2C2C2C;
}

.image-column figure {
    margin: 0;
    position: sticky;
    top: 40px;
}

.image-column img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-column figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    margin-top: 1rem;
    text-align: center;
}

/* Historical Pull Quote */
.content-block.historical-quote {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, #F9F7F5 0%, #FDFCFB 100%);
    border-left: 4px solid #C9CC68;
    position: relative;
}

.historical-quote blockquote {
    margin: 0;
}

.historical-quote p {
    font-family: 'Stardos Stencil', serif;
    font-size: 28px;
    line-height: 1.5;
    color: #7E5D4C;
    margin: 0 0 1.5rem;
}

.historical-quote footer {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.historical-quote cite {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    color: #666;
    font-weight: 600;
}

.historical-quote .quote-year {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #999;
}

.historical-quote .quote-context {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dotted #CCC;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #666;
    font-style: italic;
}

/* Timeline Moment */
.content-block.timeline-moment {
    max-width: 1000px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.timeline-date {
    font-family: 'Stardos Stencil', serif;
    font-size: 3rem;
    color: #C9CC68;
    text-align: right;
    line-height: 1;
    position: sticky;
    top: 40px;
}

.timeline-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #7E5D4C;
    margin: 0 0 1rem;
}

.timeline-content {
    font-family: 'Literata', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: #2C2C2C;
}

.timeline-image {
    margin-top: 2rem;
}

.timeline-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Cultural Artifact */
.content-block.cultural-artifact {
    max-width: 1000px;
    margin: 4rem auto;
    background: #FDFCFB;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.artifact-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
}

.artifact-image {
    margin: 0;
}

.artifact-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.artifact-details h4 {
    font-family: 'Stardos Stencil', serif;
    font-size: 1.8rem;
    color: #7E5D4C;
    margin: 0 0 1rem;
}

.artifact-details {
    font-family: 'Literata', Georgia, serif;
    font-size: 17px;
    line-height: 1.7;
    color: #2C2C2C;
}

.artifact-significance {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E0E0E0;
}

.artifact-significance h5 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin: 0 0 1rem;
}

.artifact-significance p {
    font-style: italic;
    color: #5A4339;
}

/* Did You Know Callout */
.content-block.did-you-know {
    max-width: 800px;
    margin: 4rem auto;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFDF5 100%);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.fun-fact-container {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.fact-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.fact-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #B8865E;
    margin: 0 0 1rem;
}

.fact-highlight {
    font-family: 'Stardos Stencil', serif;
    font-size: 24px;
    line-height: 1.3;
    color: #7E5D4C;
    margin: 0 0 1rem;
}

.fact-content {
    font-family: 'Literata', Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
    color: #5A4339;
}

/* Adventure Connection */
.content-block.adventure-connection {
    max-width: 900px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
    background: #F9F7F5;
    border-radius: 8px;
}

.connection-container h3 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2rem;
    color: #7E5D4C;
    margin: 0 0 1.5rem;
}

.connection-container {
    font-family: 'Literata', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: #2C2C2C;
}

.adventure-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 24px;
    background: #7E5D4C;
    color: white;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.adventure-link:hover {
    background: transparent;
    color: #7E5D4C;
    border-color: #7E5D4C;
}

/* Related Content Section */
.related-content {
    background: #F9F7F5;
    padding: 6rem 0;
    margin-top: 6rem;
}

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

.related-adventures,
.related-connectors {
    margin-bottom: 4rem;
}

.related-adventures h2,
.related-connectors h2 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2.5rem;
    color: #7E5D4C;
    text-align: center;
    margin-bottom: 3rem;
}

.adventure-cards,
.connector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.adventure-card,
.connector-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.adventure-card:hover,
.connector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.adventure-card h3,
.connector-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #2C2C2C;
    margin: 1rem 0;
}

.connector-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Research CTA */
.research-cta {
    background: #7E5D4C;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-container h2 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-container p {
    font-family: 'Literata', Georgia, serif;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: #C9CC68;
    color: #2C2C2C;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: white;
    color: #7E5D4C;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .research-toc {
        display: none;
    }
    
    .content-block.full-width-text .text-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .column-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .text-left .text-column,
    .text-left .image-column,
    .image-left .text-column,
    .image-left .image-column {
        order: unset;
    }
    
    .image-column figure {
        position: static;
    }
    
    .content-block.timeline-moment {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-date {
        text-align: left;
        font-size: 2rem;
        position: static;
        margin-bottom: 1rem;
    }
    
    .artifact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .fun-fact-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .fact-icon {
        font-size: 36px;
    }
    
    .research-title {
        font-size: 2rem;
    }
    
    .historical-quote p {
        font-size: 22px;
    }
}