/* ============================================
   NEXIROX — Categories Grid Section Styles
   ============================================ */

.nx-categories {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(8, 8, 10, 0.5) 0%, rgba(20, 20, 25, 0.5) 100%);
    border-top: 1px solid rgba(255, 193, 7, 0.1);
    border-bottom: 1px solid rgba(255, 193, 7, 0.1);
}

.nx-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nx-categories__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nx-categories__item:hover {
    transform: translateY(-8px);
}

.nx-categories__circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nx-categories__item:hover .nx-categories__circle {
    border-color: rgba(255, 193, 7, 0.8);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 193, 7, 0.1) 100%);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.nx-categories__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-categories__item:hover .nx-categories__circle img {
    transform: scale(1.1);
}

.nx-categories__icon {
    font-size: 2rem;
    line-height: 1;
}

.nx-categories__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e0e0e0;
    text-align: center;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    word-break: break-word;
}

.nx-categories__item:hover .nx-categories__label {
    color: #ffc107;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .nx-categories {
        padding: 2.5rem 0;
    }

    .nx-categories__grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1.5rem;
    }

    .nx-categories__circle {
        width: 70px;
        height: 70px;
    }

    .nx-categories__label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nx-categories {
        padding: 2rem 0;
    }

    .nx-categories__grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 1rem;
    }

    .nx-categories__circle {
        width: 60px;
        height: 60px;
    }

    .nx-categories__label {
        font-size: 0.7rem;
    }
}
