/*ETİKET.CSS*/
/* 1. TEMEL 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);
}

.search-wrapper-main :not(i) {
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -0.015em !important;
}

/* Reveal Animation */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.search-wrapper-main {
    padding: 30px 0;
    background: var(--soft-bg);
    min-height: 80vh;
}

.q-text {
    background: var(--main-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.search-header-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.search-query-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* MODERN FLOW CARD */
.modern-flow-card {
    background: #fff;
    border-radius: 25px;
    display: flex;
    overflow: hidden;
    margin-bottom: 25px;
    transition: 0.4s ease;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    height: 220px;
}

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

.flow-img-wrapper {
    width: 320px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

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

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

.flow-content-side {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.mini-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-tag-transparent {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
}

.animated-meta-cat {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background-color: var(--dyn-color, #4361ee);
    color: #fff !important;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 850;
    text-decoration: none !important;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.animated-meta-cat:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.meta-separator-line {
    width: 1px;
    height: 14px;
    background-color: #cbd5e1;
    margin: 0 12px;
    display: inline-block;
}

.meta-date {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(67, 97, 238, 0.08) !important;
    color: #4361ee !important;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid rgba(67, 97, 238, 0.15);
}

.flow-footer-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

/*  RGB DÖNEN ÇERÇEVE */
.admin-avatar-wrapper {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    background: transparent;
    /* Arkaplanı temizledik, efekti before ile veriyoruz */
}

/* Renkli Dönen Katman */
.admin-avatar-wrapper::before {
    content: "";
    position: absolute;
    inset: -2px;
    /* Dışarıya doğru 2px taşma yapar */
    border-radius: 50%;
    /* Senin ana gradyan renklerinle Win11 tarzı akış */
    background: conic-gradient(from 0deg, #4361ee, #7209b7, #4cc9f0, #4361ee);
    animation: spinBorder 3.5s linear infinite;
    z-index: -1;
}

/* 🟢 ONLINE NOKTASI (RGB ÜSTÜNE) */
.admin-avatar-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    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 8px rgba(34, 197, 94, 0.6);
    animation: onlinePulse 2s infinite;
}

/* Gece modunda noktanın etrafındaki beyazlığı kır */
html.dark-mode .admin-avatar-wrapper::after {
    border-color: #1e293b;
}

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

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

@keyframes onlinePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }

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

/* İç Kutu (Resmin durduğu yer) */
.admin-avatar-box {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #fff;
    /* İçeride temiz bir hat bırakır */
}

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

.admin-name {
    font-size: 11px;
    font-weight: 900;
    color: #64748b;
    margin-left: 10px;
    text-transform: uppercase;
}

.read-more-btn-mini {
    background: #f1f5f9;
    color: #4361ee;
    padding: 10px 22px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    font-size: 11px;
    transition: 0.3s;
}

.read-more-btn-mini:hover {
    background: #4361ee;
    color: #fff;
    transform: translateX(3px);
}

/* SAYFALAMA: TAM EŞİTLENDİ */
.modern-pagination,
.modern-pagination ul {
    margin: 80px 0 40px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    gap: 10px !important;
    /* Arama sayfasındaki boşluk */
    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;
    /* Boyutlar arama sayfasındaki gibi 52px yapıldı */
    height: 52px !important;
    min-width: 52px !important;
    background: #fff !important;
    color: #4361ee !important;
    font-weight: 850 !important;
    font-size: 16px !important;
    /* Arama sayfasıyla birebir aynı yazı boyutu */
    border-radius: 16px !important;
    /* Arama sayfasıyla aynı kavis */
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

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

/* MEVCUT SAYFA: HİZALAMA VE GRADYAN ARAMA SAYFASI STANDARTLARINDA */
.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: none !important;
    transform: scale(1.05) !important;
    /* Arama sayfasındaki gibi havada durmayan nizamı büyüme */
    box-shadow: 0 0 20px rgba(114, 9, 183, 0.4) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.modern-pagination a:hover {
    transform: translateY(-5px) !important;
    /* Arama sayfası hover seviyesi */
    color: #7209b7 !important;
    border-color: #7209b7 !important;
}

/* GÖZ VE BADGE */
.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;
}

.flow-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    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);
}

@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);
    }
}

body.dark-mode .search-wrapper-main {
    background: #0f172a;
}

body.dark-mode .modern-flow-card {
    background: #27272a !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    border-bottom: 3px solid transparent;
}

body.dark-mode .modern-flow-card:hover {
    background: #3f3f46 !important;
    border-bottom: 3px solid #7209b7 !important;
    box-shadow: 0 22px 45px -12px rgba(114, 9, 183, 0.5) !important;
    transform: translateY(-5px);
}

body.dark-mode .mini-title a {
    color: #ffffff !important;
}

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

body.dark-mode .meta-date i {
    color: #ff4d94 !important;
    filter: drop-shadow(0 0 5px rgba(255, 77, 148, 0.4));
}

/* Kategori yanındaki küçük çizgi de beyaz olsun */
body.dark-mode .meta-separator-line {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/*  FOOTER ÜSTÜNDEKİ UZUN ÇİZGİ BEYAZ */
body.dark-mode .flow-footer-area {
    border-top: 1px solid #ffffff !important;
    opacity: 1 !important;
}

body.dark-mode .admin-name {
    color: #94a3b8 !important;
}

body.dark-mode .read-more-btn-mini {
    background: #18181b !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .read-more-btn-mini:hover {
    color: #fff !important;
    border-color: #7209b7 !important;
    box-shadow: 0 10px 20px -6px rgba(114, 9, 183, 0.8) !important;
    transform: translateY(-3px) !important;
}

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

body.dark-mode .modern-pagination a {
    background: #27272a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
}

@media (max-width: 768px) {
    .modern-flow-card {
        flex-direction: column;
        height: auto !important;
    }

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

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

/* BUTON ALTINDAKİ ÇİZGİYİ HER İKİ MODDA DA SİL */
.read-more-btn-mini {
    text-decoration: none !important;
    /* Alt çizgiyi kaldırır */
    border-bottom: none !important;
    /* Eğer border olarak verildiyse onu da siler */
}

/* Hover durumunda da çıkmasını engelle */
.read-more-btn-mini:hover {
    text-decoration: none !important;
}

/* SAYFALAMA BUTONLARINA MOR NEON IŞIK EKLE */
body.dark-mode .modern-pagination a:not(.active):hover {
    box-shadow: 0 12px 20px -8px rgba(114, 9, 183, 0.8) !important;
    transform: translateY(-3px) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* 1. Pasif Sayfa Rakamları: Silik gri yapıyoruz */
body.dark-mode .modern-pagination a {
    color: #64748b !important;
    /* Silik gri tonu */
    background: #27272a !important;
    /* Arka plan renginle uyumlu */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 2. Mevcut (Aktif) Sayfa: Beyaz yazı + Gradyan arka plan */
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;
    /* Sadece mevcut sayfa beyaz parlar */
    border: none !important;
    box-shadow: 0 10px 25px rgba(114, 9, 183, 0.5) !important;
    transform: scale(1.1) translateY(-3px) !important;
}

/* 3. Hover Durumu: Üzerine gelince yazıyı beyazlat ve neonu çak */
body.dark-mode .modern-pagination a:hover {
    color: #ffffff !important;
    /* Fareyle gelince yazı parlasın */
    box-shadow: 0 12px 25px -8px rgba(114, 9, 183, 0.9) !important;
    transform: translateY(-8px) !important;
}

/* ETİKET SAYFASI MOBİL TAŞMA ÖNLEYİCİ */
@media (max-width: 768px) {

    /* 1. Ana başlığın (Etiket Adı) taşmasını engelle */
    .search-query-title {
        font-size: 1.6rem !important;
        /* Mobilde fontu biraz küçültüyoruz */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        hyphens: auto;
        /* Uzun kelimeleri gerekirse tire ile böler */
        padding: 0 15px;
        /* Kenarlardan nefes alsın */
    }

    /* 2. Kart içindeki yazı başlıklarını koruma altına al */
    .mini-title {
        font-size: 1.2rem !important;
        word-wrap: break-word !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        /* Çok uzunsa 3 satırda keser */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* 3. Modern Flow Card'ın genişliğini sabitle */
    .modern-flow-card {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}

/*ETİKET.CSS BİTİŞ*/