/* ============================================
   RESEARCH SECTION STYLES
   Used by: research/index.html and all 6 project pages
   ============================================ */

/* ============================================
   RESEARCH OVERVIEW PAGE (index.html)
   ============================================ */

.research-section {
    background: transparent;
    padding: 1.5rem 0 2rem;
    width: 100%;
}

.research-wrapper {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 3.5rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.2rem;
}

/* Sticky Left Column */
.research-left {
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 640px;
}

.research-eyebrow {
    color: var(--rust);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    margin-bottom: 0.7rem;
}

.research-title {
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--dark-burgundy);
    margin-bottom: 1.3rem;
    line-height: 1.2;
}

.research-intro-text {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #4b3f3a;
    margin-bottom: 1.2rem;
}

.research-intro-text + .research-intro-text {
    margin-top: 0.3rem;
}

.research-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Research Project Cards */
.research-card {
background: #f3e2ce;
    border-radius: 16px;
    padding: 1.5rem;
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.22s ease;
}

.research-card--featured {
    border-left: 4px solid var(--soft-blue);
    padding-left: calc(1.5rem - 4px);
}

.research-card:hover {
    transform: translateY(-4px);
box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
    background: #fefcf8;
}

/* Card Image - Full width top section */
.research-card-image {
    width: calc(100% + 3rem);
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    height: 140px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

/* Card Header (title) */
.research-card-header {
    text-align: left;
}

.research-card-title-wrap {
    width: 100%;
}

.research-card-title-wrap h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-burgundy);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

/* Description */
.research-card-description {
    text-align: left;
}

.research-card-description p {
    font-size: 0.9rem;
    color: #4f3f39;
    line-height: 1.6;
    margin: 0;
}

/* Card Button */
.research-card-button {
    align-self: flex-start;
    background: var(--soft-blue);
    padding: 0.55rem 1.15rem;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 6px 16px rgba(61, 92, 140, 0.25);
    margin-top: auto;
}

.research-card-button:hover {
    background: #3d5c8c;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(61, 92, 140, 0.35);
}

.research-meta {
    display: inline-block;
    margin-top: 0.3rem;
    color: var(--rust);
    font-style: italic;
    font-size: 0.9rem;
}


/* ============================================
   SHARED FOOTER BACK BUTTON
   For all research project pages
   Base styles - each page CSS should set background color
   ============================================ */

.study-footer,
.page-footer {
    padding: 3rem 2rem;
    text-align: center;
}

.footer-back-link,
.footer-back {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-back-link:hover,
.footer-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}


/* ============================================
   SHARED PROJECT PAGE STYLES
   Used by all 6 individual research project pages
   ============================================ */

/* Project Hero */
.project-hero {
    background: var(--dark-burgundy);
    color: white;
    padding: 5rem 3rem;
    text-align: center;
    margin: -5rem -2rem 2rem -2rem;
    border-radius: 0 0 20px 20px;
}

.project-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.project-hero h1::after {
    display: none;
}

.project-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.project-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

.project-badge {
    display: inline-block;
    background: var(--soft-blue);
    border: 2px solid var(--soft-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-top: 2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-badge:hover {
    background: white;
    color: var(--soft-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(146, 164, 210, 0.3);
}

/* Side-by-Side Layout */
.side-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.side-layout.left-title {
    flex-direction: row;
}

.side-layout.right-title {
    flex-direction: row-reverse;
}

.section-title-side {
    flex-shrink: 0;
    width: 220px;
    position: sticky;
    top: 120px;
}

.section-title-side h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rust);
    line-height: 1.2;
    margin: 0;
    padding: 0;
    border: none;
}

.section-title-side h2::after {
    display: none;
}

.section-content-side {
    flex: 1;
    min-width: 0;
}

/* Content Section */
.content-section {
    padding: 1.5rem 0;
}

.emphasis-text {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--dark-burgundy);
    line-height: 1.7;
}

.subheading-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--rust);
    font-weight: 600;
}

/* Takeaway Box */
.takeaway-box {
    background: linear-gradient(135deg, var(--rust), var(--dark-burgundy));
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.takeaway-icon {
    font-size: 2rem;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.takeaway-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.takeaway-box strong {
    color: var(--soft-blue);
}

/* Paper/Citation Section */
.paper-section {
    background: linear-gradient(135deg, rgba(146, 164, 210, 0.15), rgba(117, 53, 45, 0.08));
    padding: 2.5rem;
    text-align: center;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.paper-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--dark-burgundy);
    margin-bottom: 1.25rem;
}

.paper-citation {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--soft-blue);
    text-align: left;
    font-size: 0.95rem;
}

.paper-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--rust), var(--dark-burgundy));
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paper-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(117, 53, 45, 0.35);
}


/* ============================================
   MYTH STUDY - UNIQUE ELEMENTS
   Only used by research/myth-study.html
   ============================================ */

/* Myth Hero (extends project-hero) */
.myth-hero {
    background: var(--dark-burgundy);
    color: white;
    padding: 5rem 3rem;
    text-align: center;
    margin: -5rem -2rem 2rem -2rem;
    border-radius: 0 0 20px 20px;
}

.myth-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.myth-hero h1::after {
    display: none;
}

.vs-text {
    color: var(--soft-blue);
    font-weight: 900;
}

.myth-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.myth-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

.study-badge {
    display: inline-block;
    background: var(--soft-blue);
    border: 2px solid var(--soft-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-top: 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.study-badge:hover {
    background: white;
    color: var(--soft-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(146, 164, 210, 0.3);
}

/* Myth Cards Accordion */
.myths-accordion {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.myth-card {
    background: white;
    border: 2px solid var(--soft-blue);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.myth-card:hover {
    border-color: var(--rust);
    box-shadow: 0 3px 10px rgba(117, 53, 45, 0.12);
}

/* Condition Cards */
.condition-card {
    background: white;
    border: 2px solid var(--soft-blue);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.condition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(146, 164, 210, 0.25);
}

.condition-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
}

.condition-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--dark-burgundy);
    margin-bottom: 0.75rem;
}

.condition-card p {
    color: var(--rust);
    font-size: 0.9rem;
    line-height: 1.5;
}

.sample-size {
    background: var(--soft-blue);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 0.75rem;
    display: inline-block;
    font-size: 0.85rem;
}

/* Example Connector */
.example-connector {
    position: relative;
    margin: 1.5rem 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.curved-arrow {
    position: absolute;
    left: 33%;
    top: -20px;
    width: 150px;
    height: 100px;
    opacity: 0.6;
    pointer-events: none;
}

.connector-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem;
}

.arrow-down {
    width: 2rem;
    height: 2rem;
    color: var(--rust);
}

.example-text {
    color: var(--rust);
    font-weight: 600;
    font-size: 0.9rem;
    font-style: italic;
}

/* Conversation Example */
.conversation-example-wrapper {
    margin: 2rem 0 0 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(146, 164, 210, 0.04), rgba(241, 221, 196, 0.04));
    border-radius: 12px;
    border-left: 4px solid var(--soft-blue);
}

.conversation-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--dark-burgundy);
    margin-bottom: 1.25rem;
}

/* Accordion for Conversation */
.accordion-header {
    background: linear-gradient(135deg, var(--rust), var(--dark-burgundy));
    color: white;
    padding: 1.25rem 1.75rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.accordion-header:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(117, 53, 45, 0.25);
}

.accordion-header h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    margin: 0;
    color: white;
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.accordion-content.active {
    max-height: 3000px;
}

.conversation-container {
    background: linear-gradient(135deg, rgba(117, 53, 45, 0.04), rgba(146, 164, 210, 0.04));
    border-radius: 0 0 12px 12px;
    padding: 1.75rem;
    margin-top: 0;
}

.message {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border-radius: 10px;
    position: relative;
}

.message.participant {
    background: rgba(146, 164, 210, 0.12);
    border-left: 4px solid var(--soft-blue);
    margin-left: 1.5rem;
}

.message.ai {
    background: rgba(117, 53, 45, 0.08);
    border-left: 4px solid var(--rust);
    margin-right: 1.5rem;
}

.message-header {
    font-weight: 700;
    color: var(--dark-burgundy);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.message-icon {
    font-size: 1.1rem;
}

.message-text {
    color: var(--dark-burgundy);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Chart Section */
.chart-wrapper {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid var(--soft-blue);
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 1.5rem 0;
}

.chart-annotations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.annotation-box {
    background: var(--rust);
    color: white;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
}

.annotation-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--soft-blue);
}

.annotation-box p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Engagement Metrics */
.engagement-metrics-compact {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 1.5rem 0;
    max-width: 700px;
}

.metric-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-label-compact {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--dark-burgundy);
    font-weight: 700;
    margin: 0;
}

.metric-bars {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-name {
    flex-shrink: 0;
    width: 110px;
    font-size: 0.9rem;
    color: var(--rust);
    font-weight: 600;
}

.metric-bar-container {
    flex: 1;
    height: 36px;
    background: rgba(146, 164, 210, 0.1);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.metric-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--soft-blue), #7a8fc7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: width 0.3s ease;
}

.metric-bar.textbook {
    background: linear-gradient(135deg, var(--rust), #8d4238);
}


/* ============================================
   RESPONSIVE - RESEARCH PAGES
   ============================================ */

@media (max-width: 1024px) {
    .research-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .research-left {
        position: relative;
        top: 0;
    }

    .research-right {
        grid-template-columns: 1fr;
    }

    .side-layout {
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .section-title-side {
        width: 100%;
        position: static;
    }

    .section-title-side h2 {
        font-size: 1.8rem;
        padding-bottom: 0.75rem;
        border-bottom: 3px solid var(--soft-blue);
    }

    .conversation-example-wrapper {
        margin-left: 0;
    }

    .curved-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .project-hero,
    .myth-hero {
        padding: 3rem 2rem;
        margin: -3rem -1.5rem 2rem -1.5rem;
    }

    .project-hero h1,
    .myth-hero h1 {
        font-size: 2.5rem;
    }

    .project-subtitle,
    .myth-subtitle {
        font-size: 1.4rem;
    }

    .experiment-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .chart-annotations {
        grid-template-columns: 1fr;
    }

    .message.participant,
    .message.ai {
        margin-left: 0;
        margin-right: 0;
    }

    .conversation-example-wrapper {
        padding: 1.5rem;
    }

    .conversation-heading {
        font-size: 1.4rem;
    }

    .accordion-header h4 {
        font-size: 1.05rem;
    }

    .metric-name {
        width: 90px;
        font-size: 0.85rem;
    }

    .myth-card-header {
        padding: 0.9rem 1rem;
    }

    .myth-title {
        font-size: 0.92rem;
    }

    .myth-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .research-wrapper {
        padding: 0 1.4rem;
    }

    .research-card {
        padding: 1.25rem;
    }

    .research-card-image {
        width: calc(100% + 2.5rem);
        margin: -1.25rem -1.25rem 1rem -1.25rem;
        height: 120px;
    }

    .research-card-title-wrap h3 {
        font-size: 1.2rem;
    }
}