/* Global CSS Tokens */
:root {
    --primary: #0891b2; /* Clinical Cyan/Teal */
    --primary-dark: #0e7490;
    --secondary: #1e293b; /* Dark Navy Slate */
    --text-color: #334155; /* Neutral Dark Slate */
    --bg-color: #f8fafc; /* Journal Soft Off-White */
    --card-bg: #ffffff;
    --accent: #22c55e; /* Action Green */
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Journal Header */
.journal-header {
    background-color: #ffffff;
    border-bottom: 2px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journal-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.journal-logo i {
    color: var(--primary);
    font-size: 20px;
}

.journal-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(8, 145, 178, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* Main Editorial Layout */
.editorial-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.editorial-article {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
}

.article-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.25;
    margin-bottom: 15px;
}

.article-subtitle {
    font-size: clamp(16px, 1.8vw, 19px);
    color: #64748b;
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.5;
}

/* Meta Data Row */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background-color: rgba(8, 145, 178, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.author-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary);
}

.author-title {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.date-info {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 15px;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero Image Box */
.hero-image-box {
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.img-caption {
    display: block;
    padding: 10px 15px;
    font-size: 12px;
    color: #64748b;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Copywriting & Typography */
.article-content {
    font-size: 16px;
    color: #334155;
}

.article-content p {
    margin-bottom: 22px;
}

.dropcap-p {
    font-size: 17px;
}

.dropcap {
    float: left;
    font-family: 'Outfit', sans-serif;
    font-size: 55px;
    font-weight: 800;
    line-height: 0.8;
    padding-right: 8px;
    color: var(--primary);
}

.article-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin: 35px 0 15px;
}

.article-content strong {
    color: var(--secondary);
}

/* Highlight Box */
.highlight-box {
    background-color: rgba(8, 145, 178, 0.04);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.highlight-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-box p {
    margin-bottom: 0 !important;
    font-size: 14px;
    color: #475569;
}

/* Ingredient Callout Grid */
.ingredient-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 35px 0;
}

.ingredient-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    background-color: #fcfdfe;
}

.ingredient-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
}

.ingredient-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.ingredient-card p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

/* Blockquotes / Testimonials */
.testimonial-quote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
}

.testimonial-quote p {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 8px !important;
}

.testimonial-quote cite {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    font-style: normal;
    display: block;
}

/* CTA Wrapper & Button */
.cta-wrapper {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px dashed var(--primary);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin: 45px 0 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #16a34a 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(15px, 2vw, 17px);
    padding: 16px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(34, 197, 94, 0.35);
}

.cta-subtext {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: #64748b;
}

.cta-subtext i {
    margin-right: 5px;
}

/* References Section */
.references-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.references-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.references-container h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.references-container ol {
    padding-left: 20px;
    font-size: 13px;
    color: #64748b;
}

.references-container ol li {
    margin-bottom: 8px;
}

/* Footer Section */
.editorial-footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding: 60px 0;
    font-size: 12px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.fda-disclaimer {
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.copyright {
    color: #64748b;
}

/* Responsive Scaling */
@media (max-width: 600px) {
    .editorial-article {
        padding: 20px;
    }
    
    .ingredient-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-wrapper {
        padding: 20px 15px;
    }
}
