/* Tema 2 / 3 — kategori grid + hero kart (ortak, 4’lü grid korunur) */
.modern-cat-scroll {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.45rem;
}
.modern-cat-card {
    background: #fff;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    grid-column: span 3;
}
.modern-cat-card.span-3,
.modern-cat-card.span-4,
.modern-cat-card.span-6 {
    grid-column: span 3;
}
.modern-cat-card.span-12 {
    grid-column: span 12;
}

/* Otel / legacy küçük kart */
.modern-cat-card:not(.modern-cat-card--hero) > img {
    width: 100%;
    height: 3.4rem;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: pointer;
}
.modern-cat-card:not(.modern-cat-card--hero) .cat-meta {
    padding: 0.35rem 0.35rem 0.4rem;
}
.modern-cat-card:not(.modern-cat-card--hero) .cat-name {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.modern-cat-card:not(.modern-cat-card--hero) .cat-count {
    font-size: 0.55rem;
    color: #6b7280;
    margin-top: 0.05rem;
}

/* Hero: yatay dikdörtgen görsel + ince alt şerit + sayı altta */
.modern-cat-card--hero {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    overflow: visible;
    box-shadow: none;
}
.modern-cat-card--hero:hover {
    transform: translateY(-1px);
}
.modern-cat-card--hero:hover .modern-cat-card-media {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.modern-cat-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    border-radius: 0.65rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    transition: box-shadow 0.2s ease;
}
.modern-cat-card.span-12 .modern-cat-card-media {
    aspect-ratio: 16 / 7;
    max-height: 11rem;
}
.modern-cat-card-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.modern-cat-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.modern-cat-card-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0.28rem 0.38rem 0.32rem;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-top: none;
}
.modern-cat-card-name {
    min-width: 0;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.modern-cat-card-count-below {
    margin-top: 0.28rem;
    padding: 0 0.1rem;
    font-size: 0.56rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.ui-theme-luxury .modern-cat-card-count-below {
    color: var(--lux-card-text-muted, #78716c);
}

@media (min-width: 640px) {
    .modern-cat-scroll {
        gap: 0.6rem;
    }
    .modern-cat-card-media {
        aspect-ratio: 4 / 3;
        border-radius: 0.75rem;
    }
    .modern-cat-card-strip {
        padding: 0.38rem 0.5rem 0.42rem;
    }
    .modern-cat-card-name {
        font-size: 0.72rem;
        line-height: 1.25;
    }
    .modern-cat-card-count-below {
        font-size: 0.65rem;
        margin-top: 0.32rem;
    }
    .modern-cat-card:not(.modern-cat-card--hero) > img {
        height: 7rem;
    }
    .modern-cat-card:not(.modern-cat-card--hero) .cat-name {
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .modern-cat-scroll {
        gap: 0.7rem;
    }
    .modern-cat-card-name {
        font-size: 0.78rem;
    }
    .modern-cat-card-count-below {
        font-size: 0.68rem;
    }
    .modern-cat-card:not(.modern-cat-card--hero) > img {
        height: 4.25rem;
    }
    .modern-cat-card:not(.modern-cat-card--hero) .cat-name {
        font-size: 0.72rem;
    }
}
