/* ============================================================
   Blocktunix Categories — Frontend Styles
   ============================================================ */

.btx-cats-section {
    padding: 0;
    font-family: var(--btx-font, 'Inter', sans-serif);
    color: var(--btx-white, #fff);
}

/* Grid */
.btx-cats-grid {
    display: grid;
    gap: 28px;
}
.btx-cols-1 { grid-template-columns: 1fr; }
.btx-cols-2 { grid-template-columns: repeat(2, 1fr); }
.btx-cols-3 { grid-template-columns: repeat(3, 1fr); }
.btx-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.btx-cat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(91, 127, 255, 0.25);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}
.btx-cat-card:hover {
    border-color: #5B7FFF;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(52, 97, 255, 0.18);
    background: rgba(91, 127, 255, 0.08);
}

/* Thumbnail */
.btx-cat-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #070D24;
    position: relative;
    overflow: hidden;
}
.btx-cat-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 20, 55, 0) 50%, rgba(11, 20, 55, 0.9) 100%);
}

/* Fallback icon when no thumbnail */
.btx-cat-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(91, 127, 255, 0.4);
    font-size: 56px;
    background: linear-gradient(135deg, #070D24 0%, #0B1437 100%);
}

/* View badge */
.btx-cat-views {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(11, 20, 55, 0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    border: 1px solid rgba(91, 127, 255, 0.3);
}
.btx-cat-views i {
    color: #5B7FFF;
    font-size: 11px;
}

/* Body */
.btx-cat-body {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.btx-cat-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.4px;
    line-height: 1.3;
}
.btx-cat-desc {
    color: #B6BDD0;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 18px;
    flex: 1;
}
.btx-cat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(91, 127, 255, 0.15);
    font-size: 13px;
    color: #B6BDD0;
    gap: 12px;
}
.btx-cat-meta i {
    color: #5B7FFF;
    margin-right: 6px;
}
.btx-cat-arrow {
    color: #5B7FFF;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}
.btx-cat-card:hover .btx-cat-arrow { gap: 10px; color: #7d9aff; }

/* Stats banner */
.btx-cat-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(91, 127, 255, 0.06);
    border: 1px solid rgba(91, 127, 255, 0.2);
    border-radius: 16px;
    font-family: var(--btx-font, 'Inter', sans-serif);
}
.btx-cat-stat {
    text-align: center;
}
.btx-cat-stat-value {
    font-size: 40px;
    font-weight: 800;
    color: #5B7FFF;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}
.btx-cat-stat-label {
    color: #B6BDD0;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1100px) {
    .btx-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .btx-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .btx-cols-2, .btx-cols-3, .btx-cols-4 { grid-template-columns: 1fr; }
    .btx-cat-stats { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
    .btx-cat-stat-value { font-size: 32px; }
}
