/* categories-custom.css - Premium Bento Grid */

.categories-section {
    background-color: var(--bg-light);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

.custom-navy-badge {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 2px !important;
}

.section-title {
    color: var(--text-dark);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px !important;
}

.neon-serit-navy {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--primary-color);
}

/* ====================================================
   MASAÜSTÜ BENTO GRID SİSTEMİ
   ==================================================== */
.bento-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1.8fr;
    grid-template-rows: 300px 300px;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-areas:
        "cat1 cat3 cat5"
        "cat2 cat4 cat5";
}

.bento-cat1 {
    grid-area: cat1;
}

.bento-cat2 {
    grid-area: cat2;
}

.bento-cat3 {
    grid-area: cat3;
}

.bento-cat4 {
    grid-area: cat4;
}

.bento-cat5 {
    grid-area: cat5;
}

/* --- KART TASARIMI --- */
.bento-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    text-decoration: none;
    background-color: #ffffff;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.bento-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    z-index: 2;
    opacity: 0.8;
    transition: var(--transition);
}

.bento-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.bento-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background-color: #f1f5f9;
}

.bento-fallback img {
    max-width: 40%;
    opacity: 0.2;
    filter: grayscale(100%);
}

/* --- KATEGORİ ADI --- */
.bento-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bento-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    transform: translateY(10px);
}

.bento-cat5 .bento-title {
    font-size: 2rem;
}

/* --- HOVER EFEKTLERİ --- */
.bento-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.bento-card:hover::before {
    opacity: 1;
    background: linear-gradient(to top, rgba(5, 160, 212, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
}

.bento-card:hover .bento-img {
    transform: scale(1.05);
}

.bento-card:hover .bento-title {
    transform: translateY(0);
}

/* ====================================================
   MOBİL
   ==================================================== */
@media (max-width: 991.98px) {
    .bento-grid-container {
        display: none;
    }

    .bento-mobile-swipe {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 10px 0 20px 0;
    }

    .bento-mobile-card {
        height: 180px;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        text-decoration: none;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        background-color: #ffffff;
        box-shadow: var(--shadow-soft);
        transition: var(--transition);
    }

    .bento-mobile-card:nth-child(5) {
        grid-column: span 2;
        height: 250px;
    }

    .bento-mobile-card::before {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
        z-index: 2;
        opacity: 0.8;
    }

    .bento-mobile-card .bento-content {
        position: relative;
        z-index: 3;
        padding: 20px;
        width: 100%;
    }

    .bento-mobile-card .bento-title {
        font-size: 1.1rem;
        color: #ffffff;
        margin: 0;
        font-weight: 700;
        text-transform: uppercase;
    }

    .bento-mobile-card:nth-child(5) .bento-title {
        font-size: 1.5rem;
    }
}