/* TopPicksOnline Complete Dynamic CSS - 2025 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
}

:root {
    /* Dark theme colors (default) */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1c;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-overlay: rgba(10, 10, 11, 0.9);
    --bg-modal: rgba(17, 17, 19, 0.95);
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #8b8b8d;
    --text-muted: #6b6b6d;
    --text-accent: #ffffff;
    --text-inverse: #0a0a0b;
    
    /* Accent colors */
    --neon-purple: #4400ff;
    --neon-pink: #ff0095;
    --accent: #5b5cff;
    --accent-hover: #4748e0;
    --accent-light: rgba(91, 92, 255, 0.1);
    --accent-medium: rgba(91, 92, 255, 0.2);
    --accent-gradient: linear-gradient(135deg, #5b5cff 0%, #8385ff 100%);
    
    /* Status colors */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-border: rgba(34, 197, 94, 0.3);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.3);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.3);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --info-border: rgba(59, 130, 246, 0.3);
    
    /* Borders and effects */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-focus: rgba(91, 92, 255, 0.6);
    --border-strong: rgba(255, 255, 255, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(91, 92, 255, 0.3);
    
    /* Interactive states */
    --hover-lift: translateY(-2px);
    --active-press: translateY(0px);
    --focus-ring: 0 0 0 3px rgba(91, 92, 255, 0.2);
    
    /* Background gradients */
    --gradient-mesh: 
        radial-gradient(circle at 15% 50%, rgba(91, 92, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(131, 133, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(91, 92, 255, 0.1) 0%, transparent 50%);
    --gradient-mesh-opacity: 0.6;
    
    /* Newsletter specific */
    --newsletter-bg: linear-gradient(135deg, 
        rgba(91, 92, 255, 0.1) 0%, 
        rgba(131, 133, 255, 0.1) 50%,
        rgba(91, 92, 255, 0.05) 100%);
    --newsletter-border: rgba(91, 92, 255, 0.2);
    --newsletter-input-bg: rgba(255, 255, 255, 0.05);
    --newsletter-input-border: rgba(255, 255, 255, 0.1);
    
    /* Affiliate card specific */
    --affiliate-glow: rgba(120, 119, 198, 0.15);
    --affiliate-label-bg: linear-gradient(135deg, rgba(120, 119, 198, 0.2), rgba(255, 119, 198, 0.2));
    --affiliate-label-border: rgba(255, 119, 198, 0.3);
    
    /* Code block */
    --code-bg: rgba(0, 0, 0, 0.3);
    --code-border: var(--border);
    
    /* Scrollbar */
    --scrollbar-track: var(--bg-secondary);
    --scrollbar-thumb: var(--border);
    --scrollbar-thumb-hover: var(--border-hover);
    
    /* Spacing */
    --radius: 24px;
    --radius-sm: 16px;
    --radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme overrides */
[data-theme="light"] {
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f9;
    --bg-tertiary: #f1f1f3;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);
    --bg-overlay: rgba(255, 255, 255, 0.9);
    --bg-modal: rgba(248, 248, 249, 0.95);
    
    /* Text colors */
    --text-primary: #0a0a0b;
    --text-secondary: #6b6b6d;
    --text-muted: #8b8b8d;
    --text-accent: #0a0a0b;
    --text-inverse: #ffffff;
    
    /* Accent colors remain the same but adjust opacity */
    --accent-light: rgba(91, 92, 255, 0.05);
    --accent-medium: rgba(91, 92, 255, 0.15);
    
    /* Status colors backgrounds adjusted for light theme */
    --success-bg: rgba(34, 197, 94, 0.05);
    --success-border: rgba(34, 197, 94, 0.2);
    --error-bg: rgba(239, 68, 68, 0.05);
    --error-border: rgba(239, 68, 68, 0.2);
    --warning-bg: rgba(245, 158, 11, 0.05);
    --warning-border: rgba(245, 158, 11, 0.2);
    --info-bg: rgba(59, 130, 246, 0.05);
    --info-border: rgba(59, 130, 246, 0.2);
    
    /* Borders */
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    --border-strong: rgba(0, 0, 0, 0.2);
    
    /* Shadows adjusted for light theme */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Background gradients */
    --gradient-mesh-opacity: 0.3;
    
    /* Newsletter specific */
    --newsletter-bg: linear-gradient(135deg, 
        rgba(91, 92, 255, 0.03) 0%, 
        rgba(131, 133, 255, 0.03) 50%,
        rgba(91, 92, 255, 0.01) 100%);
    --newsletter-border: rgba(91, 92, 255, 0.15);
    --newsletter-input-bg: rgba(0, 0, 0, 0.03);
    --newsletter-input-border: rgba(0, 0, 0, 0.1);
    
    /* Affiliate card specific */
    --affiliate-glow: rgba(120, 119, 198, 0.08);
    --affiliate-label-bg: linear-gradient(135deg, rgba(120, 119, 198, 0.1), rgba(255, 119, 198, 0.1));
    --affiliate-label-border: rgba(255, 119, 198, 0.2);
    
    /* Code block */
    --code-bg: rgba(0, 0, 0, 0.05);
    
    /* Scrollbar */
    --scrollbar-track: var(--bg-secondary);
    --scrollbar-thumb: var(--border);
    --scrollbar-thumb-hover: var(--border-hover);
}

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    min-height: 100vh;
}

/* Background gradient mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: -1;
    opacity: var(--gradient-mesh-opacity);
    transition: opacity 0.3s ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    cursor: pointer;
    color: var(--accent); /* fallback for browsers that don't support background-clip */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 240px;
    background: var(--bg-modal);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-top: unset;
    border-radius: var(--radius);
    border-top-left-radius: unset;
    border-top-right-radius: unset;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    margin: 2px 0;
}

.dropdown-item .nav-link {
    width: 100%;
    font-size: 14px;
}

/* Theme toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

/* Main content spacing */
main {
    padding-top: 72px;
}

/* Search Section */
.search-container {
    padding: 60px 32px 40px;
}

.search-box {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    height: 64px;
    padding: 0 64px 0 24px;
    font-size: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-card-hover);
    box-shadow: var(--focus-ring);
}

.search-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Search Results */
.search-results-dropdown {
    position: absolute;
    display: none;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: var(--bg-modal);
    backdrop-filter: blur(20px) brightness(0.7);
    -webkit-backdrop-filter: blur(20px) brightness(0.7);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    padding: 8px;
    z-index: 1;
    max-height: 480px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.search-result-item {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.search-result-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 32px;
    text-align: center;
    color: var(--text-secondary);
}

/* Filter Section */
.filter-container {
    padding: 0 32px 40px;
}

.filter-chips {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--bg-card-hover), transparent);
    transition: left 0.5s;
}

.filter-chip:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: var(--hover-lift);
}

.filter-chip:hover::before {
    left: 100%;
}

.filter-chip.active {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* HERO SLIDER STYLES */
.hero-slider {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 60px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    overflow: hidden;
}

.slide-content {
    flex: 1;
    padding: 60px;
    z-index: 2;
    position: relative;
}

.slide-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

.slide-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--accent-gradient);
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    gap: 8px;
}

.slide-cta:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-glow);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, transparent 60%);
    z-index: 1;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--text-primary);
    font-size: 20px;
}

.slider-nav:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
}

.slider-dot.active {
    background: var(--accent);
    opacity: 1;
    transform: scale(1.2);
}

.slider-dot:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Auto-play indicator */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    transition: width linear;
    z-index: 10;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px 60px;
}

.container h2 {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(to bottom, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-primary); /* fallback */
}

/* Tutorial Grid */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.tutorial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tutorial-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.tutorial-thumbnail {
    width: 100%;
    height: 200px;
    opacity: 0.8;
    position: relative;
    overflow: hidden;
}

.tutorial-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* PAGINATION STYLES */
.pagination-container {
    margin: 60px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-xs);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.pagination-button:hover:not(.disabled) {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: var(--hover-lift);
}

.pagination-button.active {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow);
}

.pagination-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-button.prev,
.pagination-button.next {
    font-size: 16px;
    padding: 0 4px;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 8px;
    font-weight: 500;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 16px;
    white-space: nowrap;
}

/* Pagination animation */
@keyframes paginationSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-grid.paginated {
    animation: paginationSlide 0.4s ease-out;
}

/* Day headers - now fully dynamic */
.day-header {
    background: var(--accent-gradient);
    color: var(--text-inverse);
    padding: 15px 25px;
    margin: 25px 0 15px 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.day-header h3 {
    margin: 0 !important;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-inverse);
}

/* Meal Cards - now fully dynamic */
.meal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.meal-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-hover);
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.meal-type {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meal-price {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.meal-name {
    color: var(--text-primary);
    margin: 10px 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.meal-description {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Enhanced text styling - fixed to prevent disappearing text */
.highlight-text {
    font-weight: 600;
    margin: 20px 0;
    padding: 15px;
    border-left: 2px solid var(--error);
    /* background: var(--error-bg); */
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
    /* border: 1px solid var(--error-border); */
}

/* Content lists - now fully dynamic */
.content-list {
    background: var(--bg-card);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 20px;
    padding-left: 30px;
    list-style: none;
    margin: 20px 0;
    border-left: 3px solid var(--info);
    border: 1px solid var(--border);
}

.content-list li {
    margin: 12px 0;
    padding-left: 10px;
    line-height: 1.6;
    position: relative;
    color: var(--text-secondary);
}

.content-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 600;
    position: absolute;
    left: -15px;
}

/* Section headings - now fully dynamic */
.section-heading {
    color: var(--text-primary);
    border-bottom: 3px solid var(--info);
    padding-bottom: 10px;
    margin: 30px 0 20px 0;
    position: relative;
}

.section-heading::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.subsection-heading {
    color: var(--text-primary);
    margin: 25px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid var(--success);
}

/* Enhanced tip and warning boxes - now fully dynamic */
.tip-box, .warning-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.tip-box {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--text-primary);
}

.warning-box {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--text-primary);
}

.tip-icon, .warning-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    color: var(--warning);
}

.warning-icon {
    color: var(--error);
}

.tip-content, .warning-content {
    flex: 1;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Content images */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

.tutorial-thumbnail img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.tutorial-card:hover .tutorial-thumbnail img {
    transform: scale(1.05);
}

.tutorial-thumbnail:empty::after {
    content: '📄';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.3;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
}

.tutorial-content {
    padding: 28px;
}

.tutorial-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tutorial-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.tutorial-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tutorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Affiliate Link Card */
.affiliate-card {
    display: block;
    border-radius: 24px;
    position: relative;
    text-decoration: none;
    perspective: 1000px;
    transform-style: preserve-3d;
    margin: 32px 0;
}

.affiliate-card-inner {
    border: 1px solid var(--accent);
    position: relative;
    border-radius: 22px;
    padding: 32px 40px;
    overflow: hidden;
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
    background: var(--bg-card);
}

.affiliate-glow {
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle at center,
        var(--affiliate-glow),
        transparent 50%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    filter: blur(40px);
}

.affiliate-card:hover .affiliate-glow {
    opacity: 1;
}

.affiliate-card:hover .affiliate-button {
    background-color: var(--accent);
}

.affiliate-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.affiliate-text {
    flex: 1;
}

.affiliate-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--affiliate-label-bg);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 12px;
    border: 1px solid var(--affiliate-label-border);
}

.affiliate-label::before {
    content: '✨';
    font-size: 14px;
}

.affiliate-title {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
    transition: color 0.3s;
}

.affiliate-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.affiliate-button {
    position: relative;
    padding: 16px 28px;
    border-radius: 19px;
    color: var(--text-inverse);
    font-weight: 600;
    border: 1px solid var(--accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: transparent;
}

.glowing {
    position: absolute;
    width: 50%;
    filter: hue-rotate(var(--hue)) blur(50px);
    height: 50%;
    z-index: -6;
    top: 15%;
    left: 15%;
    --hue: 0deg;
    animation: colorChange 5s linear infinite;
}

.glowing:nth-child(even) {
    transform-origin: center;
}

.glowing span {
    position: absolute;
    top: calc(20px * var(--i));
    left: calc(20px * var(--i));
    bottom: calc(20px * var(--i));
    right: calc(20px * var(--i));
    animation-delay: calc(var(--i) * 0.2s);
}

.glowing span::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 25px;
    height: 25px;
    background: #f00;
    border-radius: 50%;
}

.glowing span:nth-child(3n + 1)::before {
    background: rgba(134,255,0,1);
    box-shadow: 0 0 20px rgba(134,255,0,1),
        0 0 40px rgba(134,255,0,1),
        0 0 60px rgba(134,255,0,1),
        0 0 80px rgba(134,255,0,1),
        0 0 0 8px rgba(134,255,0,.1);
}

.glowing span:nth-child(3n + 2)::before {
    background: rgba(255,214,0,1);
    box-shadow: 0 0 20px rgba(255,214,0,1),
        0 0 40px rgba(255,214,0,1),
        0 0 60px rgba(255,214,0,1),
        0 0 80px rgba(255,214,0,1),
        0 0 0 8px rgba(255,214,0,.1);
}

.glowing span:nth-child(3n + 3)::before {
    background: rgba(0,226,255,1);
    box-shadow: 0 0 20px rgba(0,226,255,1),
        0 0 40px rgba(0,226,255,1),
        0 0 60px rgba(0,226,255,1),
        0 0 80px rgba(0,226,255,1),
        0 0 0 8px rgba(0,226,255,.1);
}

.glowing span:nth-child(3n + 1) {
    animation: animate 50s alternate infinite, animate_color 3s linear infinite;
}

.glowing span:nth-child(3n + 2) {
    animation: animate-reverse 30s alternate infinite, animate_color 3s linear infinite;
}

.glowing span:nth-child(3n + 3) {
    animation: animate 80s alternate infinite, animate_color 3s linear infinite;
}

@keyframes colorChange {
    0% {
        --hue: 0deg;
        transform: rotate(0deg);
    }
    100% {
        --hue: 360deg;
        transform: rotate(360deg);
    }
}

@keyframes animate_color {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes animate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        transform: rotate(270deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes animate-reverse {
    0% {
        transform: rotate(360deg) translateX(20px) translateY(-10px) scale(1);
    }
    25% {
        transform: rotate(90deg) translateX(10px) translateY(5px) scale(1.9);
    }
    50% {
        transform: rotate(10deg) translateX(0) translateY(0) scale(0.2);
    }
    75% {
        transform: rotate(90deg) translateX(50px) translateY(25px) scale(1.1);
    }
    100% {
        transform: rotate(0deg) translateX(0) translateY(0) scale(1);
    }
}

/* Share Button Styles */
.share-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
}

.share-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--accent-medium);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
    font-size: 20px;
}

.share-button:hover {
    transform: scale(1.1);
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px var(--accent-medium);
}

.share-button:active {
    transform: scale(0.95);
}

.share-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bg-modal);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 2px 0;
}

.share-option:hover {
    background: var(--accent-medium);
    color: var(--text-primary);
    transform: translateX(4px);
}

.share-option svg {
    width: 20px;
    height: 20px;
}

.share-option.twitter { color: #1DA1F2; }
.share-option.facebook { color: #4267B2; }
.share-option.linkedin { color: #0077B5; }
.share-option.whatsapp { color: #25D366; }
.share-option.copy { color: var(--neon-purple); }

.share-toast {
    position: fixed;
    bottom: 120px;
    right: 40px;
    background: var(--success-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--success);
    border: 1px solid var(--success-border);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 101;
}

.share-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

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

/* TOC should not overlap navbar and should not block clicks */
.toc {
    position: relative;
    z-index: 0; /* below navbar which has z-index:1000 */
    margin-top: 16px; /* create breathing room below header */
}
.toc a {
    pointer-events: auto; /* ensure links are clickable */
}

/* Anchor offset for fixed navbar when scrolling to section ids */
.article-section[id]::before {
    content: "";
    display: block;
    height: 84px; /* nav height (72px) + spacing */
    margin-top: -84px;
    visibility: hidden;
}
@media (max-width: 768px) {
    .article-section[id]::before {
        height: 72px;
        margin-top: -72px;
    }
}

/* Schedule/Day object cards fallback (day, duration, structure[], goal) */
.schedule-card, .routine-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin: 14px 0;
}
.schedule-card .schedule-header,
.routine-card .schedule-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 10px;
}
.schedule-card .schedule-day {
    font-weight: 700;
    color: var(--text-primary);
}
.schedule-card .schedule-duration {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
}
.schedule-card .schedule-structure {
    margin: 8px 0 0 0;
    padding-left: 18px;
}
.schedule-card .schedule-structure li {
    color: var(--text-secondary);
    margin: 6px 0;
}
.schedule-card .schedule-goal {
    margin-top: 10px;
    color: var(--text-secondary);
}

/* Generic key/value box for unknown objects to avoid raw JSON */
.kv {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 12px 0;
}
.kv ul {
    margin: 0;
    padding-left: 18px;
}
.kv li {
    color: var(--text-secondary);
    margin: 6px 0;
}
/* ===== Article missing styles: meta chips, tags, TOC, intro, lists, meals, spacing ===== */

/* Meta chips under title */
.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 12px 0 20px;
}
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

/* Tag chips */
.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 16px 0 24px;
}
.tag-chip {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent-medium);
    border-radius: 999px;
}

/* Article cover image container */
.article-cover {
    margin: 24px 0 12px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.article-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Article introduction block */
.article-introduction {
    margin: 24px 0 32px;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.article-introduction p + p {
    margin-top: 10px;
}

/* Section container spacing */
.article-section {
    margin: 28px 0 16px;
}
.section-description {
    color: var(--text-secondary);
    margin: 8px 0 0;
}

/* Generic content blocks (fallback renderer) */
.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    color: var(--text-secondary);
    margin: 14px 0;
}

/* List block (for many section types) */
.list-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin: 14px 0;
}
.list-block h3 {
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-size: 18px;
}
.list-block p {
    color: var(--text-secondary);
    margin: 6px 0 0 0;
}
.list-block ul {
    margin: 10px 0 0 0;
    padding-left: 18px;
}
.list-block li {
    margin: 6px 0;
    color: var(--text-secondary);
}

/* Table-of-Contents */
.toc {
    margin: 18px auto 0;
    max-width: 800px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}
.toc-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
}
.toc a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}
.toc a:hover {
    text-decoration: underline;
}

/* Meals/day blocks used by meal plans */
.day-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
}
.day-block h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 18px;
}
.meal-list {
    display: grid;
    gap: 10px;
}
.meal-head {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 6px;
}

/* Improve article typography spacing */
.article-content p {
    color: var(--text-secondary);
    line-height: 1.75;
}
.article-content ul,
.article-content ol {
    padding-left: 22px;
    margin: 12px 0;
}
.article-content li {
    margin: 6px 0;
}

/* Responsive adjustments for article UI additions */
@media (max-width: 768px) {
    .toc ul {
        grid-template-columns: 1fr;
    }
    .article-introduction,
    .list-block,
    .content-block,
    .day-block {
        padding: 16px;
    }
}
/* Article Page Styles */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 32px 60px;
}

.article-header {
    text-align: center;
    margin-bottom: 60px;
}

.article-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(to bottom, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-primary); /* fallback */
}

.article-meta {
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 56px 0 24px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.article-content h2:first-of-type {
    margin-top: 32px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 24px;
}

.article-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 32px 0;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.02);
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 32px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.tip-box,
.warning-box {
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 32px 0;
    border: 1px solid;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tip-box {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--text-primary);
}

.warning-box {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--text-primary);
}

.conclusion-box {
    background: var(--newsletter-bg);
    border: 1px solid var(--newsletter-border);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    padding-top: 20px;
    margin: 32px 0;
    position: relative;
}

.conclusion-box::before {
    content: '🎯';
    font-size: 30px;
    position: absolute;
    top: -29px;
    left: 11px;
    padding: 0 8px;
}

.conclusion-box h3 {
    color: var(--accent);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.conclusion-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Generic page styles */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.card h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.card p {
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

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

.cta-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin: 32px 0;
}

.cta-section p {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

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

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

.animate-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px;
    font-size: 18px;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

/* Focus states for accessibility */
.tutorial-card:focus,
.filter-chip:focus,
.nav-link:focus,
.search-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Newsletter Subscription Styles */
.newsletter-section {
    background: var(--newsletter-bg);
    border: 1px solid var(--newsletter-border);
    border-radius: 24px;
    padding: 40px;
    margin: 60px auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-focus) 50%, 
        transparent 100%);
}

.newsletter-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    animation: newsletterFloat 3s ease-in-out infinite;
}

@keyframes newsletterFloat {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

.newsletter-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    color: var(--text-primary); /* fallback */
}

.newsletter-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.newsletter-input {
    flex: 1;
    min-width: 280px;
    height: 52px;
    padding: 0 20px;
    border: 1px solid var(--newsletter-input-border);
    border-radius: 16px;
    background: var(--newsletter-input-bg);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-card-hover);
    box-shadow: var(--focus-ring);
    transform: var(--hover-lift);
}

.newsletter-button {
    padding: 0 32px;
    height: 52px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 16px;
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    box-sizing: border-box;
}

.newsletter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.newsletter-button:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-glow);
}

.newsletter-button:hover::before {
    left: 100%;
}

.newsletter-button:active {
    transform: var(--active-press);
}

.newsletter-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.newsletter-button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.newsletter-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.newsletter-benefit-icon {
    color: var(--accent);
    font-size: 16px;
}

.newsletter-success, 
.newsletter-error {
    display: none;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    font-weight: 600;
    text-align: center;
}

.newsletter-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.newsletter-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

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

/* Responsive design for meal cards */
@media (max-width: 768px) {
    .meal-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .day-header {
        padding: 12px 20px;
        margin: 20px 0 12px 0;
    }
    
    .meal-card {
        padding: 15px;
        margin: 12px 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .article-container {
        padding: 80px 20px 40px !important;
    }
    
    .affiliate-card-inner {
        padding: 20px;
        border-radius: var(--radius);
    }
    
    .affiliate-content {
        flex-direction: column;
        align-items: start;
        text-align: start;
    }
    
    .affiliate-button {
        margin-top: 16px;
        width: 100%;
    }
    
    .container {
        padding: 0 20px 40px;
    }
    
    .container h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .tutorial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        padding: 40px 20px 30px;
    }
    
    .filter-container {
        padding: 0 20px 30px;
    }
    
    .filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .filter-chip {
        flex-shrink: 0;
    }
    
    .article-content h2 {
        font-size: 28px;
        margin-top: 40px;
    }
    
    .article-content h3 {
        font-size: 22px;
    }
    
    .conclusion-box,
    .tip-box,
    .warning-box {
        padding: 20px;
        margin: 24px 0;
    }
    
    .share-container {
        bottom: 20px;
        right: 20px;
    }
    
    .share-menu {
        right: -20px;
        left: auto;
        min-width: 250px;
    }
    
    footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        padding: 0 20px;
        gap: 40px;
    }
    
    .newsletter-section {
        margin: 40px 20px;
        padding: 32px 24px;
    }

    .newsletter-title {
        font-size: 24px;
    }

    .newsletter-description {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .newsletter-input {
        min-width: auto;
        width: 100%;
    }

    .newsletter-button {
        min-width: auto;
        width: 100%;
    }

    .newsletter-benefits {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* RESPONSIVE SLIDER */
    .hero-slider {
        padding: 0 20px 40px;
    }

    .slider-container {
        height: 400px;
    }

    .slide {
        flex-direction: column;
    }

    .slide-content {
        padding: 30px 20px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-description {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-nav.prev {
        left: 12px;
    }

    .slider-nav.next {
        right: 12px;
    }

    .slider-dots {
        bottom: 16px;
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    /* RESPONSIVE PAGINATION */
    .pagination-container {
        margin: 40px auto;
        gap: 8px;
        flex-direction: column;
    }

    .pagination {
        gap: 4px;
        padding: 6px;
    }

    .pagination-button {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .pagination-info {
        margin: 8px 0;
        font-size: 13px;
    }
}

/* Print styles */
@media print {
    .share-container,
    .filter-container,
    .search-container,
    .hero-slider,
    .pagination-container,
    nav,
    footer {
        display: none !important;
    }
    
    .article-container {
        padding: 0 !important;
        max-width: none !important;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
    }
    
    .tip-box,
    .warning-box,
    .conclusion-box {
        border: 1px solid #000;
        page-break-inside: avoid;
        background: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: rgba(255, 255, 255, 0.3);
        --border-hover: rgba(255, 255, 255, 0.5);
    }
    
    [data-theme="light"] {
        --border: rgba(0, 0, 0, 0.3);
        --border-hover: rgba(0, 0, 0, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .newsletter-icon {
        animation: none;
    }

    .slider-wrapper {
        transition: none;
    }

    .slider-progress {
        transition: none;
    }
}