/* Ana sayfa AI kategori grid'i.
   Kart gorselleri kategoriye gore degistigi icin arka plan --kat-bg custom
   property'siyle disaridan verilir; geri kalan her sey burada (inline style yok). */

.kat-kart {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 12rem;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius, 6px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: box-shadow .3s, transform .3s;
}

.kat-kart:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: scale(1.05);
}

/* Dekoratif filigran — tiklama hedefi degil. Kendi border-radius'uyla kirpilir. */
.kat-kart__bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background-image: var(--kat-bg);
    background-size: cover;
    background-position: center;
    opacity: .03;
    pointer-events: none;
}

.kat-kart__govde {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    padding: 1.5rem;
}

/* <a> icinde blok kurulum icin span kullanildi; blok davranisi acikca verilir. */
.kat-kart__baslik {
    display: block;
    margin-bottom: .75rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
}

.kat-kart__aciklama {
    display: block;
    font-size: .875rem;
    line-height: 1.625;
    color: #374151;
}

/* Hover'da alttan beliren CTA seridi. */
.kat-kart__cta-serit {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .3s, transform .3s;
    background: linear-gradient(to top, #fff 60%, rgb(255 255 255 / .9) 80%, transparent);
    border-radius: 0 0 var(--radius, 6px) var(--radius, 6px);
}

.kat-kart:hover .kat-kart__cta-serit,
.kat-kart:focus-visible .kat-kart__cta-serit {
    opacity: 1;
    transform: translateY(0);
}

.kat-kart__cta {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background-color: #ea580c;
    border-radius: var(--radius, 6px);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: background-color .3s;
}

.kat-kart:hover .kat-kart__cta {
    background-color: #c2410c;
}

.kat-kart__cta svg {
    width: 1rem;
    height: 1rem;
}

/* Klavye erisimi: kart artik bir <a>, odak halkasi gorunur olmali. */
.kat-kart:focus-visible {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}
