/* ==========================================================================
   LetMeKnows - Standalone Article & Blog CSS (Ultra Clean, SEO & AdSense Ready)
   ========================================================================== */

:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;
    --primary-soft: rgba(124, 58, 237, 0.08);
    --primary-border: rgba(124, 58, 237, 0.16);
    --accent: #EC4899;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --bg-body: #FAF5FF;
    --bg-card: #FFFFFF;
    --border-color: rgba(124, 58, 237, 0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 15px rgba(124, 58, 237, 0.05);
    --shadow-md: 0 10px 30px rgba(124, 58, 237, 0.08);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.8;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.article-header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary);
}

.brand-logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.btn-nav-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFF !important;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
    transition: all 0.2s ease;
}

.btn-nav-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}

/* Main Container */
.article-layout {
    max-width: 900px;
    margin: 95px auto 4rem;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

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

.breadcrumb-current {
    color: var(--primary);
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Article Wrapper */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-sm);
}

/* Article Header */
.article-category {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.author-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.author-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.author-name {
    font-weight: 700;
    color: var(--text-main);
}

.article-featured-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Table of Contents */
.table-of-contents {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1.4rem 1.8rem;
    margin: 2rem 0;
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 0.45rem;
}

.toc-list a {
    color: #475569;
    text-decoration: none;
    font-size: 0.93rem;
    transition: color 0.2s ease;
}

.toc-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Article Body Typography */
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F1F5F9;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    color: #334155;
    margin-bottom: 1.35rem;
    line-height: 1.85;
}

.article-body ul, .article-body ol {
    margin: 1.25rem 0 1.5rem 1.75rem;
    color: #334155;
}

.article-body li {
    margin-bottom: 0.6rem;
    line-height: 1.75;
}

.article-body strong {
    color: #0F172A;
}

.article-body blockquote {
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

/* Key Takeaways & Callout Boxes */
.key-takeaway-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.07) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.8rem;
    margin: 2rem 0;
}

.key-takeaway-box h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.key-takeaway-box p {
    margin-bottom: 0 !important;
    color: #334155;
    font-size: 0.98rem;
}

/* AdSense Ad Container */
.ad-slot {
    margin: 2.5rem 0;
    padding: 1rem;
    background: #FAFAFA;
    border: 1px dashed #CBD5E1;
    border-radius: var(--radius-md);
    text-align: center;
    overflow: hidden;
}

.ad-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* FAQ Box inside article */
.article-faq {
    margin: 2.5rem 0;
    border-top: 1px solid #F1F5F9;
    padding-top: 1.5rem;
}

.faq-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    padding: 1.1rem 1.4rem;
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0 !important;
}

/* E-E-A-T Author Box */
.author-bio-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 3.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-bio-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    flex-shrink: 0;
}

.author-bio-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.author-bio-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-bio-text {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 0 !important;
}

/* Related Articles Grid */
.related-articles-section {
    margin-top: 3.5rem;
    border-top: 2px solid #F1F5F9;
    padding-top: 2.5rem;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.related-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.related-card-read {
    margin-top: auto;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Article CTA Box */
.article-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    color: #FFF;
    margin-top: 3.5rem;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.25);
}

.article-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.article-cta p {
    color: #E2E8F0;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 1.75rem;
}

.btn-cta {
    display: inline-block;
    background: #FFFFFF;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Global Footer */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5rem;
}

.footer-nav-grid {
    max-width: 1000px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    font-weight: 600;
}

.footer-nav-grid a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav-grid a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #F1F5F9;
    padding-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .article-card {
        padding: 2rem 1.5rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }

    .nav-links .nav-link {
        display: none;
    }
}
