/* ============================================
   SHARED STYLES - Bot Comparison Site
   Modern Professional Light Theme
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f6f9;
    --bg-hero: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%);
    --border: #e2e5eb;
    --border-light: #d0d4dc;
    --text-primary: #1a1d26;
    --text-secondary: #5a6070;
    --text-muted: #8b90a0;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: #eef2ff;
    --accent-glow: rgba(79, 70, 229, 0.08);
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --green: #059669;
    --green-light: #ecfdf5;
    --red: #dc2626;
    --red-light: #fef2f2;
    --orange: #ea580c;
    --orange-light: #fff7ed;
    --purple: #7c3aed;
    --gradient-accent: linear-gradient(135deg, #4f46e5, #7c3aed);
    --gradient-green: linear-gradient(135deg, #059669, #10b981);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --max-width: 1140px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 16px;
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.navbar-brand span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dropdown nav */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.2s;
}

.nav-dropdown-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 260px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 100;
    padding: 6px;
}

.nav-dropdown-menu.open {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 14px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 450;
    border-radius: 6px;
    transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.nav-dropdown-menu a.active {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Theme toggle - hidden in light-only design but kept for compatibility */
.theme-toggle {
    display: none;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

.hamburger svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--bg-primary);
    z-index: 999;
    overflow-y: auto;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 450;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
    transition: all 0.15s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent);
    background: var(--accent-light);
}

@media (max-width: 768px) {
    .nav-dropdown {
        display: none;
    }
    .hamburger {
        display: block;
    }
}

/* ---- HERO ---- */
.hero {
    text-align: center;
    padding: 72px 24px 56px;
    position: relative;
    background: var(--bg-hero);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero h1 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero .tested-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.hero .tested-badge svg {
    width: 15px;
    height: 15px;
    color: var(--green);
}

/* ---- CARDS ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.25s;
    box-shadow: var(--shadow-xs);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    filter: brightness(1.08);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ---- SECTION ---- */
.section {
    padding: 64px 0;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.7;
}

/* ---- BADGE ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-gold {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.badge-green {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid #a7f3d0;
}

.badge-blue {
    background: var(--blue-light);
    color: var(--blue);
    border: 1px solid #bfdbfe;
}

.badge-red {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid #fecaca;
}

.badge-purple {
    background: #f5f3ff;
    color: var(--purple);
    border: 1px solid #ddd6fe;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 24px 32px;
    margin-top: 64px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 4px 0;
    font-weight: 450;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- BREADCRUMBS ---- */
.breadcrumbs {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.breadcrumbs .container {
    padding: 0 24px;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--border-light);
}

.breadcrumbs a {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs li:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---- RELATED SECTION ---- */
.related-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.related-col h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.related-link {
    display: block;
    padding: 8px 0;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.related-link:hover {
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero {
        padding: 48px 16px 36px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .section {
        padding: 40px 0;
    }
    .container {
        padding: 0 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
