/* ==========================================
   BLOG PAGE STYLES - ULTRA MODERN 2025
   ========================================== */

/* CSS Variables for Theme */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(31, 38, 135, 0.37);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-text: #e2e8f0;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Page Transition */
body {
    transition: background-color 0.3s var(--transition-smooth), color 0.3s var(--transition-smooth);
}

/* Container Override for Blog */
.blog-content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Hero Section - Glassmorphism Enhanced */
.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridPulse 20s ease-in-out infinite;
}

/* Floating Particles Animation */
.blog-hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radialradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: floatingParticles 15s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@keyframes floatingParticles {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.blog-hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.blog-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

/* Blog Search - Glassmorphism */
.blog-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.blog-search-input {
    flex: 1;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15),
                inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: all 0.4s var(--transition-smooth);
}

.blog-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.3),
                inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.blog-search-input::placeholder {
    color: rgba(100, 116, 139, 0.7);
    transition: color 0.3s ease;
}

.blog-search-input:focus::placeholder {
    color: rgba(100, 116, 139, 0.5);
}

.blog-search-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #667eea;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.blog-search-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Blog Categories Filter - Glassmorphism */
.blog-categories {
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 80px;
    z-index: 100;
    transition: all 0.4s var(--transition-smooth);
}

.blog-categories.scrolled {
    padding: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

/* ------------------------------------------
   Minimal Blog Navbar (Return + Auth)
   ------------------------------------------ */
.navbar[role="navigation"] {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); /* Daha tutarlı koyu arka plan */
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

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

.nav-left, .nav-right { display: flex; align-items: center; }
.nav-right { gap: 18px; }

.nav-return-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .4px;
    text-transform: lowercase;
    padding: 10px 18px 10px 14px;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    position: relative;
    /* Kontrast artırıldı: opak degradeye + hafif iç katman */
    background: linear-gradient(135deg, rgba(102,126,234,0.65) 0%, rgba(118,75,162,0.65) 100%);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 4px 16px -4px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.15);
    transition: background .35s var(--transition-smooth), box-shadow .35s var(--transition-smooth), transform .35s var(--transition-smooth);
}

.nav-return-home::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
        mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
}
.nav-return-home::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background:
        conic-gradient(from 0deg, rgba(255,255,255,0.15), transparent 40%, rgba(255,255,255,0.08) 60%, transparent 85%),
        linear-gradient(135deg, rgba(102,126,234,0.25) 0%, rgba(118,75,162,0.25) 100%);
    mix-blend-mode: screen;
    filter: blur(6px);
    opacity: .35;
    animation: gradientShift 9s linear infinite;
    pointer-events: none;
}

.nav-return-home:hover,
.nav-return-home:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px -6px rgba(0,0,0,0.65);
    background: linear-gradient(135deg, rgba(102,126,234,0.70) 0%, rgba(118,75,162,0.70) 100%);
}

.nav-return-home:hover::after,
.nav-return-home:focus-visible::after { opacity: .45; }

.nav-return-icon { margin-right: 6px; font-size: 16px; }

.nav-auth-group { display: flex; align-items: center; gap: 12px; }

.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    /* Kontrastı daha belirgin koyu taban + hafif iç parıltı */
    background: linear-gradient(145deg, #1c2540 0%, #23304f 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.20);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.08);
    transition: background .35s var(--transition-smooth), box-shadow .35s var(--transition-smooth), transform .35s var(--transition-smooth);
}

.btn-auth--login { --btn-accent: #667eea; }
.btn-auth--signup { --btn-accent: #f5576c; }

.btn-auth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--btn-accent), var(--btn-accent));
    opacity: 0;
    transition: opacity .35s ease;
}
.btn-auth::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%),
        radial-gradient(circle at 70% 65%, rgba(255,255,255,0.12), transparent 75%);
    mix-blend-mode: screen;
    opacity: .6;
    pointer-events: none;
    animation: shimmer 5.5s ease-in-out infinite;
}

.btn-auth:hover,
.btn-auth:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 32px -6px rgba(0,0,0,0.6); }
.btn-auth:hover::before,
.btn-auth:focus-visible::before { opacity: .25; }
.btn-auth:hover::after,
.btn-auth:focus-visible::after { opacity: .85; filter: brightness(1.1); }
/* Klavye odak görünürlüğü (ek outline) */
.nav-return-home:focus-visible,
.btn-auth:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Yüksek kontrast mod (Windows / forced-colors) */
@media (forced-colors: active) {
    .navbar[role="navigation"] { border-bottom-color: CanvasText; }
    .nav-return-home,
    .btn-auth { background: CanvasText; color: Canvas; border: 1px solid CanvasText; }
    .nav-return-home:focus-visible,
    .btn-auth:focus-visible { outline: 2px solid CanvasText; }
}

.btn-auth:active { transform: translateY(0); box-shadow: 0 4px 12px -2px rgba(0,0,0,0.4); }

@media (max-width: 640px) {
    .nav-container { padding: 12px 16px; }
    .nav-auth-group { gap: 8px; }
    .btn-auth { padding: 6px 12px; font-size: 11px; }
    .nav-return-home { padding: 8px 12px 8px 10px; font-size: 12px; }
    /* Mobilde auth butonlarını ana çubuktan gizle, toggle panel kullan */
    .nav-auth-group { display: none; }
    .nav-account-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: linear-gradient(135deg,#1c2540,#23304f);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.18);
        box-shadow: 0 4px 14px -4px rgba(0,0,0,0.6);
        cursor: pointer;
        font-size: 16px;
        transition: background .35s, box-shadow .35s, transform .35s;
    }
    .nav-account-toggle:hover,
    .nav-account-toggle:focus-visible { background: linear-gradient(135deg,#2d3a55,#384b6e); transform: translateY(-2px); }
    .nav-account-toggle:active { transform: translateY(0); }
    .nav-account-toggle[aria-expanded="true"] { box-shadow: 0 8px 28px -6px rgba(0,0,0,0.7); }
    .mobile-auth-panel {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 1500;
        padding: 18px 20px 26px;
        background: linear-gradient(135deg,#0f172a 0%, #1e293b 100%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        backdrop-filter: blur(18px) saturate(160%);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 24px 64px -12px rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
        gap: 14px;
        transform: translateY(-30px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .4s var(--transition-smooth), transform .4s var(--transition-smooth);
    }
    .mobile-auth-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .mobile-auth-panel .panel-title { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .5px; }
    .mobile-auth-panel .panel-actions { display: flex; gap: 10px; }
    .mobile-auth-panel .btn-auth { flex: 1; display: inline-flex; justify-content: center; }
    .mobile-auth-panel .quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
    .mobile-auth-panel .quick-link { font-size: 11px; padding: 6px 10px; border-radius: 18px; background: rgba(255,255,255,0.08); color:#fff; text-decoration:none; }
}

@media (max-width: 420px) {
    .nav-account-toggle { width: 38px; height: 38px; font-size: 15px; }
    .mobile-auth-panel { top: 56px; }
    .mobile-auth-panel .btn-auth { padding: 6px 10px; font-size: 11px; }
}
}

@media (prefers-reduced-motion: reduce) {
    .nav-return-home,
    .btn-auth { transition: none; }
    .nav-return-home::before,
    .btn-auth::after { animation: none; filter: none; opacity: .2; }
}

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

.category-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.category-btn.active::before {
    display: none;
}

/* Blog Content Layout */
.blog-content {
    background: var(--bg-secondary, #f8f9fa);
    padding: 60px 0;
    transition: background-color 0.3s ease;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
    position: relative;
    padding: 0;
}

@media (min-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr 400px;
        gap: 50px;
        padding: 0;
    }
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    --post-min: 280px;
    grid-template-columns: repeat(auto-fit, minmax(var(--post-min), 1fr));
    gap: clamp(20px, 3vw, 36px);
    width: 100%;
    align-items: stretch;
}
@media (min-width: 1200px){ .blog-posts-grid { --post-min: 320px; } }
@media (max-width: 640px){ .blog-posts-grid { --post-min: 250px; gap: 22px; } }
@media (max-width: 360px){ .blog-posts-grid { --post-min: 220px; gap: 18px; } .blog-card-content { padding: 24px; } }

/* Blog Card - Ultra Modern Glassmorphism */
.blog-card {
    background: var(--bg-card, white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-color, rgba(0, 0, 0, 0.08)),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.3));
    transition: all 0.5s var(--transition-smooth), transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Stagger animation for cards */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

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

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.5s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.blog-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-card:hover {
    box-shadow: 0 24px 80px rgba(102, 126, 234, 0.25),
                0 8px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Active click effect */
.blog-card:active {
    transform: translateY(-6px) scale(0.98);
    transition: transform 0.1s ease;
}

.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-card-image::after {
    opacity: 1;
}

.blog-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
    transition: transform 0.6s var(--transition-smooth);
    position: relative;
}

.blog-placeholder-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.blog-card:hover .blog-placeholder-image {
    transform: scale(1.15) rotate(2deg);
}

.blog-card:hover .blog-placeholder-image::before {
    opacity: 0.5;
}

.gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gradient-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.gradient-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.gradient-6 { background: linear-gradient(135deg, #30cfd0, #330867); }

/* Commerce Card Variant */
.blog-card--commerce {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}
.blog-card--commerce .blog-card-header {
    background: linear-gradient(135deg, rgba(240,147,251,0.92), rgba(245,87,108,0.92));
    padding: 30px;
}
.blog-card-title { margin: 0; font-size: 1.4rem; line-height: 1.3; }
.blog-card--commerce .blog-card-title { color: #fff; }
.blog-card--commerce .blog-card-excerpt { color: rgba(255,255,255,0.90); }
.blog-card--commerce .blog-card-tags .badge:not(.badge-commerce) {
    background: rgba(255,255,255,0.18);
    color: #fff;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.badge-commerce {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
}
.blog-card-header { padding: 30px; }
.blog-card--commerce .blog-card-header { border-bottom: 1px solid rgba(255,255,255,0.25); }
.blog-card--commerce .blog-card-content { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 18px; }
.blog-card--commerce .blog-card-footer { margin-top: 8px; }
.blog-card--commerce .blog-card-meta span { color: rgba(255,255,255,0.85); }
.blog-card--commerce .blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.blog-card--commerce .blog-read-more { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.blog-card--commerce .blog-read-more:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .blog-card--commerce .blog-card-content { padding: 24px 24px 26px; }
}
.blog-card--commerce:hover {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 28px 90px rgba(245,87,108,0.35), 0 12px 24px rgba(0,0,0,0.25);
}
@media (prefers-reduced-motion: reduce) {
    .blog-card--commerce:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
}

.blog-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #64748b;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: #667eea;
}

.blog-card-content > p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-tags .tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-tags .tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    gap: 12px;
    color: #764ba2;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 400px;
    padding: 30px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    z-index: 90;
    min-height: 100%;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.sidebar-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 i {
    color: #667eea;
}

/* Dark Mode Support for Sidebar */
[data-theme="dark"] .blog-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .sidebar-card {
    background: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

[data-theme="dark"] .sidebar-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: #475569;
}

[data-theme="dark"] .sidebar-card h3 {
    color: #e2e8f0;
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 48px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.author-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    justify-content: center;
}

.author-card > p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.author-bio {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.author-social a {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-post-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-post-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.popular-post-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.popular-post-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.popular-post-date {
    font-size: 12px;
    color: #64748b;
}

/* Newsletter Card */
.newsletter-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.newsletter-card h3 {
    color: white;
}

.newsletter-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Categories Sidebar */
.sidebar-categories {
    list-style: none;
    padding: 0;
}

.sidebar-categories li {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-categories a:hover {
    color: #667eea;
    padding-left: 8px;
}

.sidebar-categories a span {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-number {
    width: 44px;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.pagination-number:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination-number.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.pagination-dots {
    color: #94a3b8;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 30px;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .blog-sidebar {
        width: 100%;
        padding: 30px;
        order: 2;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border-radius: 20px;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
        min-height: 40vh;
    }
    
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .blog-search {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-search-input {
        padding: 14px 20px;
    }
    
    .blog-search-btn {
        width: 100%;
        height: 48px;
        border-radius: 10px;
    }
    
    .blog-categories {
        padding: 20px 0;
        top: 70px;
    }
    
    .category-filters {
        gap: 8px;
        padding: 0 10px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .blog-content {
        padding: 40px 0;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-content h3 {
        font-size: 1.3rem;
    }
    
    .blog-pagination {
        gap: 8px;
        margin-top: 40px;
    }
    
    .pagination-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .pagination-number {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 0 40px;
        min-height: 35vh;
    }
    
    .blog-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .blog-hero-content p {
        font-size: 0.95rem;
    }
    
    .blog-categories {
        padding: 15px 0;
    }
    
    .category-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .category-btn i {
        display: none;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .sidebar-card h3 {
        font-size: 1.1rem;
    }
    
    .pagination-btn span {
        display: none;
    }
}

/* Footer Spacing Fix */
.footer {
    margin-top: 80px;
}

/* Scroll to Top Button Enhancement */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

/* ==========================================
   RESPONSIVE TASARIM BLOG POST STYLES
   ========================================== */

/* Lead paragraph */
.lead {
    font-size: 1.3rem !important;
    color: #4facfe !important;
    font-weight: 500 !important;
}

/* Device mockup elements */
.device-screen-header {
    background: #4facfe;
    height: 30px;
    border-radius: 5px;
}

.device-screen-text {
    background: #e0e0e0;
    height: 15px;
    border-radius: 3px;
}

.device-screen-text-80 {
    width: 80%;
}

.device-screen-text-60 {
    width: 60%;
}

.device-screen-button {
    background: #00f2fe;
    height: 40px;
    border-radius: 5px;
    margin-top: 10px;
}

.device-screen-header-lg {
    background: #4facfe;
    height: 40px;
    border-radius: 5px;
}

.device-screen-header-xl {
    background: #4facfe;
    height: 50px;
    border-radius: 5px;
}

.device-screen-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.device-screen-grid-box {
    background: #e0e0e0;
    height: 80px;
    border-radius: 5px;
}

.device-screen-grid-2fr {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.device-screen-content-60 {
    background: #e0e0e0;
    height: 60px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.device-screen-content-60-no-margin {
    background: #e0e0e0;
    height: 60px;
    border-radius: 5px;
}

.device-screen-sidebar {
    background: #00f2fe;
    border-radius: 5px;
}

/* List styles */
.list-spaced {
    margin: 10px 0;
    line-height: 2;
}

.list-line-height-2 {
    line-height: 2;
}

/* Demo styles */
.demo-title {
    margin-top: 0;
    color: #333;
}

.demo-description {
    margin-top: 20px;
    color: #333;
}

/* Checklist styles */
.checklist-box {
    background: linear-gradient(135deg, #d4fc79, #96e6a1);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.checklist-title {
    margin-top: 0;
    color: #2e7d32;
}

.checklist-list {
    list-style: none;
    padding: 0;
}

.checklist-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.checklist-item:last-child {
    border-bottom: none;
}

/* CTA Box styles */
.cta-box {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 50px 0;
}

.cta-box h3 {
    margin-top: 0;
    font-size: 1.8rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin: 20px 0;
}

.cta-box a {
    display: inline-block;
    background: white;
    color: #4facfe;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.cta-box a:hover {
    transform: scale(1.05);
}

/* Share section */
.share-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.share-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3rem;
    color: white;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Footer override for blog post */
.blog-post-footer {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 80px;
}

.blog-post-footer p {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.blog-post-footer p:last-child {
    margin: 10px 0 0 0;
}

/* ==========================================
   UX/UI BLOG POST STYLES
   ========================================== */

/* Lead paragraph - pink variant */
.lead-pink {
    font-size: 1.3rem !important;
    color: #f5576c !important;
    font-weight: 500 !important;
}

/* CTA Info Box */
.cta-info-box {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.cta-info-box h4 {
    color: #00796b;
    margin-top: 0;
}

/* CTA Button Demos */
.cta-button-demos {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.demo-btn-primary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.demo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

.demo-btn-secondary {
    background: white;
    color: #f5576c;
    border: 2px solid #f5576c;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.demo-btn-secondary:hover {
    background: #f5576c;
    color: white;
}

/* A/B Test Box */
.ab-test-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
}

.ab-test-box h3 {
    color: white;
    margin-top: 0;
}

.ab-test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ab-test-card {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.ab-test-card h4 {
    color: white;
    margin-top: 0;
}

/* ==========================================
   ULTRA-MODERN FEATURES - 2025
   ========================================== */

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    transition: all 0.4s var(--transition-smooth);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: translateY(-5px) scale(1.1) rotate(15deg);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.6);
}

.dark-mode-toggle:active {
    transform: translateY(-3px) scale(1.05);
}

/* Dark Mode Styles */
[data-theme="dark"] .blog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .blog-categories {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .category-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .category-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
    border-color: rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .category-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

[data-theme="dark"] .blog-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .blog-card:hover {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 24px 80px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .blog-card-content h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .blog-card-content p {
    color: #94a3b8;
}

[data-theme="dark"] .blog-search-input {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .blog-search-input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(
        to right,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 1000px 100%;
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(
        to right,
        #1e293b 0%,
        #334155 20%,
        #1e293b 40%,
        #1e293b 100%
    );
    background-size: 1000px 100%;
}

/* Scroll Animation Classes */
.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax Effects */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Smooth Page Transitions */
.page-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Glass Card Effect for Sidebar */
.blog-sidebar-widget {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border-radius: 16px;
    transition: all 0.4s var(--transition-smooth);
}

.blog-sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(31, 38, 135, 0.25);
}

[data-theme="dark"] .blog-sidebar-widget {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Animation for Icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ==========================================
   ADVANCED JAVASCRIPT FEATURES - STYLES
   ========================================== */

/* Search Autocomplete */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 56px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-top: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

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

.autocomplete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.clear-history {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.clear-history:hover {
    background: rgba(239, 68, 68, 0.1);
}

.autocomplete-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.autocomplete-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
}

.autocomplete-item i {
    color: #94a3b8;
    font-size: 14px;
    width: 16px;
}

.autocomplete-item span {
    flex: 1;
    color: #1e293b;
    font-size: 15px;
}

.autocomplete-item strong {
    color: #667eea;
    font-weight: 600;
}

.history-item i {
    color: #667eea;
}

[data-theme="dark"] .search-autocomplete {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .autocomplete-item span {
    color: #e2e8f0;
}

[data-theme="dark"] .autocomplete-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
}

.blog-card:hover .favorite-btn {
    opacity: 1;
}

.favorite-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.favorite-btn.favorited {
    color: #ef4444;
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
}

.favorite-btn.favorited:hover {
    transform: scale(1.2);
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(226, 232, 240, 0.5);
    z-index: 9999;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.1s ease;
    animation: gradientShift 3s ease infinite;
}

/* Recommendation Badge */
.recommendation-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    }
}

.recommendation-badge i {
    font-size: 12px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #667eea;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
}

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

.notification-toast.success {
    border-left-color: #10b981;
}

.notification-toast.error {
    border-left-color: #ef4444;
}

.notification-toast.info {
    border-left-color: #3b82f6;
}

[data-theme="dark"] .notification-toast {
    background: rgba(30, 41, 59, 0.95);
    color: #e2e8f0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
    .favorite-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
        opacity: 1;
    }
    
    .search-autocomplete {
        right: 0;
    }
    
    .notification-toast {
        right: 20px;
        bottom: 80px;
        max-width: calc(100vw - 40px);
    }
}

/* Steps List */
.steps-list {
    font-size: 1.1rem;
    line-height: 2;
}

/* CTA Box - Pink Gradient */
.cta-box-pink {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 50px 0;
}

.cta-box-pink h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: white;
}

.cta-box-pink p {
    font-size: 1.1rem;
    margin: 20px 0;
    color: white;
}

.cta-box-pink a {
    display: inline-block;
    background: white;
    color: #f5576c;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box-pink a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Pink Gradient */
.blog-post-footer-pink {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 80px;
}

.blog-post-footer-pink p {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.blog-post-footer-pink p:last-child {
    margin: 10px 0 0 0;
}

/* ==========================================
   COLOR PSYCHOLOGY BLOG POST STYLES
   ========================================== */

/* Color samples with specific backgrounds */
.color-sample[data-color="red"] { background: #FF0000 !important; }
.color-sample[data-color="yellow"] { background: #FFFF00 !important; }
.color-sample[data-color="blue"] { background: #0000FF !important; }
.color-sample[data-color="orange"] { background: #FF7F00 !important; }
.color-sample[data-color="green"] { background: #00FF00 !important; }
.color-sample[data-color="purple"] { background: #8000FF !important; }
.color-sample[data-color="red-orange"] { background: #FF3F00 !important; }
.color-sample[data-color="yellow-green"] { background: #7FFF00 !important; }
.color-sample[data-color="blue-cyan"] { background: #0080FF !important; }

/* Palette colors */
.palette-color-1 { background: #1e3a8a; }
.palette-color-2 { background: #3b82f6; }
.palette-color-3 { background: #93c5fd; }
.palette-color-4 { background: #dbeafe; }
.palette-color-5 { background: #f59e0b; }
.palette-color-6 { background: #fbbf24; }
.palette-color-7 { background: #fde047; }
.palette-color-8 { background: #f97316; }
.palette-color-9 { background: #ef4444; }
.palette-color-10 { background: #eab308; }

/* Psychology colors */
.psychology-color[data-psychology="red"] { background: linear-gradient(135deg, #dc2626, #ef4444); }
.psychology-color[data-psychology="blue"] { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.psychology-color[data-psychology="green"] { background: linear-gradient(135deg, #059669, #10b981); }
.psychology-color[data-psychology="yellow"] { background: linear-gradient(135deg, #eab308, #fbbf24); }
.psychology-color[data-psychology="orange"] { background: linear-gradient(135deg, #ea580c, #f97316); }
.psychology-color[data-psychology="purple"] { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.psychology-color[data-psychology="black"] { background: linear-gradient(135deg, #18181b, #27272a); }
.psychology-color[data-psychology="white"] { background: linear-gradient(135deg, #f9fafb, #ffffff); border: 2px solid #e5e7eb; }

/* Brand color tags */
.brand-color-tag { padding: 6px 16px; border-radius: 20px; display: inline-block; margin: 4px; font-weight: 600; color: white; }
.brand-color-tag[data-brand="tech"] { background: #3b82f6; }
.brand-color-tag[data-brand="luxury"] { background: #8b5cf6; }
.brand-color-tag[data-brand="professional"] { background: #6b7280; }
.brand-color-tag[data-brand="food"] { background: #ef4444; }
.brand-color-tag[data-brand="energy"] { background: #f97316; }
.brand-color-tag[data-brand="warning"] { background: #eab308; }
.brand-color-tag[data-brand="health"] { background: #10b981; }
.brand-color-tag[data-brand="trust"] { background: #3b82f6; }
.brand-color-tag[data-brand="medical"] { background: #ffffff; border: 1px solid #ccc; color: #333; }
.brand-color-tag[data-brand="finance"] { background: #1e40af; }
.brand-color-tag[data-brand="eco"] { background: #059669; }
.brand-color-tag[data-brand="corporate"] { background: #000000; }
.brand-color-tag[data-brand="fashion-black"] { background: #000000; }
.brand-color-tag[data-brand="fashion-pink"] { background: #ec4899; }
.brand-color-tag[data-brand="fashion-gold"] { background: #fbbf24; }
.brand-color-tag[data-brand="natural-green"] { background: #15803d; }
.brand-color-tag[data-brand="natural-brown"] { background: #92400e; }
.brand-color-tag[data-brand="natural-beige"] { background: #fef3c7; color: #333; }

/* Color portions */
.color-portion.sixty[data-bg="blue"] { background: #3b82f6; }
.color-portion.thirty[data-bg="dark"] { background: #1e293b; }
.color-portion.ten[data-bg="accent"] { background: #f97316; }

/* Brand example colors (for case studies) */
.brand-example-color { width: 40px; height: 40px; border-radius: 8px; display: inline-block; }
.brand-example-color[data-example="spotify-green"] { background: #1DB954; }
.brand-example-color[data-example="spotify-black"] { background: #191414; }
.brand-example-color[data-example="airbnb-red"] { background: #FF5A5F; }
.brand-example-color[data-example="airbnb-teal"] { background: #00A699; }
.brand-example-color[data-example="airbnb-gray"] { background: #484848; }
.brand-example-color[data-example="slack-red"] { background: #E01E5A; }
.brand-example-color[data-example="slack-blue"] { background: #36C5F0; }
.brand-example-color[data-example="slack-green"] { background: #2EB67D; }
.brand-example-color[data-example="slack-yellow"] { background: #ECB22E; }
.brand-example-color[data-example="stripe-blue"] { background: #635BFF; }
.brand-example-color[data-example="stripe-white"] { background: #FFFFFF; border: 2px solid #e5e7eb; }

/* Palette colors for color scheme examples */
.palette-color-modern-1 { background: #667eea; }
.palette-color-modern-2 { background: #764ba2; }
.palette-color-modern-3 { background: #f093fb; }
.palette-color-modern-4 { background: #4facfe; }
.palette-color-modern-5 { background: #1e293b; }

.palette-color-nature-1 { background: #059669; }
.palette-color-nature-2 { background: #84cc16; }
.palette-color-nature-3 { background: #fbbf24; }
.palette-color-nature-4 { background: #92400e; }
.palette-color-nature-5 { background: #f9fafb; }

.palette-color-bold-1 { background: #ec4899; }
.palette-color-bold-2 { background: #f97316; }
.palette-color-bold-3 { background: #eab308; }
.palette-color-bold-4 { background: #8b5cf6; }
.palette-color-bold-5 { background: #0f172a; }

.palette-color-corp-1 { background: #1e40af; }
.palette-color-corp-2 { background: #3b82f6; }
.palette-color-corp-3 { background: #60a5fa; }
.palette-color-corp-4 { background: #475569; }
.palette-color-corp-5 { background: #ffffff; border: 1px solid #e5e7eb; }

/* Contrast examples */
.contrast-text-good { color: #1e293b; background: #ffffff; }
.contrast-text-good-large { color: #64748b; background: #ffffff; font-size: 20px; font-weight: 600; }
.contrast-text-bad { color: #e5e7eb; background: #ffffff; }

/* Trend color schemes */
.trend-color-dark-1 { background: #0f172a; }
.trend-color-dark-2 { background: #1e293b; }
.trend-color-dark-3 { background: #334155; }

.trend-color-neon-1 { background: #00ff88; }
.trend-color-neon-2 { background: #ff006e; }
.trend-color-neon-3 { background: #00f5ff; }

.trend-neon-text { color: #00ff88; text-shadow: 0 0 10px #00ff88; }

.trend-color-earth-1 { background: #92400e; }
.trend-color-earth-2 { background: #78350f; }
.trend-color-earth-3 { background: #d97706; }

.trend-visual.earth-tones { background: linear-gradient(135deg, #92400e, #78350f, #451a03); }

.trend-color-pastel-1 { background: #fecaca; }
.trend-color-pastel-2 { background: #bfdbfe; }
.trend-color-pastel-3 { background: #fef3c7; }

.trend-visual.monochrome { background: linear-gradient(90deg, #000 0%, #fff 100%); }

/* ==========================================
    Utility Gradients (migrated from inline styles)
    ========================================== */
.blog-placeholder-image.gradient-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.blog-category-badge.badge-gradient-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.blog-placeholder-image.gradient-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.blog-category-badge.badge-gradient-green { background: linear-gradient(135deg, #11998e, #38ef7d); }

