/**
 * 🚀 SOSYALVADI YENİ KULLANICI ARAYÜZÜ CSS 2026
 * Design System Core - Master Core 2026.5.0
 * 
 * @version 2026.7.0
 */

/* ============================================
   DESIGN SYSTEM CORE - Token Mimarisi
   ============================================ */
:root {
    /* Renkler (Semantic) */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #1e293b;
    --muted: #94a3b8;
    --border: rgba(0, 0, 0, 0.1);
    
    --primary: #667eea;
    --primary-2: #5568d3;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --focus: #667eea;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --fs-xxl: clamp(32px, 4vw, 48px);
    --fs-xl: clamp(24px, 3vw, 32px);
    --fs-lg: clamp(20px, 2.5vw, 24px);
    --fs-md: clamp(16px, 2vw, 18px);
    --fs-sm: clamp(14px, 1.5vw, 16px);
    --lh: 1.6;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
    
    /* Spacing */
    --space-1: clamp(4px, 0.5vw, 8px);
    --space-2: clamp(8px, 1vw, 12px);
    --space-3: clamp(12px, 1.5vw, 16px);
    --space-4: clamp(16px, 2vw, 24px);
    --space-5: clamp(20px, 2.5vw, 32px);
    --space-6: clamp(24px, 3vw, 40px);
    --space-7: clamp(32px, 4vw, 48px);
    --space-8: clamp(40px, 5vw, 64px);
    
    /* Radius */
    --radius-1: 8px;
    --radius-2: 12px;
    --radius-3: 16px;
    --radius-4: 24px;
    
    /* Shadow */
    --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-3: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-1: 0.15s;
    --dur-2: 0.3s;
    --dur-3: 0.5s;
    
    /* Legacy (backward compatibility) */
    --primary-hover: var(--primary-2);
    --bg-secondary: var(--surface-2);
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --shadow-sm: var(--shadow-1);
    --shadow-md: var(--shadow-2);
    --shadow-lg: var(--shadow-3);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --transition: all var(--dur-2) var(--ease);
}

/* REV_THEME_SINGLE_AUTH_V1_START — DATA-THEME OVERRIDE */
/* Dark Mode Override - data-theme attribute ile */
[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #334155;
    --text: #f1f5f9;
    --muted: #64748b;
    --border: rgba(255, 255, 255, 0.1);
    
    --glass: rgba(26, 31, 58, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: var(--lh);
    overflow-x: hidden;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
#sv-main-content.home-main,
#home-new-2026 {
    min-height: min(72svh, 720px);
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (max-width: 768px) {
    #sv-main-content.home-main,
    #home-new-2026 {
        min-height: min(60svh, 600px);
    }
}

/* Animated Background */
#sv-main-content.home-main::before,
#home-new-2026::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.03) 0%, 
        rgba(118, 75, 162, 0.03) 50%,
        rgba(240, 147, 251, 0.03) 100%);
    z-index: 0;
    pointer-events: none;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section-new {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 4vw, 40px);
    padding-top: calc(var(--header-h, 64px) + 16px);
    position: relative;
    z-index: 1;
    min-height: 52vh;
    /* Parallax kaldırıldı - logo ve arama kutusu sabit kalmalı */
    transform: none !important;
}

.hero-container-new {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(32px, 6vw, 48px);
}

/* Logo - Sabit Geometri (CLS Kilidi) */
.logo-wrapper-new {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(360px, 72vw);
    height: auto;
    min-height: 80px;
}

.logo-new {
    width: 100%;
    height: auto;
    max-width: min(360px, 72vw);
    object-fit: contain;
    aspect-ratio: 8 / 3;
    filter: drop-shadow(0 4px 20px rgba(102, 126, 234, 0.3));
    /* CLS engelleme: transform ve opacity kullan */
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
    transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
    /* Scroll sırasında sabit kalmalı */
    transform: translateZ(0);
    will-change: auto;
}

.logo-new:hover {
    transform: translateY(-4px) scale(1.02) translateZ(0);
    opacity: 0.95;
    filter: drop-shadow(0 8px 28px rgba(102, 126, 234, 0.4));
}

/* CLS Optimized Animation */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) translateZ(0); }
    50% { transform: translateY(-10px) translateZ(0); }
}

.logo-glow-new {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, 
        rgba(102, 126, 234, 0.4) 0%,
        rgba(118, 75, 162, 0.3) 40%,
        transparent 70%);
    border-radius: 50%;
    animation: logoGlow 2s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* CLS Optimized Animation */
@keyframes logoGlow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) translateZ(0); }
    50% { opacity: 1; transform: translate(-50%, -50%) translateY(-2px) translateZ(0); }
}

/* ============================================
   SEARCH BOX - Google Style
   ============================================ */
.search-wrapper-new {
    position: relative;
    width: 100%;
    max-width: 584px;
}

.search-form-new {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-box-new {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 280px;
    height: 56px;
    min-height: 56px;
    padding: 0 20px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-2);
    transition: var(--transition);
    overflow: visible; /* REV-SEARCH-03: Dropdown görünürlüğü için */
    /* Scroll sırasında sabit kalmalı */
    transform: translateZ(0);
    will-change: auto;
}

.search-box-new:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.search-box-new:focus-within {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2),
                var(--shadow-3);
    border-color: var(--primary);
}

/* Ctrl+K kısayol ipucu (desktop, sadece hover'da - focus'ta gizlenir) */
.search-kbd-hint {
    display: none;
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--muted);
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    pointer-events: none;
}
@media (min-width: 769px) {
    .search-kbd-hint { display: inline; }
}
/* Focus veya yazı yazılırken Ctrl+K ipucunu tamamen gizle */
.search-box-new:focus-within .search-kbd-hint,
.search-box-new.focused .search-kbd-hint {
    opacity: 0;
    visibility: hidden;
}

/* Focus Visible - Erişilebilirlik */
.search-box-new:focus-visible,
.search-input-new:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.search-icon-new {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input-new {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
}

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

/* ============================================
   SEARCH SUGGESTIONS - Dropdown Uyumu
   ============================================ */
/* SEARCH DROPDOWN FIX: above modules, BELOW header (z-1100) */
.search-form-new,
.sv-searchbar,
.sv-searchbar-form {
  position: relative;
  z-index: 10;
}

.search-suggestions,
.autocomplete-results,
.search-dropdown,
.sv-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-4) var(--radius-4);
    box-shadow: var(--shadow-3);
    margin-top: -2px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100; /* header (1100) altında - scroll'da gövde header altından geçer */
    display: none;
}

/* Defensive: module wrappers should not overlay */
.home-modules,
.bento-grid,
.module-grid,
.home-section,
.modules-section-new,
.modules-grid-new {
  position: relative;
  z-index: 1;
}

.suggestion-group-header {
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.suggestion-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background-color var(--dur-1) var(--ease);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: var(--fs-sm);
    text-decoration: none;
    display: block;
}

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

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--surface-2);
    color: var(--primary);
}

.suggestion-item:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
}

.suggestion-item-title {
    font-weight: var(--fw-medium);
    margin-bottom: 2px;
}

.suggestion-item-desc {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-btn-voice,
.search-btn-camera {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: 8px;
}

.search-btn-voice:hover,
.search-btn-camera:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}
.search-btn-voice.recording {
    color: var(--primary);
    animation: voice-pulse 1.2s ease-in-out infinite;
}
@keyframes voice-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { opacity: 0.9; box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

.search-buttons-new {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-search-new,
.btn-lucky-new {
    padding: 12px 24px;
    min-height: 44px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    border: none;
    border-radius: var(--radius-4);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

/* Erişilebilirlik - Minimum Tıklama Alanı */
.btn-search-new:focus-visible,
.btn-lucky-new:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.btn-search-new {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-search-new:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-lucky-new {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-lucky-new:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* ============================================
   MODULES GRID - 3D Cards
   ============================================ */
.modules-section-new {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 1;
}
.modules-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    margin: 0 0 var(--space-5);
    letter-spacing: 0.02em;
}

/* Ana Container - Stabilizasyon */
.modules-section-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* UX #33: Görünüm yoğunluğu toolbar (Kompakt/Rahat) */
.modules-section-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.modules-section-toolbar .modules-section-title {
    margin: 0;
}
.view-density-toggle {
    display: flex;
    gap: 4px;
    background: var(--surface-2, rgba(0,0,0,.06));
    border-radius: var(--radius-3, 12px);
    padding: 4px;
}
[data-theme="dark"] .view-density-toggle {
    background: rgba(255,255,255,.08);
}
.view-density-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-2, 8px);
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.view-density-btn:hover {
    color: var(--text);
}
.view-density-btn[aria-pressed="true"] {
    background: var(--primary);
    color: #fff;
}
.view-density-icon {
    font-size: 16px;
    line-height: 1;
}

.modules-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* UX #33: Kompakt görünüm — 5 sütun, daha küçük kartlar */
.modules-grid-new[data-view-density="kompakt"] {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.modules-grid-new[data-view-density="kompakt"] > .module-card-new,
.modules-grid-new[data-view-density="kompakt"] > .module-card-ad-new {
    min-height: 100px;
}
.modules-grid-new[data-view-density="kompakt"] .module-card-link {
    padding: clamp(12px, 2vw, 16px) clamp(12px, 1.5vw, 16px);
}
.modules-grid-new[data-view-density="kompakt"] .module-icon-new {
    font-size: 28px;
}
.modules-grid-new[data-view-density="kompakt"] .module-title-new {
    font-size: 14px;
}
.modules-grid-new[data-view-density="kompakt"] .module-desc-new {
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 1024px) {
    .modules-grid-new[data-view-density="kompakt"] {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .modules-section-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .view-density-toggle {
        align-self: flex-end;
    }
    .modules-grid-new[data-view-density="kompakt"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4'lü düzen (varsayılan) */
.modules-grid-new > .module-card-new,
.modules-grid-new > .module-card-ad-new {
    grid-column: span 1;
}

/* Tablet: 3'lü düzen */
@media (max-width: 1024px) and (min-width: 769px) {
    .modules-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Module Card - 3D Glass (token uyumlu) */
/* Modül kart linki (article > a yapısı - button ayrı) */
.module-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    width: 100%;
    text-decoration: none;
    color: inherit;
    padding: clamp(24px, 3vw, 32px) clamp(20px, 2.5vw, 24px);
    cursor: pointer;
}
.module-card-link:focus { outline: none; }
.module-card-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Modül favori butonu — Pro UX (görünür, sağ üst) */
.module-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .15s;
}
.module-fav-btn:hover {
    background: rgba(0,0,0,0.18);
    color: var(--primary);
}
.module-fav-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.module-card-new.is-favori .module-fav-btn,
.module-fav-btn:hover .module-fav-star {
    color: var(--primary);
}
.module-card-new.is-favori .module-fav-star {
    color: #f59e0b;
}
[data-theme="dark"] .module-fav-btn {
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.8);
}
[data-theme="dark"] .module-fav-btn:hover {
    background: rgba(255,255,255,0.28);
    color: var(--primary);
}
[data-theme="dark"] .module-card-new.is-favori .module-fav-star {
    color: #fbbf24;
}

.module-card-new {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--glass-bg, var(--glass));
    backdrop-filter: blur(var(--glass-blur, 20px));
    -webkit-backdrop-filter: blur(var(--glass-blur, 20px));
    border: 1px solid var(--glass-border-edge, var(--glass-border));
    border-radius: var(--radius-glass, var(--radius-4));
    box-shadow: var(--elevation-2, var(--shadow-2));
    text-decoration: none;
    color: inherit;
    transition: var(--transition-glass, transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease));
    overflow: hidden;
    min-height: 140px;
    transform: translateZ(0);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.module-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Hover - 3D lift + glass shadow */
.module-card-new:hover {
    transform: var(--interactive-lift, translateY(-3px)) translateZ(0);
    opacity: 1;
    box-shadow: var(--glass-shadow-hover, var(--shadow-3));
    border-color: var(--primary);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .module-card-new:hover {
        transform: none;
    }
}

.module-card-new:hover::before {
    opacity: 1;
}

/* Hover Effect Overlay */
.module-hover-effect-new {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(102, 126, 234, 0.3) 0%,
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.module-card-new:hover .module-hover-effect-new {
    width: 300px;
    height: 300px;
}

/* Card Content */
.module-icon-new {
    font-size: clamp(48px, 6vw, 64px);
    margin-bottom: 16px;
    line-height: 1;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Icon hover - CLS Optimized: transform ve opacity */
.module-card-new:hover .module-icon-new {
    transform: translateY(-2px) scale(1.08) translateZ(0);
    opacity: 1;
    animation: module-icon-pulse 1.2s ease-in-out;
}

/* Modül ikon animasyonu (27) - hover'da hafif nabız */
@keyframes module-icon-pulse {
    0%, 100% { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)); }
    50% { filter: drop-shadow(0 4px 16px rgba(37, 99, 235, 0.3)); }
}

@media (prefers-reduced-motion: reduce) {
    .module-card-new:hover .module-icon-new {
        animation: none;
    }
}

.module-title-new {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin: 0 0 8px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: color var(--dur-2) var(--ease);
    line-height: 1.4; /* Okunabilirlik için artırıldı */
}

.module-card-new:hover .module-title-new {
    color: var(--primary);
}

.module-desc-new {
    font-size: var(--fs-sm);
    color: var(--muted);
    margin: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Modül kart focus ring (erişilebilirlik) */
.module-card-new:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
/* Modül kart badge (içerik sayısı - 6, 400, 1.2K vb.) */
.module-badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    min-width: 24px;
    border-radius: 999px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    opacity: 0.95;
}

/* Ad Card (ad_zones_config: home_modules_ad) */
.module-card-ad-new {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 100%);
    border: 2px dashed var(--border);
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.module-card-ad-new .ad-inner-new,
.module-card-ad-new .sv-ad-slot {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override: ana sayfa modül kartında boş slot görünsün */
.module-card-ad-new .sv-ad-slot--empty {
    min-height: 180px !important;
    height: auto !important;
    overflow: visible !important;
}

.module-card-ad-new .sv-ad-slot--empty::after {
    content: 'Reklam';
    font-size: 14px;
    color: var(--muted);
}

.module-card-ad-new:hover {
    transform: none;
    border-color: var(--border);
}

/* Modül grid altı reklam (home_below_modules) */
.home-below-modules-ad {
    max-width: 728px;
    margin: var(--space-6) auto;
    padding: 0 var(--space-4);
}

.home-below-modules-ad .sv-ad-slot {
    margin: 0 auto;
}

.ad-label-new {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.ad-placeholder-new {
    font-size: 16px;
    color: var(--muted);
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ============================================
   REKLAM SLOT ALTYAPISI - CLS Sıfır
   ============================================ */
.ad-slot-new {
    position: relative;
    width: 100%;
    margin: var(--space-4) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border-radius: var(--radius-2);
    overflow: hidden;
}

/* Desktop Reklam Boyutları */
@media (min-width: 769px) {
    .ad-slot-new[data-size="970x250"] {
        width: 970px;
        min-height: 250px;
        aspect-ratio: 970 / 250;
    }
    
    .ad-slot-new[data-size="728x90"] {
        width: 728px;
        min-height: 90px;
        aspect-ratio: 728 / 90;
    }
    
    .ad-slot-new[data-size="300x250"] {
        width: 300px;
        min-height: 250px;
        aspect-ratio: 300 / 250;
    }
}

/* Mobil Reklam Boyutları */
@media (max-width: 768px) {
    .ad-slot-new[data-size="320x100"] {
        width: 100%;
        max-width: 320px;
        min-height: 100px;
        aspect-ratio: 320 / 100;
    }
    
    .ad-slot-new[data-size="300x250"] {
        width: 100%;
        max-width: 300px;
        min-height: 250px;
        aspect-ratio: 300 / 250;
    }
}

/* Placeholder Shimmer (Reduced Motion'da kapalı) */
.ad-slot-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ad-slot-new::before {
        display: none;
    }
}

/* ============================================
   FOOTER - Enhanced
   ============================================ */
.footer-new {
    width: 100%;
    padding: 60px 20px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-container-new {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.social-links-new {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links-new a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.social-links-new a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary);
}

.footer-bottom-new {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright-new {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links-new {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

.footer-links-new a:hover {
    color: var(--primary);
}

/* ============================================
   QUICK ACCESS MENU
   ============================================ */
.quick-access-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
}

.quick-access-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

.quick-access-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.quick-access-items {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.quick-access-menu.active .quick-access-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick-access-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.quick-access-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.quick-icon {
    font-size: 24px;
    line-height: 1;
}

.quick-label {
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
    display: none;
}

.quick-access-item:hover .quick-label {
    display: block;
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 997;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.scroll-to-top-btn.visible {
    display: flex;
}

.scroll-to-top-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* CLS Optimized Animation - transform ve opacity kullan */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.module-card-new:nth-child(1) { animation-delay: 0.1s; }
.module-card-new:nth-child(2) { animation-delay: 0.2s; }
.module-card-new:nth-child(3) { animation-delay: 0.3s; }
.module-card-new:nth-child(4) { animation-delay: 0.4s; }
.module-card-new:nth-child(5) { animation-delay: 0.5s; }
.module-card-new:nth-child(6) { animation-delay: 0.6s; }
.module-card-new:nth-child(7) { animation-delay: 0.7s; }
.module-card-new:nth-child(8) { animation-delay: 0.8s; }
.module-card-new:nth-child(9) { animation-delay: 0.9s; }
.module-card-new:nth-child(10) { animation-delay: 1s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 1024 altı */
@media (max-width: 1024px) {
    .modules-grid-new {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 18px;
    }
    
    .module-card-new {
        min-height: 150px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section-new {
        min-height: 50vh;
        padding: clamp(32px, 6vw, 48px) clamp(16px, 3vw, 24px);
        /* Scroll sırasında sabit */
        transform: none !important;
    }
    
    .logo-new {
        max-width: min(240px, 70vw);
        /* Scroll sırasında sabit */
        transform: translateZ(0) !important;
        will-change: auto;
    }
    
    .search-box-new {
        height: 48px;
        padding: 0 16px;
        /* Scroll sırasında sabit */
        transform: translateZ(0) !important;
        will-change: auto;
    }
    
    .search-input-new {
        font-size: 15px;
    }
    
    .search-btn-voice,
    .search-btn-camera {
        width: 36px;
        height: 36px;
        margin-left: 4px;
    }
    
    .search-buttons-new {
        gap: 12px;
    }
    
    .btn-search-new,
    .btn-lucky-new {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .modules-section-new {
        padding: clamp(32px, 5vw, 48px) clamp(16px, 3vw, 24px);
    }
    
    /* Mobil - 768 altı: 2 kolon */
    .modules-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Mobilde tüm modüller eşit genişlikte */
    .modules-grid-new > .module-card-new,
    .modules-grid-new > .module-card-ad-new {
        grid-column: span 1 !important;
    }
    
    .module-card-new {
        min-height: 140px;
        padding: clamp(20px, 2.5vw, 24px) clamp(16px, 2vw, 20px);
    }
    
    .trending-popular-wrapper {
        padding: clamp(32px, 5vw, 48px) clamp(16px, 3vw, 24px);
    }
    
    .trending-popular-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .trending-popular-section {
        padding: clamp(24px, 3vw, 32px);
    }
    
    .content-grid-module {
        gap: 12px;
    }
    
    .content-section-new {
        padding: clamp(32px, 5vw, 48px) clamp(16px, 3vw, 24px);
    }
    
    .content-grid-new {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .modules-grid-new {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    /* Mobilde tüm modüller eşit genişlikte */
    .modules-grid-new > .module-card-new,
    .modules-grid-new > .module-card-ad-new {
        grid-column: span 1 !important;
    }
    
    .stats-container {
        gap: var(--space-3);
    }
    
    .stats-container {
        gap: 8px;
        padding: 0 12px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .stat-value {
        font-size: 13px;
    }
    
    .stats-bar-new {
        padding: 8px 0;
    }
    
    .footer-links-new {
        flex-direction: column;
        gap: 12px;
    }
}

/* Small Mobile - 480 altı: 1 kolon */
@media (max-width: 480px) {
    .modules-grid-new {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Küçük mobilde tüm modüller tam genişlik */
    .modules-grid-new > .module-card-new,
    .modules-grid-new > .module-card-ad-new {
        grid-column: span 1 !important;
    }
    
    .module-card-new {
        min-height: 140px;
    }
    .hero-section-new {
        /* Scroll sırasında sabit */
        transform: none !important;
    }
    
    .logo-new {
        max-width: min(200px, 65vw);
        /* Scroll sırasında sabit */
        transform: translateZ(0) !important;
        will-change: auto;
    }
    
    .search-box-new {
        height: 44px;
        padding: 0 12px;
        /* Scroll sırasında sabit */
        transform: translateZ(0) !important;
        will-change: auto;
    }
    
    .search-icon-new {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .search-input-new {
        font-size: 14px;
    }
    
    .search-btn-voice,
    .search-btn-camera {
        width: 32px;
        height: 32px;
    }
    
    .module-icon-new {
        font-size: 40px;
    }
    
    .module-title-new {
        font-size: 18px;
    }
    
    .module-desc-new {
        font-size: 13px;
    }
    
    .trending-popular-wrapper {
        padding: clamp(24px, 4vw, 32px) clamp(12px, 2vw, 16px);
    }
    
    .trending-popular-section {
        padding: clamp(20px, 2.5vw, 24px);
    }
    
    .content-grid-module {
        gap: 10px;
    }
    
    .content-section-new {
        padding: clamp(24px, 4vw, 32px) clamp(12px, 2vw, 16px);
    }
    
    .content-grid-new {
        gap: 12px;
    }
    
    .stats-bar-new {
        top: 52px; /* Küçük mobilde top bar daha küçük */
        padding: 12px 0;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS - CLS Optimized
   ============================================ */
/* will-change kaldırıldı - CLS engelleme için */
.module-card-new {
    transform: translateZ(0);
}

/* Logo ve search-box scroll'da sabit kalmalı - CLS engelleme */
.logo-new,
.search-box-new {
    /* Parallax kaldırıldı - sabit kalmalı */
    transform: translateZ(0);
    will-change: auto;
}


/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: var(--primary-2);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-top-color: var(--success);
    animation-duration: 0.8s;
}

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

.loading-text {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   ENHANCED ANIMATIONS
   ============================================ */
/* CLS Optimized Animations - transform ve opacity kullan */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

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

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

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* Butonlar için minimum tıklama alanı */
button,
a[role="button"],
.btn-search-new,
.btn-lucky-new,
.top-bar-btn,
.quick-access-btn,
.scroll-to-top-btn {
    min-height: 44px;
    min-width: 44px;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-screen {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .dark-mode {
        --border: rgba(255, 255, 255, 0.3);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .dark-mode-toggle,
    .loading-screen,
    .search-wrapper-new,
    .content-skeleton,
    .home-below-modules-ad,
    .sv-ad-zone,
    .module-card-ad-new {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .module-card-new,
    .content-card-module {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    a[href]::after { content: none !important; }
}

/* ============================================
   TOP BAR - User Menu & Quick Actions
   CLS Kilidi: Fixed Bar Stack Yaklaşımı
   ============================================ */
.top-bar-new {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    /* Fallback için solid background */
    background-color: var(--bg);
}

/* Backdrop filter fallback */
@supports not (backdrop-filter: blur(20px)) {
    .top-bar-new {
        background: var(--bg);
    }
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    background: var(--bg-secondary);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.user-menu-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.top-bar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.top-bar-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.login-btn,
.register-btn {
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.login-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.login-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.register-btn {
    background: var(--primary);
    color: white;
}

.register-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ============================================
   STATS BAR - Real-time Statistics
   CLS Kilidi: Top Bar ile Stack
   ============================================ */
/* Stats Bar - Modern Chip Bar */
.stats-bar-new {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Backdrop filter fallback */
@supports not (backdrop-filter: blur(20px)) {
    .stats-bar-new {
        background: var(--surface);
    }
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    min-height: 40px;
    white-space: nowrap;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 18px;
    opacity: 0.8;
}

.stat-label {
    font-size: var(--fs-sm);
    color: var(--muted);
    font-weight: var(--fw-medium);
    white-space: nowrap;
}

.stat-value {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--primary);
    min-width: 50px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   TRENDING & POPULAR WRAPPER - Yan Yana
   ============================================ */
.trending-popular-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 1;
}

.trending-popular-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .trending-popular-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.trending-popular-section {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: clamp(32px, 4vw, 48px);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.trending-popular-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%,
        rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.trending-popular-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.trending-popular-section:hover::before {
    opacity: 1;
}

.section-header-module {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.section-title-module {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-icon-module {
    font-size: 28px;
}

.section-badge-module {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    margin-left: 6px;
}

.section-more-module {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.section-more-module:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

.content-grid-module {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4, 20px);
    position: relative;
    z-index: 1;
}
@media (min-width: 769px) {
    .content-grid-module { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1025px) {
    .content-grid-module { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   CONTENT SECTIONS - Latest, Recommendations
   ============================================ */
.content-section-new {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 1;
    background: var(--bg);
}

/* Ana sayfa Trend / Son eklenen bölümleri */
.home-content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 1;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .home-section-header {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.home-section-more {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.home-section-more:hover {
    transform: translateX(2px);
}
.home-section-title {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: var(--text);
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Bölüm bazlı renkler — aynı hizada, modern */
.home-section--trend .home-section-header {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.08), rgba(245, 158, 11, 0.05));
    border-color: rgba(251, 146, 60, 0.2);
}
.home-section--trend .home-section-title { border-left-color: #f59e0b; }
.home-section--trend .home-section-more { color: #d97706; }
.home-section--trend .home-section-more:hover { background: rgba(251, 146, 60, 0.15); }

.home-section--latest .home-section-header {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(14, 165, 233, 0.05));
    border-color: rgba(66, 133, 244, 0.2);
}
.home-section--latest .home-section-title { border-left-color: #4285f4; }
.home-section--latest .home-section-more { color: #1565c0; }
.home-section--latest .home-section-more:hover { background: rgba(66, 133, 244, 0.12); }

.home-section--popular .home-section-header {
    background: linear-gradient(135deg, rgba(251, 188, 4, 0.1), rgba(245, 158, 11, 0.06));
    border-color: rgba(251, 188, 4, 0.25);
}
.home-section--popular .home-section-title { border-left-color: #fbbf24; }
.home-section--popular .home-section-more { color: #b45309; }
.home-section--popular .home-section-more:hover { background: rgba(251, 188, 4, 0.15); }

.home-section--rec .home-section-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.05));
    border-color: rgba(139, 92, 246, 0.2);
}
.home-section--rec .home-section-title { border-left-color: #8b5cf6; }
.home-section--rec .home-section-more { color: #6d28d9; }
.home-section--rec .home-section-more:hover { background: rgba(139, 92, 246, 0.12); }

.home-section--cat .home-section-header {
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.08), rgba(16, 185, 129, 0.05));
    border-color: rgba(52, 168, 83, 0.2);
}
.home-section--cat .home-section-title { border-left-color: #34a853; }
.home-section--cat .home-section-more { color: #0d652d; }
.home-section--cat .home-section-more:hover { background: rgba(52, 168, 83, 0.12); }

.home-section--authors .home-section-header {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(244, 63, 94, 0.05));
    border-color: rgba(236, 72, 153, 0.2);
}
.home-section--authors .home-section-title { border-left-color: #ec4899; }
.home-section--authors .home-section-more { color: #be185d; }
.home-section--authors .home-section-more:hover { background: rgba(236, 72, 153, 0.12); }

/* Loading skeleton */
.content-skeleton {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-4);
}
.content-skeleton .skeleton-line {
    display: block;
    height: 120px;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-2);
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .content-skeleton .skeleton-line {
        animation: none;
        background: var(--surface-2);
    }
}

.home-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

@media (min-width: 769px) {
    .home-content-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1025px) {
    .home-content-grid { grid-template-columns: repeat(4, 1fr); }
}

/* İçerik kartları (Trend/Son eklenen) */
.content-card-module {
    border-radius: var(--radius-2);
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.content-card-module {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.content-card-module:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
    border-color: var(--primary);
}

.content-link-module {
    display: block;
    text-decoration: none;
    color: inherit;
}

.content-image-module {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--surface-2);
}

.content-image-module-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-type-badge-module {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 14px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
}

.content-info-module {
    padding: var(--space-3);
}

.content-title-module {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin: 0 0 var(--space-2);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-meta-module {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: var(--space-2);
}

.content-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-10, 48px) var(--space-6, 24px);
    color: var(--muted);
    font-size: 0.9375rem;
}
.content-empty::before {
    content: '📭';
    display: block;
    font-size: 2.5rem;
    margin-bottom: var(--space-3, 12px);
    opacity: 0.8;
}

.content-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-4);
    color: var(--muted);
}

.section-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title-new {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.section-icon {
    font-size: 32px;
}

.section-badge {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    margin-left: 8px;
}

.section-more-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.section-more-link:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

.content-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (min-width: 1400px) {
    .content-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-grid-new {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .content-grid-new {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.content-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    display: none; /* Loading mesajını gizle - veriler yüklenecek */
}

/* Content Card - Geliştirilmiş */
.content-card-new {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.content-card-new:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.content-card-new[data-type="tarif"] {
    border-left: 4px solid #10b981;
}

.content-card-new[data-type="ruya"] {
    border-left: 4px solid #f59e0b;
}

.content-card-new[data-type="haber"] {
    border-left: 4px solid #667eea;
}

.content-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.content-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--primary) 100%);
    position: relative;
}

.content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card-new:hover .content-image {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Content Type Badge */
.content-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.content-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
}

.content-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.content-card-new:hover .content-title {
    color: var(--primary);
}

.content-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: auto;
}

.content-date,
.content-views,
.content-likes,
.content-comments {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.content-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.content-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card-new:hover .content-actions {
    opacity: 1;
}

.content-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.content-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.content-action-btn.active,
.content-action-btn.favorited {
    color: var(--primary);
}
.content-action-btn.active svg path,
.content-action-btn.favorited svg path {
    fill: currentColor;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section-new {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
    background: var(--bg-secondary);
}

.categories-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

@media (min-width: 1400px) {
    .categories-grid-new {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1024px) {
    .categories-grid-new {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .categories-grid-new {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .categories-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.category-card-new {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.category-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-card-new:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-card-new:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 36px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 16px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    margin-bottom: 4px;
}

.category-card-new:hover .category-icon {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.category-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
    line-height: 1.3;
}

.category-card-new:hover .category-name {
    color: var(--primary);
}

.category-count {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin: 0 auto;
}

/* ============================================
   AUTHORS SECTION
   ============================================ */
.authors-section-new {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
}

.authors-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

@media (min-width: 1400px) {
    .authors-grid-new {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .authors-grid-new {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .authors-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .authors-grid-new {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.author-card-new {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.author-card-new:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.author-stats {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   MODAL - Notifications, Favorites, History
   ============================================ */
.modal-new {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-content-new {
    background: var(--bg);
    border-radius: var(--radius-4);
    max-width: 600px;
    width: 100%;
    max-height: 80svh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-3);
    animation: modalSlideIn var(--dur-2) var(--ease);
}

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

.modal-header-new {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-new h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-new {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: var(--transition);
}

.modal-close-new:hover {
    background: var(--primary);
    color: white;
}

.modal-body-new {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: 80svh;
    overscroll-behavior: contain;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* ============================================
   KLavye Kısayolları Overlay (UX 31-32)
   ============================================ */
.sv-shortcuts-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.2s ease;
}
.sv-shortcuts-overlay.sv-shortcuts-hidden {
    opacity: 0;
    pointer-events: none;
}
.sv-shortcuts-panel {
    background: var(--surface, #fff);
    border-radius: var(--radius-lg, 16px);
    padding: var(--space-6, 24px);
    max-width: 360px;
    width: 90%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, rgba(0,0,0,0.1));
}
[data-theme="dark"] .sv-shortcuts-panel {
    background: var(--surface);
    border-color: var(--glass-border);
}
.sv-shortcuts-panel h3 {
    margin: 0 0 var(--space-4);
    font-size: 1.125rem;
    font-weight: 600;
}
.sv-shortcuts-panel dl { margin: 0; }
.sv-shortcuts-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
}
.sv-shortcuts-row:last-of-type { border-bottom: none; }
.sv-shortcuts-panel kbd {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.8125rem;
    font-family: inherit;
    background: var(--bg-subtle, #f1f5f9);
    border-radius: 6px;
    border: 1px solid var(--border);
}
[data-theme="dark"] .sv-shortcuts-panel kbd { background: rgba(255,255,255,0.1); }
.sv-shortcuts-panel dd { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.sv-shortcuts-hint { margin: var(--space-4) 0 0; font-size: 0.8125rem; color: var(--muted); }

/* ============================================
   SHARE MENU
   ============================================ */
.share-menu-new {
    display: none;
    position: fixed;
    /* JS top/left set ediyorsa CSS bottom/right çakışmasın */
    bottom: auto;
    right: auto;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-3);
    padding: var(--space-3);
    box-shadow: var(--shadow-3);
    z-index: 999;
    animation: shareMenuSlideUp var(--dur-2) var(--ease);
    min-width: 200px;
}

/* JS tarafından set edilmediyse varsayılan pozisyon */
.share-menu-new:not([style*="top"]):not([style*="left"]) {
    bottom: 80px;
    right: 20px;
}

.share-menu-new.active {
    display: block;
}

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

.share-menu-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.share-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.share-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE - New Sections
   ============================================ */
@media (max-width: 768px) {
    .top-bar-container {
        padding: 0 16px;
    }
    
    .user-name {
        display: none;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .content-grid-new {
        grid-template-columns: 1fr;
    }
    
    .categories-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .authors-grid-new {
        grid-template-columns: 1fr;
    }
    
    .share-menu-new {
        right: 10px;
        bottom: 70px;
        left: 10px;
        max-width: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS (JS'ten taşındı)
   ============================================ */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.35);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        box-shadow: 0 0 0 18px rgba(102, 126, 234, 0);
        opacity: 0;
    }
}

.search-box-new.focused {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1),
                0 4px 16px rgba(0, 0, 0, 0.1);
}

img.loaded {
    opacity: 1;
    transition: opacity var(--dur-2) var(--ease);
}

img[data-src] {
    opacity: 0;
}

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

/* ============================================
   REAL-TIME STATS
   ============================================ */
.realtime-stats {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-4);
    background: var(--surface-2);
    border-radius: var(--radius-2);
    margin-bottom: var(--space-5);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-label {
    font-size: var(--fs-sm);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--primary);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-new {
    position: fixed;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg);
    color: var(--text);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-3);
    z-index: 10000;
    opacity: 0;
    transition: all var(--dur-2) var(--ease);
}

.toast-new.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-new.toast-success { border-left: 4px solid var(--success); }
.toast-new.toast-info { border-left: 4px solid var(--primary); }

/* ============================================
   MODAL ITEMS (Notifications, Favorites, History)
   ============================================ */
.notification-item,
.favorite-item,
.history-item {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.notification-item:last-child,
.favorite-item:last-child,
.history-item:last-child {
    border-bottom: none;
}

.notification-item:hover,
.favorite-item:hover,
.history-item:hover {
    background: var(--surface-2);
}

.notification-content,
.favorite-item h4,
.history-item h4 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text);
}

.notification-time,
.favorite-date,
.history-date {
    font-size: var(--fs-sm);
    color: var(--muted);
}

/* ============================================
   DARK MODE OVERRIDE - Yüksek Specificity
   (sv-ui-2026.js toggle ile uyumlu)
   ============================================ */
[data-theme="dark"] .stats-bar-new {
    background: rgba(30, 41, 59, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-item {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

[data-theme="dark"] .stat-item:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--primary);
}

[data-theme="dark"] .module-card-new {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   REV 2026.5.5 - Homepage Scope Fixes
   ============================================ */

/* Homepage Body & Background - Dark Mode Fix */
html .sv-home-2026 {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .sv-home-2026 {
    background: var(--bg);
    color: var(--text);
}

/* Homepage Footer Daraltma (sadece ana sayfada) */
html .sv-home-2026 footer {
    width: 100%;
}

html .sv-home-2026 footer > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Homepage Module Cards - Dark Mode Fix */
[data-theme="dark"] .sv-home-2026 .module-card-new {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sv-home-2026 .stats-bar-new {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sv-home-2026 .module-card-ad-new {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   REV 2026.5.6 - Dark Mode Görsel Fix + Footer Height Fix
   ============================================ */

/* Dark Mode - Gövde Farkı Zorunlu (Homepage Scope) */
html .sv-home-2026 {
    background: #f8fafc !important;
    color: #0f172a !important;
}

[data-theme="dark"] .sv-home-2026 {
    background: #0b1220 !important;
    color: #e5e7eb !important;
}

/* Ana Komponentler - Görsel Fark Garantisi */
.sv-home-2026 .module-card-new {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.10);
}

[data-theme="dark"] .sv-home-2026 .module-card-new {
    background: rgba(15, 23, 42, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

/* REV 2026.7 - Renkli kutu + 3D modül kartları */
.sv-home-2026 .module-card-new {
    transition: transform .3s cubic-bezier(.25,.46,.45,.94), box-shadow .3s, border-color .3s;
}
.sv-home-2026 .module-card-new:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px -12px rgba(0,0,0,.2);
}
.sv-home-2026 .module-card-new[data-module="haberler"]:hover { border-left: 4px solid #2563eb; }
.sv-home-2026 .module-card-new[data-module="tarifler"]:hover { border-left: 4px solid #16a34a; }
.sv-home-2026 .module-card-new[data-module="ruyalar"]:hover { border-left: 4px solid #7c3aed; }
.sv-home-2026 .module-card-new[data-module="burclar"]:hover { border-left: 4px solid #ea580c; }
.sv-home-2026 .module-card-new[data-module="sarkilar"]:hover { border-left: 4px solid #db2777; }
.sv-home-2026 .module-card-new[data-module="ekonomi"]:hover { border-left: 4px solid #0d9488; }
.sv-home-2026 .module-card-new[data-module="namaz"]:hover { border-left: 4px solid #0284c7; }
.sv-home-2026 .module-card-new[data-module="kamu"]:hover { border-left: 4px solid #4f46e5; }
.sv-home-2026 .module-card-new[data-module="diziler"]:hover { border-left: 4px solid #f97316; }

.sv-home-2026 .modules-section-new {
    background: transparent;
}

[data-theme="dark"] .sv-home-2026 .modules-section-new {
    background: transparent;
}

/* Footer Height Fix - Homepage Agresif Kırpma */
html .sv-home-2026 footer {
    padding: 24px 0 !important;
    margin: 0 !important;
}

html .sv-home-2026 footer * {
    margin-top: 0;
}

html .sv-home-2026 footer .sv-footer-content {
    gap: 16px !important;
    margin-bottom: 16px !important;
}

html .sv-home-2026 footer .sv-footer-section {
    margin-bottom: 0 !important;
}

html .sv-home-2026 footer .sv-footer-section h4 {
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

html .sv-home-2026 footer .sv-footer-section ul {
    margin-bottom: 0 !important;
}

html .sv-home-2026 footer .sv-footer-section ul li {
    margin-bottom: 6px !important;
}

html .sv-home-2026 footer .sv-footer-bottom {
    padding-top: 16px !important;
    margin-top: 16px !important;
}

html .sv-home-2026 footer .sv-copyright {
    font-size: 12px !important;
    margin: 0 !important;
}

/* ============================================
   REV-SEARCH-03: FORCE SEARCH DROPDOWN ABOVE HOME MODULES (stacking context fix)
   ============================================ */

/* 1) Hero/Search alanını en üste al */
.sv-hero,
.home-hero,
.hero,
.hero-new,
.search-hero,
.search-area,
.search-section,
.sv-searchbar,
/* REV-SEARCH-14: Normalized z-index scale */
.search-form-new,
.sv-searchbar-form,
.search-wrapper-new,
.hero-section-new,
.hero-container-new {
  position: relative !important; /* Kritik: positioning */
  z-index: 700; /* REV-SEARCH-14: Normalized (999999 → 700) */
  isolation: isolate; /* stacking context kontrol */
  overflow: visible !important; /* Kritik: dropdown görünürlüğü */
}

/* 2) Dropdown'ın kendisi - header (z-index 1000) altında kalmalı, ama modül grid üstünde */
.search-suggestions,
.autocomplete-results,
.search-dropdown,
.sv-autocomplete-dropdown,
.sv-search-suggestions {
  position: absolute;
  z-index: 900;
}

/* 3) Modül grid'lerini aşağı layer'a zorla */
.home-modules,
.bento-grid,
.module-grid,
.home-section,
.modules-section-new,
.modules-grid-new {
  position: relative;
  z-index: 1 !important;
}

/* Query highlight stili */
mark {
  background: var(--primary);
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* ============================================
   REV 2026.7.0 — Homepage Floating UI OFF
   ============================================ */
html .sv-home-2026 #scrollToTop,
html .sv-home-2026 #scroll-to-top-btn,
html .sv-home-2026 .scroll-to-top-btn,
html .sv-home-2026 #quickAccessMenu,
html .sv-home-2026 #quick-access-menu,
html .sv-home-2026 .quick-access-menu,
html .sv-home-2026 .sv-quick-access-menu {
    display: none !important;
}

/* ============================================
   Home Stats + İçerik Kategorileri — Tek satır, modern renkli
   ============================================ */
.home-stats-modules-bar {
    margin: 0 auto var(--space-6);
    max-width: 1200px;
    padding: 0 clamp(16px, 4vw, 32px);
}
.home-stats-modules-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.06) 0%, rgba(52, 168, 83, 0.04) 25%, rgba(139, 92, 246, 0.05) 50%, rgba(251, 188, 4, 0.04) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(66, 133, 244, 0.15);
    border-radius: var(--radius-3, 16px);
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.08);
}
.home-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    justify-content: center;
}
.home-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.home-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.home-stat-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.home-stat--blue {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(14, 165, 233, 0.1));
    border-color: rgba(66, 133, 244, 0.3);
    color: #1565c0;
}
.home-stat--blue .home-stat-value { color: #1565c0; }
.home-stat--green {
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.15), rgba(16, 185, 129, 0.1));
    border-color: rgba(52, 168, 83, 0.3);
    color: #0d652d;
}
.home-stat--green .home-stat-value { color: #0d652d; }
.home-stat--amber {
    background: linear-gradient(135deg, rgba(251, 188, 4, 0.18), rgba(245, 158, 11, 0.12));
    border-color: rgba(251, 188, 4, 0.35);
    color: #b45309;
}
.home-stat--amber .home-stat-value { color: #b45309; }
.home-stat--purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    color: #5b21b6;
}
.home-stat--purple .home-stat-value { color: #5b21b6; }
.home-modules-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
}
.home-stats-modules-inner .view-density-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 12px;
    padding: 4px;
}
.home-stats-modules-inner .view-density-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.home-stats-modules-inner .view-density-btn:hover {
    color: var(--text);
    background: rgba(66, 133, 244, 0.1);
}
.home-stats-modules-inner .view-density-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: #fff;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}
[data-theme="dark"] .home-stats-modules-inner {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12) 0%, rgba(139, 92, 246, 0.08) 50%);
    border-color: rgba(139, 92, 246, 0.2);
}
[data-theme="dark"] .home-stat--blue { color: #7dd3fc; }
[data-theme="dark"] .home-stat--blue .home-stat-value { color: #7dd3fc; }
[data-theme="dark"] .home-stat--green { color: #6ee7b7; }
[data-theme="dark"] .home-stat--green .home-stat-value { color: #6ee7b7; }
[data-theme="dark"] .home-stat--amber { color: #fcd34d; }
[data-theme="dark"] .home-stat--amber .home-stat-value { color: #fcd34d; }
[data-theme="dark"] .home-stat--purple { color: #c4b5fd; }
[data-theme="dark"] .home-stat--purple .home-stat-value { color: #c4b5fd; }
[data-theme="dark"] .home-stats-modules-inner .view-density-toggle {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
}
@media (max-width: 768px) {
    .home-stats-modules-inner {
        flex-direction: column;
        gap: var(--space-3);
    }
    .home-modules-title { order: -1; width: 100%; text-align: center; }
}

/* ============================================
   Modül Sürükle-Bırak
   ============================================ */
.module-card-new[data-module].module-dragging {
    opacity: 0.5;
    cursor: grabbing;
}
.module-card-new[data-module].module-drop-target {
    outline: 2px dashed var(--primary);
    outline-offset: 4px;
}
.module-card-new[data-module][draggable="true"] {
    cursor: grab;
}

/* ============================================
   Arama Loading State
   ============================================ */
.search-form-new.is-loading .btn-search-new,
.search-box-new.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

/* Search Suggestions (Son + Popüler Aramalar) */
.search-suggestions-new {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--surface, #fff);
    border-radius: var(--radius-2, 12px);
    box-shadow: var(--shadow-2, 0 8px 24px rgba(0,0,0,0.12));
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    overflow: hidden;
    z-index: 100;
}
.search-suggest-section { padding: 12px 0; border-bottom: 1px solid var(--border); }
.search-suggest-section:last-child { border-bottom: none; }
.search-suggest-label { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 8px; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.search-suggest-clear { font-size: 0.7rem; color: var(--primary); background: none; border: none; cursor: pointer; padding: 2px 6px; }
.search-suggest-clear:hover { text-decoration: underline; }
.search-suggest-list { list-style: none; margin: 0; padding: 0; }
.search-suggest-list li { margin: 0; }
.search-suggest-list a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s;
}
.search-suggest-list a:hover { background: var(--surface-2, #f8fafc); }
}
.search-form-new.is-loading .btn-search-new::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: sv-spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes sv-spin {
    to { transform: rotate(360deg); }
}
