/**
 * BIZ.ДЕЛЬНИКИ - Revolutionary Business Platform Design
 * Modern, interactive, and engaging design for entrepreneurs
 */

:root {
    /* Modern Color System */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-lighter: #334155;
    
    /* Unified Blue Theme - Psychology of Winner (Trust, Success, Confidence) */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    
    --success: #0ea5e9;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Neutral Palette */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Backgrounds - Brighter & More Professional */
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.5);
    
    /* Text - Better Contrast */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Borders */
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Legacy compatibility */
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg-secondary);
    --bg-elevated: var(--bg-card);
    --text-primary: var(--text-primary);
    --text-secondary: var(--text-secondary);
    --text-muted: var(--text-muted);
    --border-light: var(--border);
    --border-medium: var(--border-hover);
    --accent-primary: var(--accent);
    --accent-primary-hover: var(--accent-hover);
    --spacing-xs: var(--space-2);
    --spacing-sm: var(--space-3);
    --spacing-md: var(--space-4);
    --spacing-lg: var(--space-6);
    --spacing-xl: var(--space-8);
    --spacing-2xl: var(--space-12);
    --font-family: var(--font-sans);
    --font-size-xs: var(--text-xs);
    --font-size-sm: var(--text-sm);
    --font-size-base: var(--text-base);
    --font-size-lg: var(--text-lg);
    --font-size-xl: var(--text-xl);
    --font-size-2xl: var(--text-2xl);
    --font-size-3xl: var(--text-3xl);
    --font-size-4xl: var(--text-4xl);
    --border-color: var(--border);
    --border-hover: var(--border-hover);
    --blue: var(--accent);
    --blue-light: var(--accent-light);
    --blue-dark: var(--accent-hover);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #1e293b;
    --bg-card: #1e293b;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    background-attachment: fixed;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container - Wider for modern layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}

/* Header - Modern & Minimal - Brighter */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.8);
    border-bottom-color: var(--border);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    padding: var(--space-3) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    flex-shrink: 0;
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    padding-left: 0;
}

/* Burger Menu Button */
.burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    gap: 5px;
}

.burger-menu-btn span {
    width: 100%;
    height: 3px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.burger-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.main-nav {
    display: flex;
    gap: var(--space-1);
    align-items: center;
    flex-wrap: wrap;
}

.nav-links-wrapper {
    display: flex;
    gap: var(--space-1);
    align-items: center;
    flex-wrap: wrap;
}

.mobile-menu-header {
    display: none;
}

.mobile-menu-close {
    display: none;
}

.header-actions-mobile {
    display: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.header-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.btn-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.messages-link {
    position: relative;
}

.unread-badge-header {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    padding: 2px 6px;
    font-size: 10px;
    font-weight: var(--font-bold);
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.btn-link:hover {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    padding: 0;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: rotate(15deg);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
    position: absolute;
}

.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Main Content - Brighter */
.main-content {
    padding: var(--space-8) 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 50%, #ffffff 100%);
}

/* Hero Section - Full Width with Image - Brighter */
.hero-widget-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (min-width: 1024px) {
    .hero-widget-row {
        grid-template-columns: 2fr 1fr;
        gap: var(--space-8);
    }
}

.hero-section {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-gradient);
}

.hero-section-inline {
    min-height: auto;
    padding: var(--space-10);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-quote {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl));
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-author {
    color: var(--text-muted);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Buttons - Modern & Interactive */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--accent-gradient);
    color: var(--text-inverse);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    text-decoration: none;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--accent-gradient);
    color: var(--text-inverse);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-subscribe:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(37, 99, 235, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-warning {
    background: #f59e0b;
    color: var(--text-inverse);
}

.btn-warning:hover {
    background: #d97706;
}

.subscribe-section {
    text-align: center;
    margin: var(--space-12) 0;
}

/* Smart Filter Bar - Unique & Modern Solution - Brighter */
.smart-filter-bar {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin: var(--space-12) 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: calc(var(--space-4) + 80px);
    z-index: 100;
    transition: all var(--transition-base);
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

.smart-filter-bar:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.filter-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--accent-gradient);
    color: var(--text-inverse);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.filter-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.filter-toggle-btn.active {
    background: var(--accent-hover);
}

.filter-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    flex: 1;
    min-height: 32px;
}

.active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--accent);
    color: var(--text-inverse);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.active-filter-badge .remove-filter {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--text-inverse);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 12px;
    transition: background var(--transition-fast);
}

.active-filter-badge .remove-filter:hover {
    background: rgba(255, 255, 255, 0.5);
}

.filter-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), opacity var(--transition-base);
    opacity: 0;
}

.filter-panel.active {
    max-height: 2000px;
    opacity: 1;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-section {
    margin-bottom: var(--space-8);
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

/* Filter Pills - Categories - Carousel */
.filter-pills-container {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-2) 0;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.filter-pills-container:active {
    cursor: grabbing;
}

.filter-pills-container::-webkit-scrollbar {
    height: 6px;
}

.filter-pills-container::-webkit-scrollbar-track {
    background: transparent;
}

.filter-pills-container::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-full);
}

.filter-pills-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: #ffffff;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.filter-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    transition: left var(--transition-base);
    z-index: 0;
}

.filter-pill > * {
    position: relative;
    z-index: 1;
}

.filter-pill:hover {
    border-color: var(--accent);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-pill:hover::before {
    left: 0;
}

.filter-pill.active {
    background: var(--accent-gradient);
    color: var(--text-inverse);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.filter-pill.active::before {
    left: 0;
}

.pill-icon {
    font-size: var(--text-base);
}

/* Filter Tags Cloud - Carousel */
.filter-tags-cloud {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-2) 0;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.filter-tags-cloud:active {
    cursor: grabbing;
}

.filter-tags-cloud::-webkit-scrollbar {
    height: 6px;
}

.filter-tags-cloud::-webkit-scrollbar-track {
    background: transparent;
}

.filter-tags-cloud::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-full);
}

.filter-tags-cloud::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.filter-tag-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: #ffffff;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: var(--font-medium);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.filter-tag-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.filter-tag-item.active {
    background: var(--accent-gradient);
    color: var(--text-inverse);
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--font-bold);
    min-width: 18px;
    text-align: center;
}

.filter-tag-chip.active .tag-count {
    background: rgba(255, 255, 255, 0.3);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    margin-top: var(--space-6);
}

.btn-filter-clear {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-filter-clear:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Content Grid - No Sidebar Anymore */
.content-grid {
    display: block;
    margin-top: var(--space-8);
}

.main-column {
    width: 100%;
}

/* Section Titles - Bold & Modern */
.section-title {
    font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--space-8);
    letter-spacing: -0.03em;
    line-height: var(--leading-tight);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-2);
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

/* Articles - Modern Card Grid */
.articles-section {
    margin-bottom: var(--space-12);
}

.articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

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

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

/* Article Card - Interactive & Modern - Brighter */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.article-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-8px);
    background: #ffffff;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.article-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-4);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-medium);
    flex-wrap: wrap;
}

.article-time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.article-category {
    color: var(--accent);
    text-decoration: none;
    font-weight: var(--font-semibold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.1);
    transition: all var(--transition-fast);
    font-size: var(--text-xs);
}

.article-category:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-hover);
    transform: scale(1.05);
}

.article-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    margin: 0;
}

.article-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: block;
}

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

.article-excerpt {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.article-author {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
}

.article-author:hover {
    color: var(--accent);
}

.article-stats {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Sidebar - Removed, replaced with Smart Filter Bar */
.sidebar {
    display: none;
}

.sidebar-section {
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
}

.sidebar-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.sidebar-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.01em;
}

.categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.categories-list a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
}

.categories-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: height var(--transition-fast);
}

.categories-list a:hover,
.categories-list a.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding-left: var(--space-6);
}

.categories-list a:hover::before,
.categories-list a.active::before {
    height: 60%;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.tag:hover,
.tag.active {
    background: var(--accent-gradient);
    color: var(--text-inverse);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
}

/* Article Full Page */
.article-full {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 2px solid var(--border);
}

.article-title-full {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    letter-spacing: -0.04em;
}

.article-body {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    margin: var(--space-10) 0;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-6);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

.article-body h2 {
    font-size: var(--text-3xl);
}

.article-body h3 {
    font-size: var(--text-2xl);
}

.article-body p {
    margin-bottom: var(--space-6);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    margin: var(--space-8) 0;
    box-shadow: var(--shadow-lg);
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.article-body a:hover {
    color: var(--accent-hover);
}

/* Comments */
.comments-section {
    margin-top: var(--space-16);
    padding-top: var(--space-10);
    border-top: 2px solid var(--border);
}

.comment-form {
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.comment {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.comment:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.comment-header strong {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.comment-time {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.comment-content {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Article Actions */
.article-actions {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 2px solid var(--border);
}

.btn-like {
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-like:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-like.liked {
    background: var(--accent-gradient);
    color: var(--text-inverse);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.btn-like.liked:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: var(--space-8) 0;
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.article-image-full {
    width: 100%;
    margin: var(--space-10) 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.article-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

.article-author-info {
    color: var(--text-secondary);
    margin-top: var(--space-3);
    font-size: var(--text-base);
}

.related-articles {
    margin-top: var(--space-16);
    padding-top: var(--space-10);
    border-top: 2px solid var(--border);
}

/* Footer - Brighter */
.site-footer {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    border-top: 2px solid var(--border);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-20);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-section h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Tension Widget - Brighter */
.tension-widget-inline {
    width: 100%;
}

.tension-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    position: sticky;
    top: calc(var(--space-4) + 80px);
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

.tension-widget:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.tension-widget-header {
    margin-bottom: var(--space-6);
    text-align: center;
}

.tension-widget-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.tension-widget-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

.tension-scale {
    margin: var(--space-6) 0;
}

.tension-scale-track {
    position: relative;
    width: 100%;
    height: 14px;
    background: linear-gradient(to right, #e74c3c 0%, #f39c12 25%, #f1c40f 50%, #2ecc71 75%, #27ae60 100%);
    border-radius: var(--radius-full);
    cursor: pointer;
    margin-bottom: var(--space-4);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tension-scale-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    transition: width 0.1s ease;
    pointer-events: none;
}

.tension-scale-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: white;
    border: 3px solid var(--accent);
    border-radius: var(--radius-full);
    cursor: grab;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    z-index: 10;
}

.tension-scale-handle:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translate(-50%, -50%) scale(1.15);
}

.tension-scale-handle:active {
    cursor: grabbing;
}

.tension-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    margin-top: var(--space-3);
}

.tension-label {
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

.tension-label-bad {
    color: #e74c3c;
}

.tension-label-good {
    color: #27ae60;
}

.tension-stats-compact {
    margin: var(--space-6) 0;
    padding: var(--space-6);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.tension-stat-compact {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.tension-stat-value-compact {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    min-width: 100px;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tension-stat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tension-stat-label-compact {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
    font-weight: var(--font-semibold);
}

.tension-stat-votes-compact {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.tension-actions {
    margin-top: var(--space-6);
}

.tension-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: var(--accent-gradient);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.tension-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.tension-btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border);
    margin-top: var(--space-3);
}

.tension-btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.tension-message {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    text-align: center;
    display: none;
}

.tension-message-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.tension-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

/* Loading & Filters */
#articles-list {
    transition: opacity var(--transition-base);
}

#loading-indicator {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: var(--space-10);
    font-size: var(--text-lg);
}

.filter-category,
.filter-tag {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-category.active,
.filter-tag.active {
    background: var(--accent-gradient);
    color: var(--text-inverse);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

.sidebar-section {
    animation: slideInRight 0.6s ease-out;
}

/* Smart Filter Bar - Mobile Adaptations */
@media (max-width: 768px) {
    .smart-filter-bar {
        position: static;
        margin: var(--space-8) 0;
        padding: var(--space-4);
        border-radius: var(--radius-xl);
    }
    
    .filter-bar-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }
    
    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-panel.active {
        margin-top: var(--space-4);
        padding-top: var(--space-4);
    }
    
    .filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .filter-pills::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-pills::-webkit-scrollbar-thumb {
        background: var(--border-hover);
        border-radius: var(--radius-full);
    }
    
    .filter-pill {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-4);
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .filter-tags-cloud {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-tags-cloud::-webkit-scrollbar {
        height: 4px;
    }
    
    .active-filters {
        justify-content: flex-start;
        margin-top: var(--space-2);
        overflow-x: auto;
        padding-bottom: var(--space-2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Header Mobile */
    .site-header {
        padding: var(--space-3) 0;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: var(--space-3);
    }
    
    .logo-section {
        flex: 1;
        min-width: 0;
    }
    
    .logo-image {
        height: 27px;
    }
    
    .logo-text {
        font-size: var(--text-lg);
    }
    
    .tagline {
        font-size: 10px;
        line-height: 1.2;
    }
    
    /* Burger Menu */
    .burger-menu-btn {
        display: flex;
        flex-shrink: 0;
    }
    
    /* Hide Desktop Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-card);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
        order: unset;
        width: 85%;
        max-width: 400px;
        justify-content: flex-start;
        margin-top: 0;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-4);
        border-bottom: 1px solid var(--border);
        background: var(--bg-card);
    }
    
    .logo-section-mobile {
        display: flex;
        flex-direction: column;
        gap: var(--space-1);
    }
    
    .logo-section-mobile .logo-image {
        height: 31px;
    }
    
    .logo-section-mobile .tagline {
        font-size: 10px;
    }
    
    .mobile-menu-close {
        display: block;
        background: transparent;
        border: none;
        font-size: 32px;
        color: var(--text-primary);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        transition: all var(--transition-fast);
    }
    
    .mobile-menu-close:hover {
        background: var(--bg-secondary);
    }
    
    .nav-links-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
        gap: var(--space-2);
    }
    
    .nav-links-wrapper .nav-link {
        width: 100%;
        padding: var(--space-3) var(--space-4);
        text-align: left;
        font-size: var(--text-base);
    }
    
    .header-actions {
        display: none;
    }
    
    .header-actions-mobile {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        padding: var(--space-4);
        border-top: 1px solid var(--border);
        margin-top: auto;
    }
    
    .header-actions-mobile .btn-link {
        width: 100%;
        padding: var(--space-3) var(--space-4);
        justify-content: flex-start;
        font-size: var(--text-base);
    }
    
    .header-actions-mobile .messages-link {
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }
    
    .hero-quote {
        font-size: var(--text-3xl);
    }
    
    .article-title-full {
        font-size: var(--text-3xl);
    }
    
    .hero-section-inline {
        padding: var(--space-6);
    }
    
    .article-card {
        padding: var(--space-4);
    }
    
    .articles-list {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Selection */
::selection {
    background: var(--accent);
    color: var(--text-inverse);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Tension Indicator - Compact in Header (Right Side) */
.tension-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: var(--space-4);
}

.tension-indicator-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tension-indicator-btn:hover {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.tension-indicator-scale {
    width: 60px;
    height: 8px;
    position: relative;
}

.tension-indicator-track {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #e74c3c 0%, #f39c12 25%, #f1c40f 50%, #2ecc71 75%, #27ae60 100%);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.tension-indicator-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.tension-indicator-value {
    font-weight: var(--font-bold);
    min-width: 35px;
    text-align: center;
    font-size: var(--text-sm);
}

/* Tension Modal */
.tension-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.tension-modal.active {
    display: flex;
}

.tension-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.tension-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 600px;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    z-index: 1;
    margin: auto;
    transform: translateY(0);
}

.tension-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.tension-modal-header h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.tension-modal-close {
    background: none;
    border: none;
    font-size: var(--text-3xl);
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.tension-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tension-modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    text-align: center;
}

.tension-btn {
    padding: var(--space-3) var(--space-6);
    background: var(--accent-gradient);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.tension-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tension-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tension-btn-secondary:hover {
    background: var(--bg-tertiary);
}

.tension-message {
    margin-top: var(--space-4);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    display: none;
}

.tension-message-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.tension-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Desktop-specific brightness enhancements */
@media (min-width: 1024px) {
    body {
        background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 30%, #ffffff 100%);
    }
    
    .main-content {
        background: transparent;
    }
    
    .article-card {
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .article-card:hover {
        background: #ffffff;
        box-shadow: 0 12px 24px rgba(59, 130, 246, 0.12);
    }
    
    .smart-filter-bar {
        background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }
    
    .tension-widget {
        background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }
    
    .sidebar-section {
        background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
}
