/**
 * HyzenPro Category Grid Widget - Dedicated Styles
 * 
 * Dark cards on light background (no mode switching).
 * Mobile-first responsive design.
 */

/* ========================================
   CATEGORY GRID SECTION
   ======================================== */

.hyzen-categories {
    padding: 3rem 1rem;
    background: transparent;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hyzen-categories {
        padding: 4rem 2rem;
    }
}

.hyzen-categories .hyzen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Section Header */
.hyzen-section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .hyzen-section-header {
        margin-bottom: 3rem;
    }
}

.hyzen-section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000000;
    line-height: 1.3;
}

@media (min-width: 480px) {
    .hyzen-section-header h2 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .hyzen-section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .hyzen-section-header h2 {
        font-size: 3rem;
    }
}

.hyzen-section-header p {
    font-size: 0.9375rem;
    color: #525252;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hyzen-section-header p {
        font-size: 1.125rem;
        max-width: 600px;
    }
}

/* Category Grid - Mobile First */
/* NOTE: !important is needed because PHP widget sets inline style for columns */
.hyzen-cat-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr) !important;
    /* Force 2 cols on mobile */
    width: 100%;
}

@media (min-width: 480px) {
    .hyzen-cat-grid {
        gap: 1rem;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Still 2 cols */
    }
}

@media (min-width: 768px) {
    .hyzen-cat-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        /* 3 cols on tablet */
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hyzen-cat-grid {
        /* Desktop: use widget setting by removing !important or setting 4 cols */
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .hyzen-cat-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Category Cards - DARK */
.hyzen-cat-card {
    background: #171717;
    border: 1px solid #262626;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.15);
    min-height: 100px;
}

@media (min-width: 480px) {
    .hyzen-cat-card {
        padding: 1.25rem;
        gap: 0.5rem;
        border-radius: 1rem;
    }
}

@media (min-width: 768px) {
    .hyzen-cat-card {
        padding: 1.5rem;
        min-height: 120px;
    }
}

.hyzen-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.25);
    border-color: #404040;
}

/* Category Icon */
.hyzen-cat-icon {
    width: 2rem;
    height: 2rem;
    background: #262626;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .hyzen-cat-icon {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.625rem;
    }
}

@media (min-width: 768px) {
    .hyzen-cat-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.75rem;
    }
}

.hyzen-cat-card:hover .hyzen-cat-icon {
    background: #404040;
}

.hyzen-cat-icon svg {
    width: 1rem;
    height: 1rem;
    color: #ffffff;
}

@media (min-width: 480px) {
    .hyzen-cat-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

@media (min-width: 768px) {
    .hyzen-cat-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Category Name */
.hyzen-cat-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #ffffff;
    line-height: 1.3;
    word-break: break-word;
}

@media (min-width: 480px) {
    .hyzen-cat-name {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .hyzen-cat-name {
        font-size: 1rem;
    }
}

/* Category Count */
.hyzen-cat-count {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hyzen-cat-count {
        font-size: 0.875rem;
    }
}