/* ============================================
   FORUM CATEGORY CARDS - FULL IMAGE DESIGN
   ============================================
   
   Images fill the entire card background.
   Category name overlays on bottom with gradient.
*/

/* Override existing category container for new card layout */
.circles-categories-scroll.enhanced-design {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.circles-categories-scroll.enhanced-design::-webkit-scrollbar {
    display: none;
}

/* Full Image Card Design */
.circles-categories-scroll.enhanced-design .circle-category-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-width: 130px;
    max-width: 150px;
    height: 160px;
    padding: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* The image fills the entire card */
.circles-categories-scroll.enhanced-design .circle-category-avatar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.circles-categories-scroll.enhanced-design .circle-category-avatar {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    border: none;
    box-shadow: none;
    filter: none;
    transition: transform 0.4s ease, filter 0.3s ease;
}

/* Gradient overlay for text readability */
.circles-categories-scroll.enhanced-design .circle-category-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Hover effects */
.circles-categories-scroll.enhanced-design .circle-category-item:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.25);
}

.circles-categories-scroll.enhanced-design .circle-category-item:hover .circle-category-avatar {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Active state with accent border */
.circles-categories-scroll.enhanced-design .circle-category-item.active {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
        0 8px 24px rgba(255, 215, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 215, 0, 0.2);
}

.circles-categories-scroll.enhanced-design .circle-category-item.active::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.circles-categories-scroll.enhanced-design .circle-category-item:active {
    transform: translateY(-2px) scale(0.98);
}

/* Category Name - clean /slash minimal style */
.circles-categories-scroll.enhanced-design .circle-category-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: 'Inconsolata', 'SF Mono', 'Monaco', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 6px;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    transition: all 0.25s ease;
}

.circles-categories-scroll.enhanced-design .circle-category-item:hover .circle-category-name {
    background: rgba(0, 0, 0, 0.75);
    transform: translate(-50%, -50%) scale(1.02);
}

.circles-categories-scroll.enhanced-design .circle-category-item.active .circle-category-name {
    color: #ffd700;
    background: rgba(30, 25, 0, 0.75);
}

/* Thread Count Badge - normal styling, no highlight */
.circles-categories-scroll.enhanced-design .circle-category-count {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    color: #fff;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    font-weight: 600;
    z-index: 2;
}

/* Parent Category Indicator for subcategories */
.circles-categories-scroll.enhanced-design .category-parent-name {
    position: relative;
    z-index: 2;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 14px;
    margin-bottom: -8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Subcategory slightly smaller */
.circles-categories-scroll.enhanced-design .circle-category-item.subcategory {
    min-width: 110px;
    max-width: 130px;
    height: 140px;
}

/* Hide avatar fallback - we don't need it */
.circles-categories-scroll.enhanced-design .circle-category-avatar-fallback {
    display: none !important;
}

/* ============================================
   "ALL" CATEGORY - SPECIAL DESIGN
   ============================================ */

.circles-categories-scroll.enhanced-design .circle-category-item[data-category="all"] {
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.2) 0%,
            rgba(255, 140, 0, 0.15) 50%,
            rgba(255, 90, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.circles-categories-scroll.enhanced-design .circle-category-item[data-category="all"] .circle-category-avatar {
    opacity: 0.3;
    filter: grayscale(0.5);
}

.circles-categories-scroll.enhanced-design .circle-category-item[data-category="all"] .circle-category-name {
    color: #ffd700;
    font-weight: 700;
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */

[data-theme="light"] .circles-categories-scroll.enhanced-design .circle-category-item {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .circles-categories-scroll.enhanced-design .circle-category-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .circles-categories-scroll.enhanced-design .circle-category-item.active {
    border-color: rgba(180, 130, 0, 0.5);
    box-shadow:
        0 8px 24px rgba(180, 130, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .circles-categories-scroll.enhanced-design .circle-category-item.active .circle-category-name {
    color: #b48200;
}

[data-theme="light"] .circles-categories-scroll.enhanced-design .circle-category-item.active::before {
    background: #b48200;
}