/* ========== RESEARCH PAGE STYLES ========== */

/* ---------- Section 1: Research Hero ---------- */
.research-hero {
    min-height: 66vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 3rem;
    background: #faf6f0;
    position: relative;
}

.research-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* ---------- View Transitions ---------- */
.research-view {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.research-view.active {
    display: block;
    opacity: 1;
}

.research-view.fading-out {
    opacity: 0;
}

.research-view.fading-in {
    display: block;
    opacity: 0;
}

/* ---------- Typography ---------- */
.research-eyebrow {
    text-align: center;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    color: #8a7f6b;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.research-title {
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #9a7b3f;
    margin-bottom: 2rem;
}

/* ---------- Back Button ---------- */
.research-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #8a7f6b;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.research-back:hover {
    color: #9a7b3f;
}

.hidden {
    display: none !important;
}

/* ---------- Category Pills ---------- */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border: 1px solid rgba(154, 123, 63, 0.25);
    border-radius: 50px;
    background: #ffffff;
    color: #5c4f3a;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.cat-pill:hover {
    border-color: rgba(154, 123, 63, 0.5);
    color: #2c2416;
    background: rgba(154, 123, 63, 0.08);
}

.cat-pill.selected {
    border-color: #9a7b3f;
    color: #9a7b3f;
    background: rgba(154, 123, 63, 0.12);
    box-shadow: 0 0 20px rgba(154, 123, 63, 0.15), inset 0 0 20px rgba(154, 123, 63, 0.05);
}

.cat-pill svg {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cat-pill.selected svg,
.cat-pill:hover svg {
    opacity: 1;
}

/* ---------- Category Result ---------- */
.category-result {
    min-height: 200px;
    transition: opacity 0.4s ease;
}

.category-result.fading {
    opacity: 0;
}

.result-placeholder {
    text-align: center;
    padding: 3rem 1rem;
}

.result-placeholder p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: #8a7f6b;
    font-style: italic;
}

/* Result content */
.result-content {
    padding: 0 0.5rem;
}

.result-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5c4f3a;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.result-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: #9a7b3f;
    text-align: center;
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
}

.result-peptides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-peptide-card {
    background: #ffffff;
    border: 1px solid rgba(154, 123, 63, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.result-peptide-card:hover {
    border-color: rgba(154, 123, 63, 0.3);
    background: rgba(154, 123, 63, 0.05);
    transform: translateY(-2px);
}

.result-peptide-card h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: #2c2416;
    margin-bottom: 0.5rem;
}

.result-peptide-card .peptide-tag {
    display: inline-block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9a7b3f;
    background: rgba(154, 123, 63, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.result-peptide-card p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #8a7f6b;
}

.result-peptide-card p {
    flex: 1;
}

/* Result article cards */
.result-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-article-card {
    background: #ffffff;
    border: 1px solid rgba(154, 123, 63, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.result-article-card:hover {
    border-color: rgba(154, 123, 63, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 123, 63, 0.08);
}

.result-article-card h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    color: #2c2416;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.result-article-card p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #8a7f6b;
    flex: 1;
}

.result-article-cta {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.75rem;
    color: #9a7b3f;
    margin-top: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.result-article-card:hover .result-article-cta {
    opacity: 1;
}

.btn-learn-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(154, 123, 63, 0.3);
    border-radius: 50px;
    color: #9a7b3f;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background: rgba(154, 123, 63, 0.1);
    border-color: #9a7b3f;
    box-shadow: 0 0 15px rgba(154, 123, 63, 0.12);
}

/* ---------- What Are Peptides Button ---------- */
.btn-what-are-peptides {
    display: block;
    margin: 2rem auto 0;
    padding: 0.9rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(154, 123, 63, 0.4);
    border-radius: 50px;
    color: #9a7b3f;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-what-are-peptides:hover {
    background: rgba(154, 123, 63, 0.1);
    border-color: #9a7b3f;
    box-shadow: 0 0 25px rgba(154, 123, 63, 0.15);
}

/* ---------- What Are Peptides View ---------- */
.peptide-info-content {
    max-width: 800px;
    margin: 0 auto;
}

.peptide-lead {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #5c4f3a;
    text-align: center;
    margin-bottom: 1rem;
}

.peptide-analogy {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #9a7b3f;
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.peptide-capabilities h3,
.peptide-strengths h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    color: #2c2416;
    text-align: center;
    margin-bottom: 1.25rem;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

a.capability-card { text-decoration: none; cursor: pointer; }
.capability-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(154, 123, 63, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.capability-card:hover {
    border-color: rgba(154, 123, 63, 0.3);
    transform: translateY(-2px);
}

.capability-card svg {
    color: #9a7b3f;
    opacity: 0.7;
}

.capability-card span {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    color: #8a7f6b;
    line-height: 1.5;
}

/* Strengths */
.peptide-strengths {
    margin-bottom: 2rem;
}

.strength-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.strength-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.strength-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: #9a7b3f;
}

.strength-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    color: #8a7f6b;
}

/* Peptides in 2026 button */
.btn-peptides-2026 {
    display: block;
    margin: 2rem auto 0;
    padding: 0.9rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(154, 123, 63, 0.4);
    border-radius: 50px;
    color: #9a7b3f;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-peptides-2026:hover {
    background: rgba(154, 123, 63, 0.1);
    border-color: #9a7b3f;
    box-shadow: 0 0 25px rgba(154, 123, 63, 0.15);
}

/* ---------- Peptides in 2026 View ---------- */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.timeline-card {
    background: #ffffff;
    border: 1px solid rgba(154, 123, 63, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    border-color: rgba(154, 123, 63, 0.3);
    transform: translateY(-2px);
}

.timeline-year {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9a7b3f;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-card h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: #2c2416;
    margin-bottom: 0.6rem;
}

.timeline-card p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #8a7f6b;
}

/* ---------- Are Peptides Safe View ---------- */
.safety-section {
    margin-bottom: 2.5rem;
}

.safety-heading {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    color: #2c2416;
    text-align: center;
    margin-bottom: 1.25rem;
}

.safety-cards {
    display: grid;
    gap: 1rem;
}

.safety-card {
    background: #ffffff;
    border: 1px solid rgba(154, 123, 63, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.safety-card:hover {
    transform: translateY(-2px);
}

.safety-icon {
    position: absolute;
    left: 1.5rem;
    top: 1.6rem;
    font-size: 0.5rem;
}

.safety-card h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    color: #2c2416;
    margin-bottom: 0.6rem;
    padding-left: 0.75rem;
}

.safety-card p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #8a7f6b;
    padding-left: 0.75rem;
}

.safety-card p strong {
    color: #5c4f3a;
}

/* Safety card color coding */
.safety-card.safe {
    border-color: rgba(76, 175, 80, 0.2);
}
.safety-card.safe .safety-icon {
    color: #4caf50;
}
.safety-card.safe:hover {
    border-color: rgba(76, 175, 80, 0.4);
}

.safety-card.caution {
    border-color: rgba(154, 123, 63, 0.2);
}
.safety-card.caution .safety-icon {
    color: #9a7b3f;
}
.safety-card.caution:hover {
    border-color: rgba(154, 123, 63, 0.4);
}

.safety-card.info {
    border-color: rgba(100, 149, 237, 0.2);
}
.safety-card.info .safety-icon {
    color: #6495ed;
}
.safety-card.info:hover {
    border-color: rgba(100, 149, 237, 0.4);
}

.safety-card.warning {
    border-color: rgba(255, 152, 0, 0.2);
}
.safety-card.warning .safety-icon {
    color: #ff9800;
}
.safety-card.warning:hover {
    border-color: rgba(255, 152, 0, 0.4);
}

.safety-bottom-line {
    background: rgba(154, 123, 63, 0.06);
    border: 1px solid rgba(154, 123, 63, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.safety-bottom-line h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    color: #9a7b3f;
    margin-bottom: 0.75rem;
}

.safety-bottom-line p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #5c4f3a;
}

.btn-view-labs {
    display: inline-block;
    margin-top: 1rem;
    margin-left: 0.75rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(154, 123, 63, 0.4);
    border-radius: 50px;
    color: #9a7b3f;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-labs:hover {
    background: rgba(154, 123, 63, 0.1);
    border-color: #9a7b3f;
    box-shadow: 0 0 20px rgba(154, 123, 63, 0.15);
}

/* ---------- Section 2: Articles ---------- */
.research-articles {
    background: #f3ede4;
    padding: 3rem 2rem 4rem;
    border-top: 1px solid rgba(154, 123, 63, 0.15);
}

.articles-container {
    max-width: 1100px;
    margin: 0 auto;
}

.articles-heading {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #9a7b3f;
    text-align: center;
    margin-bottom: 2rem;
}

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

.article-card {
    background: #ffffff;
    border: 1px solid rgba(154, 123, 63, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    border-color: rgba(154, 123, 63, 0.2);
    transform: translateY(-3px);
}

.article-img {
    height: 140px;
    width: 100%;
}

.article-content {
    padding: 1.25rem;
}

.article-tag {
    display: inline-block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9a7b3f;
    background: rgba(154, 123, 63, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.article-content h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    color: #2c2416;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-content p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #8a7f6b;
    margin-bottom: 0.75rem;
}

.article-date {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.7rem;
    color: rgba(154, 123, 63, 0.5);
    font-style: italic;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .research-hero {
        min-height: 66vh;
        padding: 100px 1.25rem 2rem;
    }

    .category-pills {
        gap: 0.5rem;
    }

    .cat-pill {
        font-size: 0.75rem;
        padding: 0.55rem 1rem;
    }

    .result-peptides {
        grid-template-columns: 1fr;
    }

    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-img {
        height: 100px;
    }

    .strength-list {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }
}
