/* 
 * 🎨 TOPINFOSPOT SEO BLUEPRINT STYLESHEET
 * 
 * Edit any class inside this file to update the styling across all generated pages.
 */

:root {
    --primary-color: #0f172a;      /* Slate 900 */
    --accent-color: #2563eb;       /* Blue 600 */
    --accent-hover: #1d4ed8;       /* Blue 700 */
    --bg-color: #f8fafc;           /* Slate 50 */
    --card-bg: #ffffff;            /* Pure white */
    --text-main: #1e293b;          /* Slate 800 */
    --text-muted: #475569;         /* Slate 600 */
    --border-color: #e2e8f0;       /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Base resets & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 48px; /* Accounts for fixed top-bar (20% lower than 60px) */
}

/* 🧭 STICKY NAV BAR */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px; /* 20% lower than 60px */
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-bar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    text-decoration: none;
    flex-shrink: 0;
    justify-self: start;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
}

/* Color coded branded logo: TOP (Orange), INFO (Green), SPOT (Royal Blue) */
.logo-top {
    color: #ea580c; /* High-Visibility Orange */
}
.logo-info {
    color: #16a34a; /* Authoritative Green */
}
.logo-spot {
    color: #2563eb; /* Royal Blue */
}

/* Navigation Links - Centered, Uppercase, Bold, and Prominent */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    justify-self: center;
}

.nav-link {
    font-size: 1.25rem; /* same font size as TOPINFOSPOT logo */
    font-weight: 600;
    color: #2563eb; /* Royal Blue */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.025em; /* same letter-spacing as TOPINFOSPOT logo */
    transition: color 0.2s ease, border-color 0.2s ease;
    padding: 0.15rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #ea580c; /* Orange Hover */
}

.nav-link.active-link {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.right-spacer {
    display: block;
    justify-self: end;
    width: 1px;
    height: 1px;
    visibility: hidden;
}

/* 📱 Main Layout Container */
.main-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

/* 📦 Main content Card */
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Meta headers */
.category-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.article-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* 🛡️ E-E-A-T Editorial Verification Panel (GOLD SEO Feature) */
.eeat-trust-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.trust-badge-icon {
    font-size: 1.1rem;
    color: #16a34a; /* Vibrant Green */
}

.trust-label {
    font-weight: 700;
    color: var(--text-main);
}

/* 📋 Table of Contents Block (GOLD SEO Feature) */
.table-of-contents {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2.5rem;
}

.toc-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .toc-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.toc-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.toc-link:hover {
    color: #ea580c; /* Orange Hover */
}

/* Direct Answer Block */
.direct-answer {
    background: #f8fafc;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.direct-answer-title {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.direct-answer-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Bullet Points */
.fact-bullets {
    margin-bottom: 2.5rem;
    list-style: none;
}

.fact-bullet-item {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-main);
}

.fact-bullet-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: #10b981;
    font-weight: 800;
    font-size: 1.1rem;
}

/* 📊 INTERACTIVE CALCULATOR ENGINE */
.calculator-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin: 2rem 0;
}

.calc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calc-purpose {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}

.calc-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--card-bg);
}

.calc-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calc-slider {
    width: 100%;
    margin: 0.5rem 0;
}

.calc-result {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* 🔗 SOCIAL SHARING WIDGET */
.share-section {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2.5rem;
}

.share-heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.92);
}

.share-btn:active {
    transform: translateY(0);
}

/* Brand colors */
.btn-facebook { background: #1877f2; }
.btn-twitter { background: #1da1f2; }
.btn-whatsapp { background: #25d366; }
.btn-email { background: #ea4335; }
.btn-copy { 
    background: #64748b; 
    transition: background 0.2s ease;
}
.btn-copy.copied {
    background: #10b981;
}

/* 📬 EMAIL CLIENT MODAL OVERLAY & POPUP */
.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6); /* Glassy dark blur */
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.email-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.email-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    padding: 1.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(15px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.email-modal-overlay.active .email-modal-card {
    transform: translateY(0);
}

.email-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.email-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.close-modal-btn {
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    color: #475569;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.close-modal-btn:hover {
    background: #cbd5e1;
}

.email-modal-desc {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 1.25rem 0;
    line-height: 1.4;
}

.email-client-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.email-client-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    transition: transform 0.15s ease, filter 0.15s ease;
    box-sizing: border-box;
}

.email-client-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

.gmail-btn { background: #ea4335; }
.yahoo-btn { background: #6001d2; }
.outlook-btn { background: #0078d4; }
.default-client-btn { background: #475569; }

.client-icon {
    font-size: 1.2rem;
}

/* 🙋 FAQS BLOCK */
.faqs-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

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

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

.faq-answer {
    font-size: 0.975rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 🏷️ FOOTER */
.site-footer {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* 📱 RESPONSIVE ADJUSTMENTS */
@media (max-width: 1120px) and (min-width: 769px) {
    .logo-text {
        font-size: 1.15rem; /* Scales logo down to match nav links scale on laptops */
    }
    .nav-links {
        gap: 0.75rem;
    }
    .nav-link {
        font-size: 1.15rem; /* same font size and weight as the laptop logo to fit perfectly */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 112px; /* 20% lower than 140px for stacked mobile top nav */
    }
    
    .top-bar {
        height: auto;
        padding: 0.6rem 0.5rem; /* 20% lower vertical padding than 0.75rem */
    }
    
    .top-bar-inner {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.9rem; /* Relevant size to fit mobile screen width elegantly */
        padding: 0.2rem 0.35rem;
        color: #2563eb; /* Blue on mobile */
    }

    .nav-link:hover {
        color: #ea580c; /* Orange hover on mobile */
    }
    
    .right-spacer {
        display: none;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .faqs-section {
        padding: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .native-promo-banner {
        flex-direction: column;
        text-align: center !important;
        padding: 1rem !important;
    }

    .native-promo-banner div {
        flex-direction: column;
        align-items: center !important;
    }

    .native-promo-banner a {
        width: 100%;
        text-align: center;
    }
}

/* 🔗 SEMANTIC INTERLINKING & BREADCRUMBS */
.article-breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.article-breadcrumb-nav a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

.article-breadcrumb-nav a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.article-breadcrumb-nav .separator {
    color: #cbd5e1;
}

.article-breadcrumb-nav .current-item {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* Interlinking container at the bottom */
.interlinking-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.interlinking-header-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.interlinking-card {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem !important;
    text-decoration: none !important;
    color: var(--text-main) !important;
    transition: all 0.2s ease-in-out !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: var(--shadow-sm) !important;
}

.interlinking-card:hover {
    border-color: var(--accent-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    text-decoration: none !important;
}

.interlinking-card h4 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: var(--text-main) !important;
    margin: 0 0 0.5rem 0 !important;
    text-decoration: none !important;
}

.interlinking-card p {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.interlinking-card .card-action {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    text-decoration: none !important;
}

.interlinking-card:hover .card-action {
    color: var(--accent-hover) !important;
    text-decoration: none !important;
}

