/* ==========================================================================
   tech-pro — Modern Tech Blue (Default Theme)
   Sharp gradients, blue glow, modern cards. Optimized for VPN comparison sites.
   Design language: precise, confident, tech-forward. DM Sans body + Sora headings.
   ========================================================================== */

/* NOTE: --primary/--primary-rgb/--primary-dark/--primary-light come from the
   inline color scheme in base_frontend.html. Do NOT override them here. */
:root {
    --bg: #f7f8fa;
    --text: #0f1117;
    --text-light: #5c6373;
    --text-muted: #828a9b;
    --border: #e3e5eb;
    --card-bg: #fff;
    --accent: #e74c3c;
    --ink: #111;
    --gold: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(10, 24, 54, .07);
    --shadow-md: 0 4px 16px rgba(10, 24, 54, .1);
    --shadow-lg: 0 8px 32px rgba(10, 24, 54, .13);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-sans: 'DM Sans', 'Noto Sans SC', -apple-system, sans-serif;
    --font-heading: 'Sora', 'Noto Sans SC', sans-serif;
    --glow-primary: 0 0 20px color-mix(in srgb, var(--primary) 40%, transparent);
    --glow-accent: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
    --hero-bg: linear-gradient(135deg, #0f1117 0%, #16213e 50%, #0f3460 100%);
    --hero-text: #fff;
    --hero-subtext: rgba(255, 255, 255, .65);
    --footer-bg: #0f1117;
    --footer-text: rgba(255, 255, 255, .6);
    --footer-link: rgba(255, 255, 255, .55);
    --footer-heading: #fff;
    --footer-border: rgba(255, 255, 255, .08);
    --footer-bottom-text: rgba(255, 255, 255, .35);
    --header-bg: color-mix(in srgb, var(--card-bg) 85%, transparent);
}

/* === Fluid Typography === */
.hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.section-header h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

/* === Enhanced Card Interactions === */
.deal-card {
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
    will-change: transform;
}
.deal-card:hover {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
    box-shadow: 0 12px 32px rgba(37, 99, 235, .08), 0 4px 12px rgba(37, 99, 235, .04);
    transform: translateY(-4px);
}
.deal-card:active {
    transform: translateY(-2px);
    transition-duration: .1s;
}

/* === Hero CTA: blue glow escalation === */
.hero-cta-btn {
    box-shadow: 0 4px 16px rgba(37, 99, 235, .3);
    transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.hero-cta-btn:hover {
    box-shadow: 0 8px 28px rgba(37, 99, 235, .4), var(--glow-primary);
    transform: translateY(-1px);
}
.hero-cta-btn:active {
    transform: translateY(0);
    transition-duration: .1s;
}

/* === Pagination: refined active glow === */
.pagination .active {
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}
.pagination a {
    transition: transform .2s var(--ease-out), background-color .2s var(--ease-out);
}
.pagination a:hover:not(.active) {
    transform: translateY(-1px);
}

/* === Category pills: smooth color transition === */
.cat-pill {
    transition: all .25s var(--ease-out);
}
.cat-pill:hover,
.cat-pill.active {
    transform: translateY(-1px);
}

/* === Deal CTA: pulse on appear === */
.deal-cta-card {
    transition: transform .2s var(--ease-out);
}
.deal-cta-card:hover {
    transform: scale(1.03);
}

/* === Section header: animated underline === */
.section-header {
    position: relative;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* === Trust indicators: subtle glow === */
.hero-stat .num {
    text-shadow: 0 0 24px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* === Scrollbar refinement === */
::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--primary) 30%, var(--border));
}
::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--primary) 50%, var(--border));
}

/* === Focus ring: theme-consistent === */
:focus-visible {
    outline-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* === Article link hover: blue underline reveal === */
.article-content a {
    transition: color .2s var(--ease-out);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
    text-underline-offset: 3px;
}
.article-content a:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

/* === Badge: gradient pop === */
.deal-badge {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* === Breadcrumb: refined separator === */
.breadcrumb a:hover {
    color: var(--primary);
}

/* === Mobile bottom nav: active glow === */
.mobile-bottom-nav .active {
    color: var(--primary);
    box-shadow: 0 -2px 8px color-mix(in srgb, var(--primary) 15%, transparent);
}
