/*KATEGORI*/
/* 1. KÖK DEĞİŞKENLER */
:root {
    --main-grad: linear-gradient(135deg, #7209b7 0%, #4361ee 100%);
    --pink-clock: #ff4d94;
    --soft-bg: #f8fafc;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.category-master-layout :not(i) {
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -0.015em !important;
}

/* 2. ANA YAPI */
.category-master-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.category-main-content {
    flex: 1 0 auto;
    background: var(--soft-bg);
    /* -10px yerine -30px yaparak header'a iyice yaklaştırıyoruz */
    margin-top: -30px !important;
    padding-bottom: 15px;
}

/* Container içindeki gereksiz boşlukları da CSS ile mühürleyelim */
.category-main-content .container {
    margin-top: 0 !important;
    padding-top: 55px !important;
}

.flow-header-grad-line {
    width: 60px;
    height: 4px;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #7209b7, #4361ee, #f72585, #7209b7);
    background-size: 300% 100%;
    animation: gradientMoveLine 3s linear infinite;
}

@keyframes gradientMoveLine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.flow-main-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* REVEAL */
.reveal-flow {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-flow.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 3. KART YAPISI (ORİJİNAL 165PX YATAY) */
.flow-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-flow-card {
    background: #fff;
    border-radius: 18px;
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    position: relative;
    height: 165px;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
}

.modern-flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.15);
    border-color: #4361ee;
}

/* RESİM ALANI */
.flow-img-wrapper {
    width: 220px;
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.flow-post-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: 0.6s ease;
}

.modern-flow-card:hover .flow-post-img {
    transform: scale(1.1);
}

/* OVERLAY & GÖZ */
.flow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
    backdrop-filter: blur(2px);
    z-index: 1;
}

.modern-flow-card:hover .flow-overlay {
    opacity: 1;
}

.eye-circle-animated {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.5);
    transform: scale(0.5);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-flow-card:hover .eye-circle-animated {
    transform: scale(1);
    animation: eyePulse 1.5s infinite;
}

@keyframes eyePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* BADGE */
.flow-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flow-icon-fire {
    color: #ff4d4d;
}

/* 4. İÇERİK & META */
.flow-content-side {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.flow-meta {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: nowrap;
}

/* KATEGORİ HAPI */
.animated-meta-cat {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    background-color: var(--dyn-color, #f1f5f9);
    color: #fff !important;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.animated-meta-cat:hover {
    transform: scale(1.15);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.animated-meta-cat i {
    font-size: 10px;
    color: #fff !important;
}

/* AYRAÇ */
.meta-separator-line {
    width: 1px;
    height: 12px;
    background-color: #cbd5e1;
    margin: 0 10px;
    display: inline-block;
}

/* ZAMAN KUTUSU */
.meta-date {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;

    .meta-date {
        margin-left: 0 !important;
        /* Bu satırı ekle, ayraca yapışsın */
    }
}

.flow-icon-clock {
    color: #ff4d94 !important;
    filter: drop-shadow(0 2px 4px rgba(255, 77, 148, 0.2)) !important;
}

/* BAŞLIK */
.flow-post-title {
    font-size: 1.1rem;
    font-weight: 850;
    line-height: 1.3;
    margin: 0;
}

.flow-post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: 0.3s;
}

.flow-post-title a:hover {
    color: #4361ee;
}

/* 5. FOOTER & ADMIN */
.flow-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.flow-user {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.admin-avatar-wrapper {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.admin-avatar-wrapper::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4361ee, #f72585, #4cc9f0, #4361ee);
    animation: spinBorder 4s linear infinite;
    z-index: -1;
}

/* 🟢 ONLINE NOKTASI (RGB ÜSTÜNE) */
.admin-avatar-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    background: #22c55e;
    /* Canlı Yeşil */
    border: 1.5px solid #fff;
    /* Çerçeveden ayrışması için beyaz kenarlık */
    border-radius: 50%;
    z-index: 5;
    /* RGB çerçevenin üstünde kalması için */
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
    animation: onlinePulse 2s infinite;
}

@keyframes spinBorder {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.admin-avatar-box {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1.5px solid #fff;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gece modunda beyaz kenarlığı koyulaştır ki sırıtmasın */
html.dark-mode .online-indicator {
    border-color: #1e293b;
}

/* Zıplama ve Parlama Animasyonu */
@keyframes onlinePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1.15);
        /* Hafif büyüme */
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
        /* Dışa doğru yayılan ışık */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.admin-text {
    font-size: 9px;
    font-weight: 900;
    color: #475569;
    margin-left: 8px;
    text-transform: uppercase;
}

/* BUTON */
.flow-read-more {
    background: #f8fafc;
    color: #4361ee;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 9px;
    text-decoration: none !important;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.flow-read-more:hover {
    background: #4361ee;
    color: #fff;
    border-color: #4361ee;
}

/* SAYFALAMA BUTONLARI */
.modern-pagination,
.modern-pagination ul {
    margin: 30px 0 40px 0 !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    gap: 5px !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

.modern-pagination li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modern-pagination a,
.modern-pagination strong,
.modern-pagination span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 52px !important;
    min-width: 52px !important;

    background: #fff !important;
    color: #4361ee !important;
    font-weight: 850 !important;
    font-size: 15px !important;
    border-radius: 18px !important;
    /* Oval form */
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    white-space: nowrap !important;
}

.modern-pagination a[rel="next"],
.modern-pagination a[rel="prev"] {
    width: auto !important;
    padding: 0 25px !important;
}

.modern-pagination strong,
.modern-pagination .active span,
.modern-pagination li.active a {
    background: linear-gradient(135deg, #7209b7 0%, #4361ee 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: scale(1.1) translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(114, 9, 183, 0.25) !important;
    z-index: 2 !important;
}

.modern-pagination a:hover {
    transform: translateY(-8px) !important;
    color: #7209b7 !important;
    border-color: #7209b7 !important;
    box-shadow: 0 15px 25px rgba(114, 9, 183, 0.12) !important;
}

/* 1. Gece Modunda Aktif (Mevcut) Buton: Mavi-Mor Gradyan Mührü */
body.dark-mode .modern-pagination strong,
body.dark-mode .modern-pagination .active span,
body.dark-mode .modern-pagination li.active a {
    background: linear-gradient(135deg, #7209b7 0%, #4361ee 100%) !important;
    color: #ffffff !important;
    border: none !important;
    /* Gradyan varken çerçeveye gerek yok */
    box-shadow: 0 10px 25px rgba(114, 9, 183, 0.5) !important;
    transform: scale(1.1) translateY(-3px) !important;
}

/* 2. Gece Modunda Pasif Butonlar: Sadece Alt Neon Işık (Hover) */
body.dark-mode .modern-pagination a:not(.active):hover {
    /* Çerçeve rengine dokunmuyoruz (mevcut neyse o kalır) */
    color: #ffffff !important;

    box-shadow: 0 12px 25px -8px rgba(114, 9, 183, 0.9) !important;

    /* Hafif yukarı zıplama efekti */
    transform: translateY(-8px) !important;
}

/* 7. GHOST & SIDEBAR */
@keyframes ghostFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.ghost-container {
    display: inline-block;
    animation: ghostFloat 3.5s ease-in-out infinite;
    margin-bottom: 25px;
}

.animated-ghost-icon {
    font-size: 6rem;
    background: linear-gradient(135deg, #7209b7 0%, #4361ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(114, 9, 183, 0.2));
}

.category-special-sidebar {
    position: sticky !important;
    top: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 233px !important;
}

.category-special-sidebar .populer-yazilar-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.category-special-sidebar .sosyal-linkler-container {
    margin-top: 10px !important;
}

/* 8. RESPONSIVE & DARK MODE */
@media (max-width: 768px) {
    .modern-flow-card {
        flex-direction: column;
        height: auto;
    }

    .flow-img-wrapper {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .flow-content-side {
        padding: 15px;
    }

    .modern-pagination a,
    .modern-pagination strong,
    .modern-pagination span {
        height: 44px !important;
        min-width: 44px !important;
    }
}

@media (max-width: 991px) {
    .category-special-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 30px !important;
    }
}

body.dark-mode .modern-flow-card {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border-bottom: 3px solid transparent;
}

body.dark-mode .modern-flow-card:hover {
    box-shadow: 0 22px 45px -12px rgba(114, 9, 183, 0.95);
    border-bottom: 3px solid rgba(114, 9, 183, 1);
    transform: translateY(-8px);
}

body.dark-mode .flow-main-title {
    color: #f1f5f9;
}

body.dark-mode .flow-post-title a {
    color: #f1f5f9;
}

body.dark-mode .meta-date {
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .flow-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .admin-text {
    color: #cbd5e1;
}

body.dark-mode .flow-read-more {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .flow-read-more:hover {
    background: #4361ee;
    border-color: #4361ee;
}

body.dark-mode .modern-pagination a,
body.dark-mode .modern-pagination span {
    background: #27272a !important;
    /* Header ve Kart Rengi */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    /* Premium Gri Yazı */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .modern-pagination a:hover {
    background: #3f3f46 !important;
    /* Hoverda hafif açılma */
    border-color: #64748b !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .flow-badge {
    background: rgba(30, 41, 59, 0.9);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .meta-separator-line {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .online-indicator {
    border-color: #27272a;
}

body.dark-mode .category-special-sidebar .populer-yazilar-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/*KATEGORI BITIS*/