@charset "UTF-8";

/**
 * All Category Page - Apple theme + glass effect
 * Used by: resources/views/all_category.blade.php
 */

/* ============================================================
   PAGE WRAPPER
   ============================================================ */

.nx-all-category-page {
    --all-cat-glass-bg: rgba(255, 255, 255, 0.72);
    --all-cat-glass-border: rgba(255, 255, 255, 0.35);
    --all-cat-glass-blur: 20px;
    font-family: var(--font-system, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    background: var(--modern-surface-secondary, #f2f2f7);
    min-height: 100vh;
    padding: var(--space-6, 1.5rem) 0 var(--space-12, 3rem);
}

@media (min-width: 768px) {
    .nx-all-category-page {
        padding: var(--space-8, 2rem) 0 var(--space-16, 4rem);
    }
}

/* ============================================================
   TITLE – Stylish
   ============================================================ */

.nx-all-category-page .nx-all-category-title {
    font-size: var(--text-2xl, 1.5rem);
    font-weight: 700;
    color: var(--modern-text-primary, #1c1c1e);
    margin-bottom: var(--space-6, 1.5rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.nx-all-category-page .nx-all-category-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 3rem;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary, #0d6efd), transparent);
}

@media (min-width: 768px) {
    .nx-all-category-page .nx-all-category-title {
        font-size: var(--text-3xl, 1.875rem);
        padding-bottom: 0.625rem;
    }

    .nx-all-category-page .nx-all-category-title::after {
        width: 4rem;
        height: 4px;
    }
}

/* ============================================================
   CATEGORY CARD - GLASS
   ============================================================ */

.nx-all-category-page .nx-category-card {
    background: var(--all-cat-glass-bg);
    backdrop-filter: blur(var(--all-cat-glass-blur));
    -webkit-backdrop-filter: blur(var(--all-cat-glass-blur));
    border: 1px solid var(--all-cat-glass-border);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-all-category-page .nx-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.nx-all-category-page .nx-category-card .thumb {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.75rem) var(--radius-lg, 0.75rem) 0 0;
}

.nx-all-category-page .nx-category-card .thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

@media (min-width: 576px) {
    .nx-all-category-page .nx-category-card .thumb img {
        max-height: 160px;
    }
}

@media (min-width: 768px) {
    .nx-all-category-page .nx-category-card .thumb img {
        max-height: 120px;
    }
}

@media (min-width: 992px) {
    .nx-all-category-page .nx-category-card .thumb img {
        max-height: 100px;
    }
}

@media (min-width: 1200px) {
    .nx-all-category-page .nx-category-card .thumb img {
        max-height: 90px;
    }
}

.nx-all-category-page .nx-category-card:hover .thumb img {
    transform: scale(1.03);
}

.nx-all-category-page .nx-category-card .content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    border-top: 1px solid var(--all-cat-glass-border);
}

.nx-all-category-page .nx-category-card .content h5,
.nx-all-category-page .nx-category-card .content a {
    color: var(--modern-text-primary, #1c1c1e);
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.3;
    text-decoration: none;
    margin: 0;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .nx-all-category-page .nx-category-card .content h5,
    .nx-all-category-page .nx-category-card .content a {
        font-size: 0.875rem;
    }
}

.nx-all-category-page .nx-category-card .content a:hover {
    color: var(--primary, #0d6efd);
}

/* ============================================================
   PAGINATION - GLASS
   ============================================================ */

.nx-all-category-page .pagination {
    gap: 0.25rem;
}

.nx-all-category-page .pagination .page-link {
    background: var(--all-cat-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--all-cat-glass-border);
    border-radius: var(--radius-md, 0.5rem);
    color: var(--modern-text-primary, #1c1c1e);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nx-all-category-page .pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
}

.nx-all-category-page .pagination .page-item.active .page-link {
    background: var(--primary, #0d6efd);
    border-color: var(--primary, #0d6efd);
    color: #fff;
}
