﻿/* =========================================================
   GRID
   ========================================================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}


/* =========================================================
   CARD
   ========================================================= */

.category-card {
    position: relative;
    height: 170px;
    overflow: hidden;
    border-radius: 16px;
    background: radial-gradient( circle at 85% 20%, rgba(255, 49, 88, 0.17), transparent 35% ), linear-gradient( 135deg, #191c23 0%, #0d0f14 100% );
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


    .category-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
    }


/* =========================================================
   IMAGEM
   ========================================================= */

.category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
}


.category-card:hover .category-image {
    transform: scale(1.08);
    filter: brightness(0.72);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(7, 8, 11, 0.95) 0%, rgba(7, 8, 11, 0.73) 42%, rgba(7, 8, 11, 0.24) 75%, rgba(7, 8, 11, 0.08) 100% );
    transition: background 0.3s ease;
}


.category-card:hover .category-overlay {
    background: linear-gradient( 90deg, rgba(7, 8, 11, 0.97) 0%, rgba(7, 8, 11, 0.78) 45%, rgba(255, 49, 88, 0.12) 100% );
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.category-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 22px;
}


/* =========================================================
   ÍCONE
   ========================================================= */

.category-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ff4e6d;
    background: rgba(255, 49, 88, 0.12);
    border: 1px solid rgba(255, 49, 88, 0.17);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}


    .category-icon i {
        font-size: 19px;
    }


.category-card:hover .category-icon {
    transform: scale(1.07);
    color: #ffffff;
    background: #ff3158;
}


/* =========================================================
   TEXTO
   ========================================================= */

.category-info {
    min-width: 0;
    flex: 1;
}


    .category-info h3 {
        margin: 0 0 5px;
        overflow: hidden;
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


    .category-info span {
        color: #989da8;
        font-size: 11px;
        font-weight: 500;
    }


/* =========================================================
   SETA
   ========================================================= */

.category-arrow {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}


    .category-arrow i {
        font-size: 14px;
    }


.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}


.category-arrow:hover {
    background: #ff3158;
    color: #ffffff;
}


/* =========================================================
   SKELETON
   ========================================================= */

.category-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}


.category-skeleton {
    height: 170px;
    border-radius: 16px;
    background: linear-gradient( 90deg, #13161c 25%, #1c2027 50%, #13161c 75% );
    background-size: 200% 100%;
    animation: categorySkeletonLoading 1.4s infinite;
}


@keyframes categorySkeletonLoading {

    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1150px) {

    .categories-grid,
    .category-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .categories-grid,
    .category-skeleton-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    .category-card,
    .category-skeleton {
        height: 135px;
    }


    .category-content {
        padding: 17px;
    }


    .category-icon {
        width: 39px;
        height: 39px;
    }


    .category-info h3 {
        font-size: 15px;
    }


    .category-arrow {
        opacity: 1;
        transform: none;
    }
}
