/* =====================================================================
   category-page.css  —  Oyun ürün kategori sayfası (oyun_urun.php)
   Premium hero + filtre çipleri + canlı arama + sadeleştirilmiş liste.
   Marka: nötr koyu zemin + mor accent (accent-tune.css ile uyumlu).
   En son yüklenir; tek dosya + tek include ile geri alınabilir.
   ===================================================================== */

/* ---------------------------------------------------------------- HERO */
.cat-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 0 38px;
    isolation: isolate;
}

/* Blurlu oyun görseli ambiyans katmanı */
.cat-hero-bg {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    filter: blur(42px) saturate(1.15);
    opacity: 0.28;
    transform: scale(1.1);
    z-index: -2;
}

/* Koyu + mor gradyan örtü: arka planı oturtur, metni okunur tutar */
.cat-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(680px 320px at 50% -40px, rgba(139, 92, 246, 0.20), transparent 70%),
        radial-gradient(900px 500px at 50% 120%, rgba(34, 211, 238, 0.05), transparent 60%),
        linear-gradient(180deg, rgba(10, 11, 16, 0.55) 0%, var(--ofl-bg, #0b0c10) 92%);
}
.cat-hero-noart .cat-hero-overlay {
    background:
        radial-gradient(680px 320px at 50% -40px, rgba(139, 92, 246, 0.16), transparent 70%),
        linear-gradient(180deg, #111218 0%, var(--ofl-bg, #0b0c10) 92%);
}

/* --- Özel geniş sanat görseli varsa: ikon-blur yerine NET ve görünür arka plan --- */
.cat-hero-hasart { padding: 48px 0 46px; }
.cat-hero-bg-art {
    inset: 0;
    filter: saturate(1.08) contrast(1.04);
    opacity: 0.96;
    transform: none;
    image-rendering: auto;
}
/* Yazı zonunu (merkez) karart, alta doğru sayfa zeminine yumuşak geçiş yap */
.cat-hero-hasart .cat-hero-overlay {
    background:
        radial-gradient(640px 320px at 50% 48%, rgba(7, 8, 12, 0.74), rgba(7, 8, 12, 0.30) 62%, transparent 82%),
        linear-gradient(180deg, rgba(9, 10, 15, 0.55) 0%, rgba(9, 10, 15, 0.20) 38%, rgba(11, 12, 16, 0.86) 88%, var(--ofl-bg, #0b0c10) 100%);
}

.cat-hero-container { position: relative; }

/* Breadcrumb */
.cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 26px;
}
.cat-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cat-breadcrumb a:hover { color: #c4b5fd; }
.cat-breadcrumb .sep { font-size: 10px; color: rgba(255, 255, 255, 0.25); }
.cat-breadcrumb span { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

/* Ortalı içerik bloğu */
.cat-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Oyun ikonu — parlayan premium tile */
.cat-hero-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, rgba(139, 92, 246, 0.22), rgba(20, 22, 28, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.45),
        0 0 32px rgba(139, 92, 246, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    position: relative;
}
.cat-hero-icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(165deg, rgba(167, 139, 250, 0.5), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.cat-hero-icon {
    overflow: hidden;
}
.cat-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.cat-hero-icon-fallback span {
    font-size: 30px;
    font-weight: 900;
    color: #c4b5fd;
    letter-spacing: 1px;
}

.cat-hero-title {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    line-height: 1.12;
}

.cat-hero-desc {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 0 22px;
    max-width: 620px;
}

/* Güven/özellik pill'leri */
.cat-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cat-pill i { font-size: 13px; }
.cat-pill-bolt i { color: #fbbf24; }
.cat-pill-shield i { color: #34d399; }

/* Entegre arama kutusu */
.cat-hero-search {
    position: relative;
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
}
.cat-hero-search > i {
    position: absolute;
    left: 20px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: color 0.25s;
}
.cat-hero-search input {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 16, 21, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    font-size: 15px;
    padding: 0 50px 0 52px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.cat-hero-search input::placeholder { color: rgba(255, 255, 255, 0.38); }
.cat-hero-search input:focus {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(20, 18, 30, 0.85);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), 0 12px 36px rgba(139, 92, 246, 0.12);
}
.cat-hero-search input:focus + .cat-search-clear,
.cat-hero-search:focus-within > i { color: #a78bfa; }
.cat-search-clear {
    position: absolute;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
}
.cat-search-clear:hover { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }

/* ----------------------------------------------------- FİLTRE ÇİPLERİ */
.cat-filter-section { padding: 4px 0 18px; }
.cat-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.cat-chip i { font-size: 14px; opacity: 0.85; }
.cat-chip:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-1px);
}
.cat-chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.32);
}
.cat-chip.is-active i { opacity: 1; }
.cat-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}
.cat-chip.is-active .cat-chip-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ----------------------------------------- LİSTE KARTI ALT BAŞLIĞI */
.pl-card-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin: 1px 0 8px;
    font-weight: 500;
}
.pl-card-sub i { color: #fbbf24; font-size: 12px; }

/* Liste kartı çıkış animasyonu (filtre/arama) yumuşak görünüm */
.pl-card { transition: opacity 0.2s ease; }

/* =====================================================================
   LİSTE KARTLARINI BELİRGİNLEŞTİR
   Sorun: kart zemini sayfa arka planıyla aynı koyulukta → ayrışmıyor,
   görseller küçük → sönük duruyor. Çözüm: net zemin + kenarlık + gölge,
   daha büyük görsel ve başlık.
   ===================================================================== */
.pl-card-inner {
    background: linear-gradient(180deg, #16181f 0%, #111218 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.34) !important;
}
.pl-card:hover .pl-card-inner {
    background: linear-gradient(180deg, #1a1d27 0%, #14151e 100%) !important;
    border-color: rgba(139, 92, 246, 0.42) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 30px rgba(139, 92, 246, 0.18) !important;
    transform: translateY(-3px) !important;
}

/* Başlık biraz daha büyük ve net */
.pl-card-name { font-size: 16px !important; }

/* Numarayı biraz belirginleştir */
.pl-card-num { font-size: 17px !important; color: rgba(167, 139, 250, 0.45) !important; }

/* Masaüstünde daha büyük görsel + dengeli satır yüksekliği */
@media (min-width: 992px) {
    .pl-card-inner {
        min-height: 128px !important;
        padding: 16px 22px !important;
        gap: 18px !important;
    }
    .pl-card-image {
        width: 90px !important;
        height: 124px !important;
    }
}

/* --------------------------------------------------- SONUÇ YOK DURUMU */
.cat-noresult {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}
.cat-noresult-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.cat-noresult h3 { font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.cat-noresult p { font-size: 14px; color: rgba(255, 255, 255, 0.5); margin: 0 0 18px; }
.cat-noresult-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s;
}
.cat-noresult-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

/* ====================================================== RESPONSIVE */
@media (max-width: 768px) {
    .cat-hero { padding: 20px 0 26px; }
    .cat-breadcrumb { margin-bottom: 18px; }
    .cat-hero-icon { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 16px; }
    .cat-hero-icon img { width: 46px; height: 46px; }
    .cat-hero-title { font-size: 25px; }
    .cat-hero-desc { font-size: 13.5px; margin-bottom: 18px; }
    .cat-hero-search input { height: 50px; font-size: 14px; }
    .cat-hero-meta { gap: 7px; margin-bottom: 20px; }
    .cat-pill { padding: 6px 11px; font-size: 11.5px; }

    /* Çipleri yatay kaydırılabilir şerit yap */
    .cat-filter-bar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cat-filter-bar::-webkit-scrollbar { display: none; }
    .cat-chip { flex-shrink: 0; padding: 9px 14px; font-size: 12.5px; }
}

/* Fiyat yanı indirim rozeti: varsayılan (masaüstü) gizli, sadece mobilde görünür */
.pl-price-disc { display: none; }

/* =====================================================================
   MOBİL ÜRÜN KARTI — dikey/stacked düzen (referans tasarım)
   Satır1: görsel + isim/alt başlık   |   Satır2: fiyat + indirim
   Satır3: adet + detay(ikon) + SEPETE EKLE (geniş CTA)
   ===================================================================== */
@media (max-width: 600px) {
    .pl-card-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 12px 13px !important;
        padding: 14px !important;
        min-height: 0 !important;
        border-radius: 16px !important;
    }

    .pl-card-num { display: none !important; }

    /* Satır 1: görsel + bilgi */
    .pl-card-image {
        width: 64px !important;
        height: 88px !important;
        align-self: flex-start !important;
        order: 0;
    }
    .pl-card-info { flex: 1 1 0 !important; min-width: 0 !important; order: 1; }
    .pl-card-name {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14.5px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }
    .pl-card-sub { margin: 0 !important; font-size: 11.5px !important; }
    /* Mobilde rozetleri sadeleştir: kampanya + stok gizli (referans gibi temiz);
       indirim zaten fiyatın yanında gösteriliyor. */
    .pl-card-tags { display: none !important; }

    /* Satır 2: fiyat + indirim rozeti (üst çizgiyle ayrılır) */
    .pl-card-price {
        order: 2;
        flex: 1 0 100% !important;
        min-width: 0 !important;
        text-align: left !important;
        padding: 12px 0 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex !important;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 4px 10px;
    }
    .pl-card-price-old {
        order: -1;
        flex-basis: 100%;
        margin: 0 !important;
        font-size: 12px !important;
    }
    .pl-card-price-main { font-size: 23px !important; }
    .pl-price-disc {
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
        padding: 3px 9px;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 800;
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    /* Satır 3: adet + aksiyonlar tek sırada */
    .pl-card-qty { order: 3; flex: 0 0 auto !important; }
    .pl-card-qty .pd-qty,
    .pl-card-qty .counter { height: 48px !important; }

    .pl-card-actions {
        order: 4;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        gap: 8px !important;
    }
    /* Detay → sadece ikon (kompakt kare) */
    .pl-action-detail { flex: 0 0 auto !important; padding: 0 16px !important; height: 48px !important; }
    .pl-action-detail span { display: none !important; }
    /* Sepete Ekle → geniş ana CTA */
    .pl-action-cart {
        flex: 1 1 auto !important;
        justify-content: center !important;
        height: 48px !important;
        font-size: 13.5px !important;
    }
    .pl-action-disabled { flex: 1 1 auto !important; justify-content: center !important; height: 48px !important; }
}
