/**
 * ArvoraAI Main Stylesheet
 * Modern SaaS UI, High Aesthetic Standards, Mobile-First
 * Domain: arvoraai.com
 */

/* -------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   ------------------------------------------------------------- */
:root {
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Color Palette */
    --primary: #6366f1;          /* Indigo */
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --secondary: #0ea5e9;        /* Electric Sky Blue */
    --secondary-hover: #0284c7;
    --accent-purple: #8b5cf6;
    --navy-900: #0b132b;         /* Dark Navy Typography & Dark Panels */
    --navy-800: #1c2541;
    --navy-700: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;        /* Muted / Subtitle text */
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;        /* Subtle Card Borders */
    --slate-100: #f1f5f9;
    --bg-page: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    
    /* Semantic Status */
    --emerald: #10b981;
    --emerald-light: #ecfdf5;
    --rose: #ef4444;
    --rose-light: #fef2f2;
    --amber: #f59e0b;
    --amber-light: #fffbeb;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(99, 102, 241, 0.12), 0 8px 10px -6px rgba(99, 102, 241, 0.08);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Layout */
    --container-max: 1240px;
    --container-reading: 860px;
}

/* -------------------------------------------------------------
   2. Base & Typography Reset
   ------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--navy-700);
    background-color: var(--bg-page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy-900);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.25rem; }
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-reading {
    max-width: var(--container-reading);
}

.section-padding {
    padding: 5rem 0;
}

.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.card {
    background: var(--bg-card);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

/* -------------------------------------------------------------
   3. Buttons & Component UI
   ------------------------------------------------------------- */
.arvora-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.arvora-btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.25);
}
.arvora-btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.35);
}

.arvora-btn-outline {
    background-color: transparent;
    color: var(--navy-900) !important;
    border-color: var(--slate-200);
}
.arvora-btn-outline:hover {
    background-color: var(--slate-100);
    border-color: var(--slate-400);
    transform: translateY(-1px);
}

.arvora-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.arvora-btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.arvora-btn-full {
    width: 100%;
}

/* Category Badges */
.cat-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary) !important;
    transition: all 0.2s ease;
}
.cat-badge:hover {
    background-color: var(--primary);
    color: #ffffff !important;
}

.cat-ai-marketing { background-color: #e0e7ff; color: #4338ca !important; }
.cat-ai-automation { background-color: #e0f2fe; color: #0369a1 !important; }
.cat-ai-content-creation { background-color: #f3e8ff; color: #7e22ce !important; }
.cat-ai-customer-support { background-color: #dcfce7; color: #15803d !important; }
.cat-ai-sales-crm { background-color: #ffedd5; color: #c2410c !important; }
.cat-ai-email-marketing { background-color: #fce7f3; color: #be185d !important; }

/* -------------------------------------------------------------
   4. Top Announcement Bar
   ------------------------------------------------------------- */
.arvora-top-bar {
    background: #0b132b;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-bar-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
.top-bar-disclosure a {
    color: #94a3b8;
    text-decoration: underline;
}
.top-bar-disclosure a:hover {
    color: #ffffff;
}

/* -------------------------------------------------------------
   5. Site Header & Navigation
   ------------------------------------------------------------- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.25s ease;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.arvora-logo-img {
    height: 40px;
    width: auto;
}
.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.main-navigation .nav-menu > li {
    position: relative;
}
.main-navigation .nav-menu > li > a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--navy-900);
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.main-navigation .nav-menu > li > a:hover {
    color: var(--primary);
}

/* Dropdown Menus */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 230px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}
.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-navigation .sub-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-700);
}
.main-navigation .sub-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    padding-left: 1.4rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.search-toggle-btn {
    background: none;
    border: none;
    color: var(--navy-700);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.search-toggle-btn:hover {
    color: var(--primary);
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.4rem;
}
.hamburger-bar {
    width: 22px;
    height: 2px;
    background-color: var(--navy-900);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* -------------------------------------------------------------
   6. Mobile Drawer & Search Modal
   ------------------------------------------------------------- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.6);
    backdrop-filter: blur(4px);
}
.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drawerSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--slate-200);
}
.mobile-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy-700);
}
.mobile-drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.mobile-menu li a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy-900);
    border-bottom: 1px solid var(--slate-100);
}
.mobile-drawer-cta {
    margin-top: 2rem;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}
.search-modal.is-open { display: flex; }
.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.7);
    backdrop-filter: blur(6px);
}
.search-modal-box {
    position: relative;
    background: #ffffff;
    width: 640px;
    max-width: 90%;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.search-modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy-900);
    font-size: 1.1rem;
}
.search-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
}
.search-input-wrap svg { color: var(--primary); }
.search-modal-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    font-family: var(--font-body);
}
.search-quick-tags {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.search-quick-tags a {
    background: var(--slate-100);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--navy-700);
}
.search-quick-tags a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* -------------------------------------------------------------
   7. Homepage Hero Section
   ------------------------------------------------------------- */
.arvora-hero-section {
    background: radial-gradient(circle at 50% 0%, #eef2ff 0%, #ffffff 70%);
    padding: 5rem 0 3.5rem;
    text-align: center;
}
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #c7d2fe;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: #4338ca;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.08);
    margin-bottom: 1.5rem;
}
.hero-headline {
    max-width: 860px;
    margin: 0 auto 1.25rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    letter-spacing: -0.03em;
}
.hero-subtitle {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
    color: var(--slate-500);
    line-height: 1.6;
}
.hero-search-wrapper {
    max-width: 720px;
    margin: 0 auto;
}
.hero-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 0.4rem 0.5rem 0.4rem 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.search-input-icon {
    color: var(--slate-400);
    flex-shrink: 0;
    margin-right: 0.5rem;
}
.hero-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1.05rem;
    font-family: var(--font-body);
    color: var(--navy-900);
}
.hero-submit-btn {
    flex-shrink: 0;
}
.hero-quick-filters {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
}
.hero-tag {
    color: var(--slate-600);
    background: #ffffff;
    border: 1px solid var(--slate-200);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}
.hero-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* -------------------------------------------------------------
   8. Trust Metrics Bar
   ------------------------------------------------------------- */
.trust-metrics-section {
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    background: #ffffff;
    padding: 2.5rem 0;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.metric-num {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.02em;
}
.metric-label {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* -------------------------------------------------------------
   9. Category Cards Grid
   ------------------------------------------------------------- */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.section-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}
.section-subtitle {
    color: var(--slate-500);
    font-size: 1.05rem;
}
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.category-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.cat-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.cat-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.cat-card-title a { color: var(--navy-900); }
.cat-card-title a:hover { color: var(--primary); }
.cat-card-desc {
    color: var(--slate-500);
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
}
.cat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--slate-100);
    padding-top: 1rem;
}
.cat-article-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-400);
}
.cat-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
}

/* -------------------------------------------------------------
   10. AI Tools Directory Grid
   ------------------------------------------------------------- */
.tools-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.tool-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}
.tool-logo-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--slate-200);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-logo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tool-placeholder-logo {
    width: 100%;
    height: 100%;
    background: var(--navy-900);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}
.tool-placeholder-logo.large {
    font-size: 2.5rem;
}
.tool-meta-block {
    flex: 1;
}
.tool-title {
    font-size: 1.15rem;
    margin: 0.35rem 0 0.25rem;
}
.tool-title a { color: var(--navy-900); }
.tool-title a:hover { color: var(--primary); }
.tool-rating-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}
.star-icon { color: var(--amber); }
.rating-val { font-weight: 700; color: var(--navy-900); }
.rating-max { color: var(--slate-400); font-size: 0.75rem; }
.tool-award-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--amber);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.tool-card-desc {
    color: var(--slate-500);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.tool-pricing-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--slate-600);
    background: var(--slate-100);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}
.tool-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}
.tool-review-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-500);
}
.tool-review-link:hover {
    color: var(--primary);
}

/* -------------------------------------------------------------
   11. Articles Grid & Article Cards
   ------------------------------------------------------------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.article-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.article-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-100);
}
.article-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.article-card:hover .article-thumb-img {
    transform: scale(1.04);
}
.article-placeholder-thumb {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-placeholder-thumb.large {
    height: 280px;
}
.article-badge-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
}
.article-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}
.article-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}
.article-card-title a { color: var(--navy-900); }
.article-card-title a:hover { color: var(--primary); }
.article-card-excerpt {
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--slate-100);
    background: #fafafa;
}
.author-snippet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.author-mini-avatar {
    border-radius: 50%;
    border: 1px solid var(--slate-200);
}
.author-mini-name {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--navy-700);
}
.read-more-arrow {
    color: var(--primary);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}
.article-card:hover .read-more-arrow {
    transform: translateX(3px);
}

/* Featured Article Highlight (Blog / Category Top) */
.featured-article-highlight {
    margin-bottom: 3rem;
}
.highlight-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}
.highlight-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: var(--slate-100);
}
.highlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.highlight-badge-pos {
    position: absolute;
    top: 16px;
    left: 16px;
}
.spotlight-badge {
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.highlight-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.highlight-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.highlight-title {
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.highlight-excerpt {
    color: var(--slate-500);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.highlight-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--slate-200);
    padding-top: 1.25rem;
}

/* -------------------------------------------------------------
   12. Single Article Page & Reader Experience
   ------------------------------------------------------------- */
.single-article-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--slate-200);
    padding: 2.5rem 0 3rem;
}
.article-header-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.reading-time-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-500);
}
.single-post-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.single-post-subheading {
    font-size: 1.25rem;
    color: var(--slate-500);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}
.article-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 1.5rem;
}
.author-info-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-header-avatar {
    border-radius: 50%;
}
.author-text-meta .by-text {
    font-size: 0.8rem;
    color: var(--slate-400);
    display: block;
}
.author-text-meta strong {
    color: var(--navy-900);
    font-size: 0.95rem;
}
.dates-meta {
    font-size: 0.8rem;
    color: var(--slate-500);
}
.meta-icon {
    vertical-align: -2px;
    margin-right: 4px;
}

/* Top Affiliate Disclosure */
.article-top-disclosure {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.825rem;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.disclosure-inline-link {
    color: var(--primary);
    font-weight: 600;
}
.article-top-cta-banner {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.cta-banner-score {
    display: inline-block;
    background: var(--amber);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-right: 0.5rem;
}
.cta-banner-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--slate-500);
}
.single-featured-image-wrap {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.single-featured-img {
    width: 100%;
    height: auto;
}
.featured-img-caption {
    font-size: 0.8rem;
    color: var(--slate-400);
    text-align: center;
    padding: 0.5rem;
    background: #ffffff;
}

/* Article Layout: Sidebar TOC + Content */
.article-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}
.sticky-toc-box {
    position: sticky;
    top: 96px;
    padding: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--slate-200);
}
.arvora-toc-list ul {
    list-style: none;
    padding-left: 0;
}
.arvora-toc-list li {
    margin-bottom: 0.6rem;
}
.arvora-toc-list a {
    color: var(--slate-600);
    font-size: 0.875rem;
    line-height: 1.4;
    display: block;
    transition: color 0.15s ease;
}
.arvora-toc-list a:hover,
.arvora-toc-list a.active-toc {
    color: var(--primary);
    font-weight: 600;
}
.arvora-toc-list .toc-depth-3 {
    padding-left: 1rem;
    font-size: 0.825rem;
}
.toc-affiliate-box {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--slate-200);
    text-align: center;
}
.toc-sponsored-tag {
    font-size: 0.725rem;
    color: var(--slate-400);
    display: block;
    margin-top: 0.35rem;
}

/* -------------------------------------------------------------
   13. Typography & Shortcodes (TOC, Pros/Cons, CTAs)
   ------------------------------------------------------------- */
.article-typography {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
}
.article-typography h2 {
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-200);
    font-size: 1.75rem;
}
.article-typography h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}
.article-typography ul, .article-typography ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-typography ul { list-style: disc; }
.article-typography ol { list-style: decimal; }
.article-typography li { margin-bottom: 0.5rem; }
.article-typography blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-light);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    font-style: italic;
    color: var(--navy-700);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Pros and Cons Shortcode */
.arvora-pros-cons-box {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
}
.pros-cons-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.col-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid;
    margin-bottom: 1rem;
}
.pros-header { color: var(--emerald); border-color: var(--emerald); }
.cons-header { color: var(--rose); border-color: var(--rose); }
.pros-list li, .cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.925rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    list-style: none;
}
.pros-list svg { color: var(--emerald); flex-shrink: 0; margin-top: 3px; }
.cons-list svg { color: var(--rose); flex-shrink: 0; margin-top: 3px; }

/* Reusable Affiliate CTA Box */
.arvora-cta-container {
    margin: 2.5rem 0;
}
.arvora-cta-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 2px solid #c7d2fe;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
}
.arvora-cta-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.arvora-cta-subtext {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--slate-500);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Review Verdict Box */
.arvora-verdict-card {
    background: var(--navy-900);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
}
.verdict-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.verdict-badge {
    background: var(--amber);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.verdict-title {
    color: #ffffff;
    font-size: 1.6rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
}
.verdict-score-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
}
.score-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #38bdf8;
}
.score-max {
    font-size: 0.9rem;
    color: #94a3b8;
}
.verdict-summary {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.verdict-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
}
.verdict-disclosure-note {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Comparison Tables */
.arvora-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.arvora-comparison-table th, .arvora-comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--slate-200);
}
.arvora-comparison-table th {
    background: #f8fafc;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy-900);
}
.arvora-comparison-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Social Share Bar */
.arvora-social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-500);
}
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    color: var(--navy-700);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Author Biography Card */
.author-bio-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    margin: 3rem 0;
    background: var(--bg-light);
}
.author-bio-avatar {
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
}
.bio-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
}
.author-bio-name {
    font-size: 1.25rem;
    margin: 0.25rem 0 0.5rem;
}
.author-bio-desc {
    color: var(--slate-500);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.author-all-posts-link {
    font-weight: 600;
    font-size: 0.875rem;
}

/* -------------------------------------------------------------
   14. Comparison Showdown & Contact Page
   ------------------------------------------------------------- */
.comparison-card-showdown {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
}
.showdown-category {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary);
}
.showdown-title {
    margin: 0.35rem 0 0.75rem;
}
.showdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1.5rem;
    border-top: 1px solid var(--slate-200);
    padding-top: 1.5rem;
}
.score-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
}
.score-high { background: var(--emerald-light); color: var(--emerald); }
.score-mid { background: var(--amber-light); color: var(--amber); }

/* Contact Form Grid */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 0.35rem;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.contact-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.alert-success {
    background: var(--emerald-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.contact-info-list svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* -------------------------------------------------------------
   15. Footer Styles
   ------------------------------------------------------------- */
.site-footer {
    background: var(--navy-900);
    color: #94a3b8;
    margin-top: auto;
}
.footer-main-wrap {
    padding: 4.5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.25rem 0;
}
.footer-social-links {
    display: flex;
    gap: 0.75rem;
}
.footer-social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.footer-social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
}
.footer-heading {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}
.footer-links-list li {
    margin-bottom: 0.6rem;
}
.footer-links-list a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}
.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 3px;
}
.footer-disclosure-banner {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
}
.disclosure-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #38bdf8;
    display: block;
    margin-bottom: 0.35rem;
}
.disclosure-text {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    font-size: 0.825rem;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.trust-badge-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-right: 0.4rem;
    font-size: 0.75rem;
}
.back-to-top-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.back-to-top-btn:hover {
    background: var(--primary);
}

/* -------------------------------------------------------------
   16. Breadcrumbs & Pagination
   ------------------------------------------------------------- */
.arvora-breadcrumbs {
    padding: 1rem 0;
    font-size: 0.85rem;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--slate-400);
}
.breadcrumb-item a { color: var(--slate-600); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item::after { content: '/'; margin-left: 0.5rem; color: var(--slate-300); }
.breadcrumb-item:last-child::after { content: ''; }
.breadcrumb-item.active { color: var(--navy-900); font-weight: 600; }

.pagination-wrapper {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}
.pagination-wrapper .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    background: #ffffff;
    color: var(--navy-700);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* -------------------------------------------------------------
   17. Responsive Media Queries
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .main-navigation, .header-cta-btn { display: none; }
    .mobile-menu-toggle { display: flex; }
    .category-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .article-layout-container { grid-template-columns: 1fr; }
    .article-toc-sidebar { display: none; } /* On tablet/mobile, TOC collapses or in-content */
}

@media (max-width: 768px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .category-cards-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .highlight-inner { grid-template-columns: 1fr; }
    .pros-cons-grid { grid-template-columns: 1fr; }
    .contact-grid-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-header-flex { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .hero-input-group { flex-direction: column; padding: 0.5rem; gap: 0.5rem; }
    .hero-submit-btn { width: 100%; }
    .verdict-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .verdict-footer { flex-direction: column; align-items: flex-start; }
}
