@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ============================================
   blog_common.css — Individual article pages
   Dark theme + Perplexity-inspired LAYOUT
   (image-first, metadata bar, social shares)
   ============================================ */

:root {
    --base-color: #000000;
    --text-color: #f1f1f1;
    --accent-color: #6b46c1;
    --hover-color: #6b46c1;
    --background-dark: #1a1a1a;
    --input-background: #2a2a2a;
    --border-color: rgb(48, 48, 48);
    --background-color: #070707;
    --main-color: #6b46c1;
    --font-color: #f1f1f1;
    --border-hover-color: #383838;
    --main-color-background: rgb(98, 0, 238, 0.1);
    --font-color-50: rgba(183, 183, 183, 0.5);
    --rizzgen-dark: #121212;
    --rizzgen-text-color: #f0f0f0;
    --rizzgen-accent-purple: #9a43ff;
    --logo-grayscale: #555555;
    --logo-width: 180px;
    --marquee-speed: 30s;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.75;
    background-color: var(--base-color);
    color: var(--text-color);
    max-width: 820px;
    margin: 0 auto;
    padding: 100px 24px 60px 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   FIXED HEADER — dark glass nav for articles
   ============================================ */
.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-container {
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.header-logo img {
    height: 24px;
    width: 24px;
    margin-right: 8px;
}

.header-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-links li {
    display: inline-flex;
    align-items: center;
}

.header-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    line-height: 1;
}

.header-links a:hover {
    color: #fff;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #000 !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem !important;
    font-weight: 500;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.header-cta:hover {
    background: #e0e0e0;
}

/* ============================================
   BACK NAV
   ============================================ */
.nav-back {
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: var(--font-color-50);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-back a {
    color: var(--font-color-50);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-back a:hover {
    color: var(--text-color);
}

.nav-back::before {
    content: "←";
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.nav-back:hover::before {
    transform: translateX(-4px);
}

/* ============================================
   ARTICLE — Flex ordering for Perplexity layout
   Image → Meta bar → Title → Subtitle → Callout → Content
   ============================================ */
article {
    background-color: var(--base-color);
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ---- Image block (order -5 = first) ---- */
.blog-image-container {
    order: -5;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 940px) {
    .blog-image-container {
        width: calc(100% + 120px);
        margin-left: -60px;
        margin-right: -60px;
    }
}

@media (min-width: 1100px) {
    .blog-image-container {
        width: calc(100% + 280px);
        margin-left: -140px;
        margin-right: -140px;
    }
}

.blog-image {
    width: 100%;
    aspect-ratio: 16 / 10; /* default for mobile */
    object-fit: cover;
    border-radius: 16px;
}

@media (min-width: 768px) {
    .blog-image {
        aspect-ratio: 21 / 9; /* wide aspect ratio like Perplexity for desktop */
    }
}

.blog-image-container .blog-image-caption {
    font-size: 0.85rem;
    color: var(--font-color-50);
    line-height: 1.4;
    padding: 0 4px;
}

/* ---- Metadata bar (order -4) ---- */
.meta {
    order: -4;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--font-color-50);
    font-size: 0.9em;
}

.meta-left {
    display: flex;
    gap: 32px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--font-color-50);
    font-weight: 500;
}

.meta-value {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.meta-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.share-btn:hover {
    border-color: var(--border-hover-color);
    background-color: var(--background-dark);
}

.share-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ---- Title (order -3) ---- */
h1 {
    order: -3;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-color);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

/* ---- Subtitle (order -2) ---- */
.subtitle {
    order: -2;
    font-size: 1.3em;
    color: var(--font-color-50);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}

/* ---- Callout (order -1) ---- */
.rizzgen-blog-callout {
    order: -1;
    background: rgba(154, 67, 255, 0.03);
    border-left: 4px solid var(--rizzgen-accent-purple, #9a43ff);
    border-top: 1px solid rgba(154, 67, 255, 0.1);
    border-right: 1px solid rgba(154, 67, 255, 0.1);
    border-bottom: 1px solid rgba(154, 67, 255, 0.1);
    border-radius: 0 12px 12px 0;
    padding: 24px 30px;
    margin: 0 0 2.5rem 0;
}

.rizzgen-blog-callout .callout-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    font-family: var(--font-body);
}

.rizzgen-blog-callout p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

/* ============================================
   TYPOGRAPHY — Body content
   ============================================ */
h2 {
    font-size: 1.8em;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.4em;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    color: var(--text-color);
    font-weight: 600;
}

h4 {
    font-size: 1.1em;
    margin-bottom: 0.5em;
    color: var(--text-color);
    font-weight: 600;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}

p {
    margin-bottom: 1.2em;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color);
}

/* Lists */
ul, ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

li {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-color);
}

/* Inline elements */
strong {
    color: var(--text-color);
    font-weight: 600;
}

code {
    background: var(--input-background);
    color: var(--text-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

/* Highlight Boxes */
.highlight-box {
    background: var(--main-color-background);
    border-left: 4px solid var(--main-color);
    padding: 20px;
    margin: 2em 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin-bottom: 0;
}

.warning-box {
    background: var(--background-dark);
    border-left: 4px solid #ffa000;
    padding: 20px;
    margin: 2em 0;
    border-radius: 0 8px 8px 0;
}

.decision-matrix {
    background: var(--background-dark);
    padding: 20px;
    border-radius: 8px;
    margin: 2em 0;
    border: 1px solid var(--border-color);
}

.decision-matrix ul {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: var(--rizzgen-dark);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 30px;
    border-radius: 8px;
    margin: 3em 0;
    text-align: center;
}

.cta-section a {
    color: var(--rizzgen-accent-purple);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--rizzgen-accent-purple);
}

.cta-section a:hover {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}

/* FAQ Section */
.faq-section {
    margin-top: 3em;
    border-top: 1px solid var(--border-color);
    padding-top: 2em;
}

.faq-item {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5em;
}

/* Internal Links */
.internal-links {
    background: var(--background-dark);
    padding: 20px;
    border-radius: 8px;
    margin: 2em 0;
    border: 1px solid var(--border-color);
}

.internal-links h4 {
    margin-top: 0;
    color: var(--font-color-50);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1em;
}

.internal-links ul {
    margin: 0;
    list-style: none;
    padding: 0;
}

.internal-links li {
    margin-bottom: 0.5em;
}

.internal-links a {
    color: var(--rizzgen-accent-purple);
    text-decoration: none;
}

.internal-links a:hover {
    text-decoration: underline;
}

/* Author Bio */
.author-bio {
    margin-top: 4em;
    padding-top: 2em;
    border-top: 1px solid var(--border-color);
}

.author-bio p {
    color: var(--font-color-50);
    font-size: 0.95em;
    margin-bottom: 0.5em;
}

.author-bio a {
    color: var(--rizzgen-accent-purple);
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4em;
    padding: 2em;
    color: var(--font-color-50);
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--font-color-50);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 88px 16px 40px 16px;
    }

    .blog-header {
        height: 64px;
    }

    .header-links {
        display: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .meta-right {
        width: 100%;
        justify-content: flex-start;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }
}