/*
 * pawel.life — Main Stylesheet
 * Apple-minimal aesthetic, Manrope, gradient accents
 * 2026
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ==================== Reset & Variables ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root,
[data-theme="light"] {
    /* Colors — Light */
    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fafafa;
    --text: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #86868b;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --code-bg: #1d1d1f;
    --code-text: #f5f5f7;

    /* Gradients */
    --gold: linear-gradient(135deg, #d4a012 0%, #c2410c 50%, #b91c1c 100%);
    --fire: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    --green: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --purple: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
    --ocean: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);

    /* Solid accent fallbacks */
    --gold-solid: #d4a012;
    --fire-solid: #dc2626;
    --green-solid: #059669;
    --purple-solid: #9333ea;
    --ocean-solid: #0284c7;

    /* Typography */
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 18px;
    --font-size-sm: 15px;
    --font-size-xs: 13px;
    --font-size-lg: 22px;
    --font-size-xl: 28px;
    --font-size-2xl: 36px;
    --font-size-3xl: 48px;
    --font-size-hero: clamp(40px, 6vw, 72px);
    --line-height: 1.7;
    --letter-spacing: -0.022em;

    /* Layout */
    --max-width: 1200px;
    --content-width: 800px;
    --nav-height: 72px;
    --section-gap: 120px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.4s;
    --duration-fast: 0.2s;
}

[data-theme="dark"] {
    /* Colors — Dark */
    --bg: #111111;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #151515;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(17, 17, 17, 0.85);
    --code-bg: #0a0a0a;
    --code-text: #f5f5f7;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== Gradient Text Utility ==================== */
.gradient-gold {
    background: var(--gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-fire {
    background: var(--fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-green {
    background: var(--green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-purple {
    background: var(--purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-ocean {
    background: var(--ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Navigation ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--duration) var(--ease);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.nav-logo span {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.nav-links a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    font-size: var(--font-size-sm) !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: var(--gold) !important;
    padding: 8px 20px;
    border-radius: 100px;
    transition: all var(--duration-fast) var(--ease) !important;
    box-shadow: 0 2px 10px rgba(212, 160, 18, 0.25);
}

.nav-cta:hover {
    opacity: 0.9;
    box-shadow: 0 4px 16px rgba(212, 160, 18, 0.35);
    transform: translateY(-1px);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
    cursor: pointer;
}

.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    transition: transform 0.2s var(--ease);
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.show .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 210px;
    background: var(--card-bg, var(--bg));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s var(--ease), visibility 0s linear 0.15s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

/* Invisible bridge to cover the gap between link and dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown.show .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.15s var(--ease), visibility 0s;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: var(--font-size-sm) !important;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease);
    white-space: nowrap;
    position: relative;
}

.dropdown-menu li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 20px;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

.dropdown-menu li a:hover {
    color: var(--text);
}

.dropdown-menu li a:hover::after {
    width: calc(100% - 40px);
}

.nav-cta::after {
    display: none !important;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    position: absolute;
    left: 6px;
    transition: all 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 20px; }

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 15px;
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 15px;
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-name {
    font-size: var(--font-size-hero);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    justify-content: start;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* Hero image carousel */
.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 24px;
}

.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    filter: saturate(0.6) brightness(0.82) sepia(0.15) contrast(1.05);
    opacity: 0;
    transition: opacity 0.8s var(--ease), filter 0.6s var(--ease);
}

.hero-photo-active {
    opacity: 1;
}

.hero-image-wrapper:hover .hero-photo-active {
    filter: saturate(0.8) brightness(0.9) sepia(0.08) contrast(1.02);
}

/* Dots navigation */
.hero-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot-active {
    background: var(--gold-solid);
    border-color: var(--gold-solid);
    transform: scale(1.2);
}

.hero-dot:hover:not(.hero-dot-active) {
    border-color: var(--text);
}

/* Subtle accent behind image */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: 8px;
    left: 8px;
    background: var(--gold);
    border-radius: 24px;
    opacity: 0.08;
    z-index: -1;
}

/* ==================== Section Layouts ==================== */
.section {
    padding: var(--section-gap) 0;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-narrow {
    max-width: var(--content-width);
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 600px;
    line-height: 1.6;
}

/* ==================== Dividers ==================== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    border: none;
    margin: 0;
}

.divider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 0;
}

.divider-dots span {
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

/* ==================== Cards ==================== */
.card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.card-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-top: 1.25rem;
    transition: gap var(--duration-fast) var(--ease);
}

.card-link:hover {
    gap: 10px;
}

.card-link::after {
    content: '→';
}

/* ==================== About / Pillars ==================== */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ==================== Blog List ==================== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: baseline;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left var(--duration-fast) var(--ease);
}

.blog-item:hover {
    padding-left: 0.5rem;
}

.blog-item:first-child {
    border-top: 1px solid var(--border);
}

.blog-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.blog-item-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-item-tag {
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.blog-item-date {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

/* ==================== Footer ==================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease);
}

.footer-links a:hover {
    color: var(--text);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}

.btn-primary {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 2px 10px rgba(212, 160, 18, 0.25);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 16px rgba(212, 160, 18, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--text);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 0;
}

.btn-ghost:hover {
    color: var(--text);
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger-children .animate-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate-in:nth-child(2) { transition-delay: 80ms; }
.stagger-children .animate-in:nth-child(3) { transition-delay: 160ms; }
.stagger-children .animate-in:nth-child(4) { transition-delay: 240ms; }
.stagger-children .animate-in:nth-child(5) { transition-delay: 320ms; }

/* ==================== Poker Card Suits ==================== */
.suit-hearts { color: #e53935; }
.suit-diamonds { color: #1e88e5; }
.suit-clubs { color: #43a047; }
.suit-spades { color: #1d1d1f; }

[data-theme="dark"] .suit-spades { color: #f5f5f7; }

/* ==================== Controls: Theme + Language ==================== */
.site-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0.5rem;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background 0.2s;
    font-size: 18px;
    line-height: 1;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

.theme-icon {
    display: block;
}

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 2px;
    gap: 0;
}

.lang-option {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s;
}

.lang-option.active {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-option:hover:not(.active) {
    color: var(--text-secondary);
}

/* Dark mode image adjustments */
[data-theme="dark"] .hero-photo {
    filter: saturate(0.5) brightness(0.7) sepia(0.2) contrast(1.05);
}

[data-theme="dark"] .hero-image-wrapper:hover .hero-photo-active {
    filter: saturate(0.7) brightness(0.8) sepia(0.1) contrast(1.02);
}

/* Dark mode nav toggle bars */
[data-theme="dark"] .nav-toggle span {
    background: var(--text);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    :root {
        --section-gap: 80px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-image-wrapper {
        max-width: 340px;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .pillars {
        grid-template-columns: 1fr;
    }

    /* About section inline grid → single column on tablet */
    .section-inner > [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    :root {
        --nav-height: 60px;
        --section-gap: 64px;
        --font-size-base: 16px;
    }

    /* Mobile nav — explicit height because .nav's backdrop-filter
       creates a containing block that breaks position:fixed bottom:0 */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        height: calc(100dvh - var(--nav-height));
        background: var(--bg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.25rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 1rem;
        text-align: center;
        display: block !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }

    .nav-toggle {
        display: block;
    }

    /* Dropdown mobile */
    .nav-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-dropdown .dropdown-arrow {
        width: 14px;
        height: 9px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s var(--ease);
    }

    /* On mobile: hover and .show do nothing, only .open matters */
    .nav-dropdown:hover > .dropdown-menu,
    .nav-dropdown.show .dropdown-menu {
        max-height: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 300px;
        pointer-events: auto;
    }

    .dropdown-menu li a {
        font-size: 1rem !important;
        padding: 0.75rem 0 0.75rem 1.5rem;
        border-bottom: 1px solid var(--border);
    }

    /* Site controls in mobile menu */
    li.site-controls {
        border-bottom: none;
        padding-top: 1.5rem;
        justify-content: center;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 2rem);
    }

    .hero-inner {
        padding: 2rem 1.5rem;
    }

    .hero-image-wrapper {
        max-width: 280px;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 1.25rem;
    }

    /* Section mobile */
    .section-inner {
        padding: 0 1.5rem;
    }

    /* Blog list mobile */
    .blog-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Footer mobile */
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 36px;
    }

    .hero-stats {
        gap: 1.25rem;
    }
}

/* ==================== Subscribe Form ==================== */
.subscribe-form {
    max-width: 460px;
    margin: 0 auto;
}

.subscribe-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.subscribe-input {
    flex: 1;
    font-family: var(--font);
    font-size: var(--font-size-sm);
    padding: 14px 20px;
    border: 1.5px solid var(--border-strong);
    border-radius: 100px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}

.subscribe-input:focus {
    border-color: var(--text-secondary);
}

.subscribe-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.subscribe-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--gold);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(212, 160, 18, 0.25);
    text-align: center;
    justify-content: center;
}

.subscribe-btn:hover {
    opacity: 0.92;
    box-shadow: 0 6px 24px rgba(212, 160, 18, 0.45);
    transform: translateY(-1px);
}

.subscribe-status {
    font-size: var(--font-size-sm);
    margin-top: 1rem;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.subscribe-status.success {
    color: #0c905c;
    background: rgba(16, 191, 122, 0.1);
}

.subscribe-status.error {
    color: #ea4110;
    background: rgba(242, 100, 59, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .subscribe-fields {
        flex-direction: column;
    }
}

/* ==================== Cookie Consent Banner ==================== */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg);
    border-top: 1px solid var(--border-strong);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 2rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#cookieConsent.cc-visible {
    transform: translateY(0);
    opacity: 1;
}

[data-theme="dark"] #cookieConsent {
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cc-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}

.cc-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.cc-link {
    color: var(--gold-solid);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cc-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cc-btn {
    font-family: var(--font);
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cc-btn-accept {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 2px 8px rgba(212, 160, 18, 0.25);
}

.cc-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cc-btn-necessary {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-strong);
}

.cc-btn-necessary:hover {
    border-color: var(--text);
    color: var(--text);
}

@media (max-width: 768px) {
    .cc-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cc-actions {
        width: 100%;
        justify-content: center;
    }

    #cookieConsent {
        padding: 1rem 1.5rem;
    }
}

/* ==================== Blog Post Votes ==================== */

.post-votes {
    display: flex;
    justify-content: center;
    padding: 2rem 0 0.5rem;
}

.vote-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 22px;
    border-radius: 100px;
    border: 1.5px solid var(--border-strong);
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s var(--ease);
    -webkit-user-select: none;
    user-select: none;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.vote-btn.vote-like:hover {
    border-color: var(--gold-solid);
    color: var(--gold-solid);
    background: rgba(212, 160, 18, 0.06);
}

.vote-btn.vote-dislike:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.vote-btn.active.vote-like {
    border-color: var(--gold-solid);
    color: #fff;
    background: var(--gold-solid);
    box-shadow: 0 4px 16px rgba(212, 160, 18, 0.3);
}

.vote-btn.active.vote-dislike {
    border-color: var(--text-muted);
    color: var(--bg);
    background: var(--text-muted);
}

.vote-btn.vote-loading {
    pointer-events: none;
    opacity: 0.6;
}

.vote-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.vote-btn:hover .vote-icon {
    transform: scale(1.15);
}

.vote-pop .vote-icon {
    animation: vote-pop 0.4s var(--ease-out);
}

@keyframes vote-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.4) rotate(-8deg); }
    60% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}

.vote-label {
    font-size: 13px;
    letter-spacing: -0.01em;
}

.vote-count {
    min-width: 1.2em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
    font-size: 13px;
}

[data-theme="dark"] .vote-btn {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .vote-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .vote-btn.active.vote-like {
    box-shadow: 0 4px 16px rgba(212, 160, 18, 0.4);
}

[data-theme="dark"] .vote-btn.active.vote-dislike {
    color: var(--bg);
}

[data-theme="dark"] .vote-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .vote-btn.active.vote-like {
    background: rgba(212, 160, 18, 0.12);
}

[data-theme="dark"] .vote-btn.active.vote-dislike {
    background: rgba(134, 134, 139, 0.12);
}
