﻿/* UG tum-kategoriler / fp-allcat — ported for TinPul */
#fp-all-categories {
        --fp-ui-r: 14px;
        --fp-ui-r-lg: var(--fp-r,16px);
        --fp-cyan: #00c0ff;
        --fp-edge: rgba(255, 255, 255, 0.07);
    }

    #fp-all-categories .fp-allcat-atmosphere {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
        background:
            radial-gradient(ellipse 85% 55% at 50% -18%, rgba(34, 211, 238, 0.09), transparent 58%),
            radial-gradient(ellipse 55% 45% at 95% 8%, rgba(129, 140, 248, 0.06), transparent 52%),
            linear-gradient(168deg, #06080c 0%, #0c1119 42%, #07090e 100%);
    }
    #fp-all-categories.gs-cat-page {
        padding-top: 1rem;
        padding-bottom: clamp(4rem, 10vw, 5.5rem);
        min-height: 72vh;
        position: relative;
        isolation: isolate;
    }
    #fp-all-categories > .container {
        position: relative;
        z-index: 1;
    }

    #fp-all-categories .fp-breadcrumb {
        margin-bottom: 1rem;
    }
    #fp-all-categories .fp-breadcrumb .list li .link {
        color: rgba(255, 255, 255, 0.52);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    #fp-all-categories .fp-breadcrumb .list li .link:hover {
        color: rgba(34, 211, 238, 0.95);
    }
    #fp-all-categories .fp-breadcrumb .list li .link.active {
        color: rgba(255, 255, 255, 0.92);
    }

    #fp-all-categories .fp-allcat-page-hero.fp-header-card {
        text-align: center;
        padding: clamp(1.35rem, 3.2vw, 1.85rem) clamp(1rem, 2.2vw, 1.35rem);
        position: relative;
        overflow: hidden;
        border-radius: var(--fp-ui-r-lg);
        border: 1px solid rgba(34, 211, 238, 0.12);
        background: radial-gradient(circle at 50% -10%, #2a323c 0%, #0c0e14 78%);
        box-shadow:
            0 28px 56px -14px rgba(0, 0, 0, 0.58),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        transition: box-shadow 0.45s ease, border-color 0.35s ease, transform 0.35s ease;
    }
    #fp-all-categories .fp-allcat-page-hero.fp-header-card:hover {
        border-color: rgba(34, 211, 238, 0.28);
        box-shadow:
            0 32px 64px -14px rgba(0, 0, 0, 0.62),
            0 0 0 1px rgba(34, 211, 238, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }
    #fp-all-categories .fp-allcat-hero-glow {
        position: absolute;
        pointer-events: none;
        border-radius: 50%;
        opacity: 0.85;
    }
    #fp-all-categories .fp-allcat-hero-glow--tl {
        top: -12%;
        left: -6%;
        width: 160px;
        height: 160px;
        background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 68%);
        animation: fp-allcat-float-up 10s ease-in-out infinite;
    }
    #fp-all-categories .fp-allcat-hero-glow--br {
        bottom: -12%;
        right: -6%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.11) 0%, transparent 68%);
        animation: fp-allcat-float-down 12s ease-in-out infinite;
    }
    @keyframes fp-allcat-float-up {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-18px); }
    }
    @keyframes fp-allcat-float-down {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(18px); }
    }
    @keyframes fp-allcat-float-rotate {
        0%, 100% { transform: translateY(0) rotate(-15deg); }
        50% { transform: translateY(-14px) rotate(15deg); }
    }
    @keyframes fp-allcat-badge-glow {
        0%, 100% { box-shadow: 0 0 12px rgba(249, 115, 22, 0.38); }
        50% { box-shadow: 0 0 22px rgba(249, 115, 22, 0.58); }
    }
    @media (prefers-reduced-motion: reduce) {
        #fp-all-categories .fp-allcat-hero-glow--tl,
        #fp-all-categories .fp-allcat-hero-glow--br,
        #fp-all-categories .fp-allcat-page-hero.fp-header-card [class^="ri-"] {
            animation: none !important;
        }
        #fp-all-categories .fp-allcat-hero-badge {
            animation: none !important;
        }
        #fp-all-categories .fp-allcat-page-hero.fp-header-card:hover {
            transform: none;
        }
    }

    #fp-all-categories .fp-allcat-hero-inner {
        position: relative;
        z-index: 1;
    }
    #fp-all-categories .fp-allcat-hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
        padding: 5px 15px;
        border-radius: var(--fp-r,16px);
        margin-bottom: 14px;
        animation: fp-allcat-badge-glow 3s ease-in-out infinite;
        border: 1px solid rgba(255, 255, 255, 0.22);
    }
    #fp-all-categories .fp-allcat-hero-badge i {
        font-size: 13px;
        color: #fff;
    }
    #fp-all-categories .fp-allcat-hero-badge span {
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #fff;
    }
    #fp-all-categories .fp-allcat-hero-title {
        font-size: clamp(1.35rem, 3.2vw, 1.65rem);
        margin: 0 0 8px;
        font-weight: 900;
        letter-spacing: -0.03em;
        line-height: 1.2;
        background: linear-gradient(to bottom, #ffffff 28%, #94a3b8 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        padding-bottom: 4px;
    }
    #fp-all-categories .fp-allcat-hero-rule {
        width: 44px;
        height: 3px;
        margin: 0 auto 12px;
        border-radius: var(--fp-r,16px);
        background: linear-gradient(to right, #00c0ff, #22d3ee);
    }
    #fp-all-categories .fp-allcat-hero-lead {
        margin: 0 auto;
        max-width: 34rem;
        font-size: 14px;
        line-height: 1.55;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.72);
    }
    #fp-all-categories .fp-allcat-hero-lead .fp-allcat-hero-stat {
        color: #22d3ee;
        font-weight: 700;
    }

    #fp-all-categories .gs-poster-card.fp-allcat-poster {
        display: block;
        position: relative;
        background: rgba(22, 26, 34, 0.65);
        border-radius: var(--fp-r,16px);
        overflow: hidden;
        text-decoration: none;
        transition:
            transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
            border-color 0.35s ease,
            box-shadow 0.35s ease,
            background 0.35s ease;
        height: 100%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow:
            0 10px 36px rgba(0, 0, 0, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            0 0 0 1px rgba(0, 0, 0, 0.2);
    }
    #fp-all-categories .gs-poster-card.fp-allcat-poster:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 255, 255, 0.32);
        background: rgba(255, 255, 255, 0.07);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.28),
            0 0 0 1px rgba(0, 192, 255, 0.35),
            0 18px 44px rgba(0, 0, 0, 0.38),
            0 0 36px rgba(0, 192, 255, 0.18);
    }
    #fp-all-categories .poster-img {
        position: relative;
        width: 100%;
        aspect-ratio: 2 / 3.2;
        overflow: hidden;
        background:
            radial-gradient(ellipse 70% 50% at 50% 20%, rgba(34, 211, 238, 0.08), transparent 60%),
            linear-gradient(180deg, #151a22 0%, #0a0d12 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #fp-all-categories .gs-poster-card.fp-allcat-poster:hover .poster-img img { transform: scale(1.06); }
    #fp-all-categories .poster-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    /* Logo / ikon oranlı kategori görselleri — cover kırpmasın */
    #fp-all-categories .fp-allcat-poster--logo .poster-img img {
        width: 72%;
        height: 58%;
        object-fit: contain;
        object-position: center 42%;
    }
    #fp-all-categories .poster-content {
        position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; z-index: 4;
        opacity: 1; transform: translateY(0); transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        pointer-events: none;
    }
    #fp-all-categories .gs-poster-card.fp-allcat-poster:hover .poster-content { opacity: 1; transform: translateY(0); }
    #fp-all-categories .fp-breadcrumb .list li::after {
        content: "/";
        display: inline-block;
        margin: 0 3px 0 4px;
        color: rgba(148, 163, 184, 0.85);
    }
    #fp-all-categories .fp-breadcrumb .list li:last-child::after {
        display: none;
    }
    #fp-all-categories .poster-title {
        font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 0;
        background: rgba(10, 20, 30, 0.85);
        padding: 12px 10px; border-radius: var(--fp-r,16px); border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 4px 16px rgba(0,0,0,0.35); text-align: center; text-transform: uppercase;
        letter-spacing: 0.5px; line-height: 1.2;
    }
    #fp-all-categories .poster-hover-icon {
        position: absolute; top: 15px; left: 15px; right: auto; width: 32px; height: 32px;
        background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: var(--fp-r,12px); display: flex; align-items: center;
        justify-content: center; color: #fff; font-size: 16px; opacity: 0;
        transform: scale(0.85); transition: opacity 0.35s ease, transform 0.35s ease;
        z-index: 5;
    }
    #fp-all-categories .gs-poster-card.fp-allcat-poster:hover .poster-hover-icon {
        opacity: 1;
        transform: scale(1);
        background: rgba(0, 192, 255, 0.18);
        border-color: rgba(0, 192, 255, 0.45);
    }

    #fp-all-categories .fp-allcat-poster .poster-img::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 3;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.35s ease;
        background: linear-gradient(
            165deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.04) 38%,
            transparent 55%,
            rgba(6, 10, 18, 0.45) 100%
        );
    }
    #fp-all-categories .fp-allcat-poster:hover .poster-img::after {
        opacity: 1;
    }
    #fp-all-categories .fp-allcat-section-head[id] {
        scroll-margin-top: 96px;
    }
    #fp-all-categories .fp-allcat-section-head {
        margin-top: 1.75rem;
        margin-bottom: 0.65rem;
    }
    #fp-all-categories .fp-allcat-section-head:first-child {
        margin-top: 0;
    }

    #fp-all-categories .fp-allcat-sh {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 18px;
        padding: 14px 18px 14px 16px;
        border-radius: var(--fp-r,16px);
        border: 1px solid rgba(255, 255, 255, 0.09);
        background: linear-gradient(145deg, rgba(24, 32, 44, 0.85) 0%, rgba(10, 12, 18, 0.92) 100%);
        box-shadow:
            0 10px 36px rgba(0, 0, 0, 0.38),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        position: relative;
        overflow: hidden;
    }
    #fp-all-categories .fp-allcat-sh::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0.45;
        background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(34, 211, 238, 0.07), transparent 55%);
    }
    #fp-all-categories .fp-allcat-sh--sub::before {
        background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(139, 92, 246, 0.09), transparent 55%);
        opacity: 0.55;
    }
    #fp-all-categories .fp-allcat-sh__accent {
        flex-shrink: 0;
        width: 5px;
        height: 42px;
        border-radius: var(--fp-r,16px);
        background: linear-gradient(180deg, #22d3ee 0%, #0891b2 55%, #0e7490 100%);
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
        position: relative;
        z-index: 1;
    }
    #fp-all-categories .fp-allcat-sh__accent--violet {
        background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 50%, #6d28d9 100%);
        box-shadow: 0 0 22px rgba(139, 92, 246, 0.38);
    }
    #fp-all-categories .fp-allcat-sh__body {
        flex: 1 1 180px;
        min-width: 0;
        position: relative;
        z-index: 1;
    }
    #fp-all-categories .fp-allcat-sh__cluster {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 14px;
        flex: 1 1 220px;
        min-width: 0;
        position: relative;
        z-index: 1;
    }
    #fp-all-categories .fp-allcat-sh__title {
        margin: 0;
        font-size: clamp(0.98rem, 2vw, 1.18rem);
        font-weight: 800;
        letter-spacing: -0.035em;
        line-height: 1.2;
        color: #f8fafc;
    }
    #fp-all-categories .fp-allcat-sh__title--sub {
        font-size: clamp(0.95rem, 1.95vw, 1.12rem);
        font-weight: 700;
        letter-spacing: -0.03em;
        margin: 0;
    }
    #fp-all-categories .fp-allcat-sh__link {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease, text-shadow 0.2s ease;
        word-break: break-word;
    }
    #fp-all-categories .fp-allcat-sh__link:hover {
        color: #e9d5ff;
        text-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
    }
    #fp-all-categories .fp-allcat-sh__link:focus-visible {
        outline: 2px solid rgba(167, 139, 250, 0.95);
        outline-offset: 3px;
        border-radius: var(--fp-r,16px);
        color: #f5f3ff;
    }
    #fp-all-categories .fp-allcat-sh__chip {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #ede9fe;
        padding: 7px 13px;
        border-radius: var(--fp-r,16px);
        border: 1px solid rgba(167, 139, 250, 0.45);
        background: rgba(76, 29, 149, 0.35);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    #fp-all-categories .fp-allcat-sh__meta {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        margin-left: auto;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(226, 232, 240, 0.55);
        padding: 7px 13px;
        border-radius: var(--fp-r,16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.25);
        position: relative;
        z-index: 1;
    }
    #fp-all-categories .fp-allcat-sh--sub .fp-allcat-sh__meta {
        color: rgba(221, 214, 254, 0.72);
        border-color: rgba(167, 139, 250, 0.28);
        background: rgba(49, 46, 129, 0.35);
    }
    #fp-all-categories .fp-allcat-sh__meta--wide {
        text-transform: none;
        letter-spacing: 0.02em;
        font-weight: 500;
        font-size: 12px;
        line-height: 1.35;
        max-width: min(100%, 22rem);
        text-align: right;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }
    #fp-all-categories .fp-allcat-sh__meta-sub {
        display: block;
        margin-top: 4px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: rgba(226, 232, 240, 0.45);
    }
    @media (max-width: 575.98px) {
        #fp-all-categories .fp-allcat-sh {
            padding: 12px 14px;
            gap: 10px 12px;
        }
        #fp-all-categories .fp-allcat-sh__meta {
            margin-left: 0;
            width: 100%;
            justify-content: center;
            text-align: center;
        }
        #fp-all-categories .fp-allcat-sh__meta--wide {
            align-items: center;
            text-align: center;
        }
    }

    #fp-all-categories #category-grid.row {
        margin-top: clamp(0.35rem, 1.5vw, 0.85rem);
        --bs-gutter-y: 1.1rem;
    }
    @media (min-width: 1200px) {
        #fp-all-categories #category-grid.row {
            --bs-gutter-y: 1.5rem;
        }
    }

    #fp-all-categories .gs-poster-card:focus-visible {
        outline: 2px solid #00C0FF; outline-offset: 3px;
    }
    @media (prefers-reduced-motion: reduce) {
        #fp-all-categories .gs-poster-card.fp-allcat-poster,
        #fp-all-categories .gs-poster-card.fp-allcat-poster .poster-img img,
        #fp-all-categories .fp-allcat-poster .poster-img::after {
            transition: none !important;
        }
        #fp-all-categories .gs-poster-card.fp-allcat-poster:hover {
            transform: none;
        }
        #fp-all-categories .fp-allcat-poster:hover .poster-img::after {
            opacity: 1;
        }
    }


/*
 * Bu sayfa UG tum-kategoriler gibi her zaman koyu allcat yüzeyidir.
 * Gündüz temasında bile UG dark chrome korunur (beyaz kart / cream bg yok).
 */
html[data-theme="light"] #fp-all-categories .fp-allcat-atmosphere {
    background:
        radial-gradient(ellipse 85% 55% at 50% -18%, rgba(34, 211, 238, 0.09), transparent 58%),
        radial-gradient(ellipse 55% 45% at 95% 8%, rgba(129, 140, 248, 0.06), transparent 52%),
        linear-gradient(168deg, #06080c 0%, #0c1119 42%, #07090e 100%);
}
html[data-theme="light"] #fp-all-categories .fp-breadcrumb .list li .link {
    color: rgba(255, 255, 255, 0.52);
}
html[data-theme="light"] #fp-all-categories .fp-breadcrumb .list li .link:hover {
    color: rgba(34, 211, 238, 0.95);
}
html[data-theme="light"] #fp-all-categories .fp-breadcrumb .list li .link.active {
    color: rgba(255, 255, 255, 0.92);
}
html[data-theme="light"] #fp-all-categories .fp-allcat-page-hero.fp-header-card {
    border-color: rgba(34, 211, 238, 0.12);
    background: radial-gradient(circle at 50% -10%, #2a323c 0%, #0c0e14 78%);
    box-shadow:
        0 28px 56px -14px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="light"] #fp-all-categories .fp-allcat-hero-title {
    background: linear-gradient(to bottom, #ffffff 28%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
html[data-theme="light"] #fp-all-categories .gs-poster-card.fp-allcat-poster {
    background: rgba(22, 26, 34, 0.65);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 0 1px rgba(0, 0, 0, 0.2);
}
html[data-theme="light"] #fp-all-categories .poster-title {
    color: #fff;
    background: rgba(10, 20, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="light"] #fp-all-categories .fp-allcat-sh {
    border-color: rgba(255, 255, 255, 0.09);
    background: linear-gradient(145deg, rgba(24, 32, 44, 0.85) 0%, rgba(10, 12, 18, 0.92) 100%);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] #fp-all-categories .fp-allcat-sh__title {
    color: #f8fafc;
}
html[data-theme="light"] #fp-all-categories .fp-allcat-sh__meta {
    color: rgba(226, 232, 240, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}
html[data-theme="light"] #fp-all-categories .fp-allcat-sh--sub .fp-allcat-sh__meta {
    color: rgba(221, 214, 254, 0.72);
    border-color: rgba(167, 139, 250, 0.28);
    background: rgba(49, 46, 129, 0.35);
}
html[data-theme="light"] #fp-all-categories .fp-allcat-sh__chip {
    color: #ede9fe;
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(76, 29, 149, 0.35);
}
html[data-theme="light"] #fp-all-categories .fp-allcat-sh__link:hover {
    color: #e9d5ff;
}
