/* Bold Beautiful Fan - Soap Opera to AI Companions */
/* Color Palette: Deep Purple, Royal Gold, Champagne */

:root {
    --primary-purple: #4A1C6B;
    --secondary-gold: #C9A227;
    --accent-champagne: #F7E7CE;
    --text-dark: #2D2D2D;
    --text-light: #666666;
    --background-cream: #FFFEF7;
    --white: #FFFFFF;
    --purple-light: #6B3D8C;
    --purple-dark: #2E1143;
    --gold-light: #E5C94D;
    --gold-dark: #8B7318;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-purple);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

a {
    color: var(--secondary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(74, 28, 107, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-gold);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--gold-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--accent-champagne);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-champagne);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--purple-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary-gold);
    color: var(--purple-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-champagne);
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Stats Grid */
.stats {
    padding: 4rem 0;
    background: var(--white);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--background-cream);
    border-radius: 12px;
    border: 2px solid var(--accent-champagne);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 28, 107, 0.15);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Articles Grid */
.articles {
    padding: 5rem 0;
    background: var(--background-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 28, 107, 0.15);
}

.article-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-gold);
    font-size: 3rem;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    background: var(--accent-champagne);
    color: var(--primary-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--primary-purple);
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-gold) 0%, var(--gold-dark) 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--background-cream);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-purple);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: var(--purple-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
}

.about-content {
    padding: 4rem 0;
    background: var(--white);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
}

.about-text blockquote {
    background: var(--background-cream);
    border-left: 4px solid var(--secondary-gold);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-dark);
    border-radius: 0 12px 12px 0;
}

.about-highlight {
    background: linear-gradient(to right, transparent, var(--accent-champagne), transparent);
    padding: 3rem 0;
    text-align: center;
    margin: 3rem 0;
}

/* Blog Page */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.blog-hero h1 {
    color: var(--white);
}

.blog-list {
    padding: 4rem 0;
    background: var(--background-cream);
}

/* Single Article Page */
.article-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.article-hero h1 {
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.article-hero-meta {
    color: var(--accent-champagne);
    margin-top: 1rem;
    opacity: 0.9;
}

.article-body {
    padding: 4rem 0;
    background: var(--white);
}

.article-body-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.article-body-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-champagne);
}

.article-body-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body-content ul,
.article-body-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.article-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Info Box */
.info-box {
    background: var(--accent-champagne);
    border-left: 4px solid var(--secondary-gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.info-box h4 {
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Quote Box */
.quote-box {
    background: var(--background-cream);
    border-left: 4px solid var(--primary-purple);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 12px 12px 0;
}

.quote-box cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.data-table th {
    background: var(--primary-purple);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--accent-champagne);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) {
    background: var(--background-cream);
}

/* CTA Box in Articles */
.article-cta {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-light) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.article-cta h3 {
    color: var(--secondary-gold);
    margin-bottom: 1rem;
}

.article-cta p {
    color: var(--accent-champagne);
    margin-bottom: 1.5rem;
}

.article-cta .cta-button {
    background: var(--secondary-gold);
    color: var(--purple-dark);
}

.article-cta .cta-button:hover {
    background: var(--gold-light);
}

/* Footer */
.footer {
    background: var(--purple-dark);
    color: var(--accent-champagne);
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-gold);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--accent-champagne);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-gold);
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    background: var(--background-cream);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-dark);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-purple);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(74, 28, 107, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-gold);
    color: var(--purple-dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--secondary-gold); }
.text-purple { color: var(--primary-purple); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }
