/* ==========================================
   Bonus Categories - Circle Grid Design
   ========================================== */

.bc-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.bc-grid-inner {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
    align-items: center;
}

/* ----- Item ----- */
.bc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 8px;
    background: transparent;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    outline: none;
}

.bc-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.bc-item:focus-visible {
    outline: 2px solid #7C3AED;
    outline-offset: 2px;
}

/* ----- Circle ----- */
.bc-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #F3F4F6;
    font-size: 22px;
    color: #6B7280;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.bc-circle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
}

.bc-item:hover .bc-circle {
    transform: scale(1.1);
}

/* ----- Title ----- */
.bc-title {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #374151;
    text-align: center;
    transition: color 0.3s ease;
    word-break: break-word;
}

/* ----- Horizontal Scroll on Mobile ----- */
.bc-scroll-mobile {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
}

.bc-scroll-mobile::-webkit-scrollbar {
    display: none;
}

.bc-scroll-mobile > .bc-item {
    flex: 0 0 auto;
    min-width: 100px;
}

/* ----- Responsive: Tablet ----- */
@media (max-width: 1024px) {
    .bc-grid-inner {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ----- Responsive: Mobile ----- */
@media (max-width: 640px) {
    .bc-grid-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .bc-item {
        padding: 12px 6px;
    }

    .bc-circle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }

    .bc-circle svg {
        width: 18px;
        height: 18px;
    }

    .bc-title {
        font-size: 12px;
        margin-top: 6px;
    }
}

/* ----- RTL ----- */
.rtl .bc-grid-inner {
    direction: ltr;
}

.rtl .bc-item {
    direction: rtl;
}

/* ----- Dark Mode ----- */
@media (prefers-color-scheme: dark) {
    .bc-grid {
        background: transparent;
    }

    .bc-item {
        background: #1F2937;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .bc-item:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    }

    .bc-circle {
        background: rgba(255, 255, 255, 0.08);
        color: #D1D5DB;
    }

    .bc-title {
        color: #D1D5DB;
    }
}
