.hidden {
    display: none !important;
}

/* Active Category State */
.active-category {
    border-color: var(--accent-color) !important;
    background-color: rgba(59, 130, 246, 0.2) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4) !important;
    transform: scale(0.95);
}

/* Fix Source Logo Overflow */
.drawer-left .grid img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

:root {
    --app-bg: #1a1d29;
    --card-bg: #252936;
    --text-primary: #f1f5f9;
    --text-secondary: rgba(241, 245, 249, 0.7);
    --accent-color: #3b82f6;
    /* Electric Blue */
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --glass-bg: rgba(37, 41, 54, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body,
html {
    width: 100%;
    min-height: 100%;
    /* Allow scrolling by default */
    background-color: var(--app-bg);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    /* Allow scrolling by default */
    user-select: none;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 💠 PRESTIGE UTILITY ENGINE (Consolidated - No Duplicates) */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-5 {
    gap: 20px;
}

.gap-6 {
    gap: 24px;
}

.p-4 {
    padding: 16px;
}

.p-5 {
    padding: 20px;
}

.p-8 {
    padding: 32px;
}

.px-5 {
    padding-left: 20px;
    padding-right: 20px;
}

.px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.pt-8 {
    padding-top: 32px;
}

.pt-12 {
    padding-top: 48px;
}

.pb-20 {
    padding-bottom: 80px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.mt-8 {
    margin-top: 32px;
}

.mt-10 {
    margin-top: 40px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-10 {
    margin-bottom: 40px;
}

.mx-5 {
    margin-left: 20px;
    margin-right: 20px;
}

.ml-2 {
    margin-left: 8px;
}

.ml-auto {
    margin-left: auto;
}

.text-xs {
    font-size: 11px;
}

.text-sm {
    font-size: 13px;
}

.text-base {
    font-size: 15px;
}

.text-lg {
    font-size: 18px;
}

.text-xl {
    font-size: 20px;
}

.text-2xl {
    font-size: 24px;
}

.text-3xl {
    font-size: 28px;
}

.text-4xl {
    font-size: 34px;
}

.text-5xl {
    font-size: 42px;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.leading-tight {
    line-height: 1.2;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-6 {
    width: 24px;
}

.h-6 {
    height: 24px;
}

.w-8 {
    width: 32px;
}

.h-8 {
    height: 32px;
}

.w-10 {
    width: 40px;
}

.h-10 {
    height: 40px;
}

.w-12 {
    width: 48px;
}

.h-12 {
    height: 48px;
}

.w-24 {
    width: 96px;
}

.h-24 {
    height: 96px;
}

.h-32 {
    height: 128px;
}

.h-40 {
    height: 160px;
}

.h-56 {
    height: 224px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-2xl {
    border-radius: 20px;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-white\/5 {
    background: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
    background: rgba(255, 255, 255, 0.1);
}

.border-white\/5 {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-white {
    color: #fff;
}

.text-white\/20 {
    color: rgba(255, 255, 255, 0.2);
}

.text-white\/30 {
    color: rgba(255, 255, 255, 0.3);
}

.text-white\/40 {
    color: rgba(255, 255, 255, 0.4);
}

.text-blue-400 {
    color: #60a5fa;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-red-500 {
    color: #ef4444;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bottom-1 {
    bottom: 4px;
}

.right-1 {
    right: 4px;
}

.object-cover {
    object-fit: cover;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.shadow-blue {
    box-shadow: 0 0 10px #3b82f6;
}

.active\:scale-95:active {
    transform: scale(0.95);
}

.transition-transform {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

/* 💎 PRESTIGE COMPONENTS */
.vip-action-btn {
    font-size: 9px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vip-action-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    color: #fff;
}

.notification-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-card.is-unread {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

/* LAYOUT: The 3-Pane Structure */
.app-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--app-bg);
}

/* 📜 ELITE SCROLL CONTAINER (For Profile, Settings etc.) */
.scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    /* Force scrolling capability */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--app-bg);
    position: relative;
    z-index: 10;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* 1. SNAP SCROLL CONTAINER (Vertical Feed - ULTRA FAST PROXIMITY SNAP) */
.snap-feed-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    /* ⚡ LIGHTSPEED SCROLL: Mandatory snapping */
    scroll-snap-type: y mandatory;
    scroll-behavior: auto;
    /* 🚀 FASTEST: Physics based snap */
    position: relative;
    z-index: 10;
    background: var(--app-bg);
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    transform: translateZ(0);
}

.snap-feed-container::-webkit-scrollbar {
    display: none;
}

/* Container for sliding content - THE MOVING STAGE */
#feedInner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 2. NEWS CARD (Immersive) */
.news-card {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Dynamic Viewport */
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    /* 🔥 ULTRA SNAP: Forces the browser to stop on this element IMMEDIATELY */
    /* ⚡ FAST SCROLL: No forced stop, allows flick-through for speed */
    overflow: hidden;
    background-color: var(--card-bg);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;

    /* 🚀 APEX STABILITY: Enforced Structural Integrity */
    height: 100vh;
    height: 100dvh;
    /* 💨 GPU ACCELERATION: Smooth as butter */
    transform: translateZ(0);
    /* Hardware accelerate without locking memory for every card */
}

.news-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: filter 0.3s ease;
    pointer-events: none;
}

/* Gradient Overlay */
.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0) 20%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.95) 90%);
    z-index: 2;
    pointer-events: none;
}

/* Content Area */
.news-card-content {
    position: absolute;
    bottom: 90px;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 3;
    pointer-events: none;
}

.news-meta-top {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.category-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
    /* 🖋️ APEX HIGH-CONTRAST OUTLINE: Clear visibility on any background */
    text-shadow:
        0px 2px 10px rgba(0, 0, 0, 0.9),
        0px 4px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: none;
}

.news-excerpt {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    font-weight: 300;
}

/* Actions */
.card-actions {
    position: absolute;
    right: 16px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 4;
    pointer-events: auto;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.action-btn span {
    font-size: 22px;
}

/* 3. DRAWERS (Side Panels - OVERLAY MODE) */
.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 75%;
    /* 💎 VIP Width */
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 50;
    /* 🛑 ABOVE FEED */
    padding: calc(var(--safe-area-top) + 20px) 20px;
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform;
    /* 🛡️ PREVENT BODY SCROLL CHAINING */
    overscroll-behavior: contain;
}

.drawer-left {
    left: 0;
    transform: translate3d(-100%, 0, 0);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
}

.drawer-right {
    right: 0;
    transform: translate3d(100%, 0, 0);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    text-align: right;
}

.drawer.active {
    transform: translate3d(0, 0, 0);
}

/* 🌑 VIP OVERLAY: Dims content when drawer is active */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 🚀 KINETIC ACCELERATION: Disable transition during manual pan */
.is-dragging,
.is-dragging .drawer,
.is-dragging .drawer-overlay {
    transition: none !important;
}

/* 4. BOTTOM NAVIGATION - APEX FLOATING GLASS */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    height: 70px;
    background: rgba(26, 29, 41, 0.8);
    /* More Transparent for Blur Effect */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-radius: 40px;
    /* Floating Pill Shape */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    /* Subtle Border */
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Outer thin border */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.05s ease;
    /* ⚡ Lightning Fast */
    flex: 1;
    height: 100%;
    position: relative;
    z-index: 101;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    /* Ensure clickable */
}

.nav-item span.material-symbols-rounded {
    font-size: 26px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
    transition: all 0.1s ease;
    /* Instant Visual Feedback */
    display: block;
    margin-bottom: 2px;
}

.nav-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    transition: all 0.05s ease;
    transform-origin: center;
    transform: scale(0.9);
}

/* ACTIVE STATE - NEON GLOW */
.nav-item.active {
    color: white;
    /* z-index: 102; REMOVED to prevent overlap blocking */
}

.nav-item.active span.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 48;
    transform: translateY(-2px) scale(1.1);
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.nav-item.active .nav-label {
    color: white;
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* CENTER FAB ADJUSTMENT */
.nav-center-fab {
    transform: translateY(-8px);
    /* z-index: 102; REMOVED */
    overflow: visible;
    flex-basis: 20%;
    /* Strict width allocation */
    max-width: 20%;
}

.nav-center-fab span.material-symbols-rounded {
    font-size: 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.4));
    font-variation-settings: 'FILL' 1;
}

.nav-center-fab.active span.material-symbols-rounded {
    transform: translateY(-4px) scale(1.1);
    /* Reduced rotation/scale to verify clickability neighbor */
}

.nav-item:active {
    transform: scale(0.95);
    opacity: 0.9;
    transition: 0.05s;
}

/* ⚡ CENTER ITEM (TRENDS) - Clean Standard Mode */
.nav-center-fab {
    width: auto !important;
    height: auto !important;
    flex: 1 !important;
    max-width: 20% !important;
    /* 🛡️ Tıklama çakışmasını engelle */
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 10 !important;
    /* 🔽 Z-Index düşürüldü, artık diğer butonları engellemez */
    margin: 0;
    overflow: visible !important;

    /* Slightly raised but safe from clipping */
    transform: translateY(-5px);
}

.nav-center-fab span.material-symbols-rounded {
    /* Slightly larger (Standard is 32px) */
    font-size: 36px !important;

    /* Exact match with other items (Standard color) */
    color: rgba(255, 255, 255, 0.4) !important;

    /* No special filters/glows */
    filter: none !important;
    transition: all 0.3s ease;
    margin-bottom: 0px;
}

.nav-center-fab .nav-label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    opacity: 0.6 !important;
    color: inherit;
}

/* ACTIVE STATE - Standard Behavior */
.nav-center-fab.active {
    /* Maintain raised position */
    transform: translateY(-5px);
    background: transparent !important;
    box-shadow: none !important;
}

.nav-center-fab.active span.material-symbols-rounded {
    /* Standard active color (Accent) */
    color: var(--accent-color) !important;
    filter: none !important;
}

.nav-center-fab.active .nav-label {
    color: var(--accent-color) !important;
    opacity: 1 !important;
}

/* 5. MODAL (AI Summary) */
.ai-modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ai-modal-wrap.visible {
    opacity: 1;
    pointer-events: auto;
}

.ai-modal-card {
    width: 85%;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-modal-wrap.visible .ai-modal-card {
    transform: scale(1);
}

/* Utility */
.touch-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 🎯 INTERACTION ANIMATIONS */
@keyframes scale-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.scale-animation {
    animation: scale-animation 0.3s ease-in-out;
}

/* 🎯 LIKE & BOOKMARK ACTIVE STATES */
.like-btn.active span.material-symbols-rounded {
    font-variation-settings: 'FILL' 1;
    color: #ff3b5c !important;
}

.bookmark-btn.active span.material-symbols-rounded {
    font-variation-settings: 'FILL' 1;
    color: #ffd700 !important;
}

.fab-btn-qs.active span.material-symbols-rounded {
    font-variation-settings: 'FILL' 1;
}