/*
 * Article styles for pepguide.ai
 * Used in library compound pages and news articles
 */

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.article-header .container-narrow {
    padding: 0 2rem;
}

.header {
    background: #f8fafc;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.category-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-title,
.compound-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
}

/* Article Content */
.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.article-content p {
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 3.5rem 0 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0ea5e9;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.article-content a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.article-content a:hover {
    text-decoration: underline;
    color: #0284c7;
}

.article-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #4b5563;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #0ea5e9;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

/* Section Styles (for compound pages) */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0ea5e9;
}

.section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem;
}

.section p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #4b5563;
}

.section li {
    margin-bottom: 0.5rem;
}

/* Compound Page Specific */
.back-link {
    margin: 2rem 0 1rem;
}

.back-link a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link a:hover {
    color: #0284c7;
}

.badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quick-facts {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.fact {
    text-align: center;
}

.fact-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.fact-value {
    font-weight: 600;
    color: #1f2937;
}

/* Highlight Boxes */
.highlight {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
    margin: 1rem 0;
}

.key-stats {
    background: #f8fafc;
    border-left: 4px solid #0ea5e9;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.key-stats h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

/* Video Embeds */
.video-section {
    margin: 3rem 0;
}

.video-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0ea5e9;
}

.video-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-caption {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .video-embed {
        border-radius: 8px;
    }
    .video-embed iframe {
        border-radius: 8px;
    }
}

/* Research Citations */
.citation {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0ea5e9;
    margin: 0.5rem 0;
    color: #6b7280;
    font-style: italic;
    font-size: 1rem;
}

.citation a {
    color: #0ea5e9;
    text-decoration: none;
}

.citation a:hover {
    color: #0284c7;
    text-decoration: underline;
}

.citation strong {
    color: #1f2937;
    font-style: normal;
}

/* Related Compounds */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.related-card h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.article-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #1f2937;
}

.article-content td {
    color: #4b5563;
}

/* Info Boxes */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    position: relative;
    padding-left: 3rem;
}

.info-box::before {
    content: 'ℹ';
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1.2rem;
    color: #3b82f6;
    font-weight: bold;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    position: relative;
    padding-left: 3rem;
}

.warning-box::before {
    content: '⚠';
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1.2rem;
    color: #f59e0b;
    font-weight: bold;
}

/* Gated Content Signup */
.signup-cta {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid #0ea5e9;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.signup-cta h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.signup-cta p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signup-form input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.signup-form input:focus {
    border-color: #0ea5e9;
}

.signup-form button {
    padding: 12px 20px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.signup-form button:hover {
    background: #0284c7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-header {
        padding: 3rem 0 2rem;
        margin-bottom: 2rem;
    }

    .article-header .container-narrow {
        padding: 0 1.25rem;
    }

    .article-title,
    .compound-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .article-subtitle {
        font-size: 1.05rem;
    }

    .article-content {
        padding: 0 1.25rem 3rem;
    }

    .article-content p {
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 1.5rem;
    }

    .quick-facts {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

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

    .article-content h2 {
        font-size: 1.375rem;
        margin: 2.5rem 0 1rem 0;
    }

    .article-content h3 {
        font-size: 1.125rem;
        margin: 2rem 0 0.75rem 0;
    }

    .article-content table {
        font-size: 0.8rem;
    }

    .article-content th,
    .article-content td {
        padding: 0.5rem;
    }

    .key-stats {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .medical-disclaimer {
        margin: 2.5rem 0 1rem;
    }
}