/* ═══════════════════════════════════════
   FF Additional Categories — v1.0.2
   Auto-populated grid by listing count.
   Desktop: grid + "View All" text link.
   Mobile: grid hidden, single CTA button shown.
   ═══════════════════════════════════════ */

/* ─── Wrapper ─── */
.ff-addcat {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── Header ─── */
.ff-addcat__header {
    text-align: center;
    margin-bottom: 24px;
}

.ff-addcat__title {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 8px;
}

.ff-addcat__divider {
    width: 50px;
    height: 3px;
    background: #3b4f6e;
    margin: 0 auto;
    border-radius: 2px;
}

/* ─── Grid (desktop + tablet) ─── */
.ff-addcat__grid {
    display: grid;
    gap: 10px;
}

.ff-addcat__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ff-addcat__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ff-addcat__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.ff-addcat__grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.ff-addcat__grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ─── Desktop View All link ─── */
.ff-addcat__view-all {
    text-align: center;
    margin-top: 16px;
}

.ff-addcat__view-all-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
    padding: 7px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ff-addcat__view-all-link:hover {
    background-color: #f7f8fc;
    border-color: #cbd5e0;
    color: #1e3a5f;
}

/* ─── Mobile CTA — hidden by default ─── */
.ff-addcat__mobile {
    display: none;
}

.ff-addcat__mobile-cta {
    display: block;
    text-align: center;
    padding: 16px 24px;
    background-color: #1e3a5f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ff-addcat__mobile-cta:hover {
    background-color: #2d4a6f;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   Card Style: Pill (default) — COMPACT
   ═══════════════════════════════════════ */
.ff-addcat--pill .ff-addcat__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    min-height: 36px;
    background-color: #f7f8fc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ff-addcat--pill .ff-addcat__item:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.ff-addcat--pill .ff-addcat__name {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
    line-height: 1.3;
}

.ff-addcat--pill .ff-addcat__count {
    font-size: 11px;
    font-weight: 500;
    color: #718096;
    background: #e2e8f0;
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   Card Style: Card (with icon) — COMPACT
   ═══════════════════════════════════════ */
.ff-addcat--card .ff-addcat__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background-color: #f7f8fc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ff-addcat--card .ff-addcat__item:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ff-addcat--card .ff-addcat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    color: #3b4f6e;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.ff-addcat--card .ff-addcat__item:hover .ff-addcat__icon {
    background: #cbd5e0;
}

.ff-addcat--card .ff-addcat__icon svg {
    width: 16px;
    height: 16px;
}

.ff-addcat--card .ff-addcat__name {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 2px;
    line-height: 1.3;
}

.ff-addcat--card .ff-addcat__count {
    font-size: 11px;
    font-weight: 500;
    color: #718096;
}

/* ═══════════════════════════════════════
   Card Style: Minimal (text only) — COMPACT
   ═══════════════════════════════════════ */
.ff-addcat--minimal .ff-addcat__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    transition: padding-left 0.2s ease;
}

.ff-addcat--minimal .ff-addcat__item:hover {
    padding-left: 8px;
}

.ff-addcat--minimal .ff-addcat__item:last-child {
    border-bottom: none;
}

.ff-addcat--minimal .ff-addcat__name {
    font-size: 13px;
    font-weight: 500;
    color: #1e3a5f;
    transition: color 0.2s ease;
}

.ff-addcat--minimal .ff-addcat__item:hover .ff-addcat__name {
    color: #3b4f6e;
}

.ff-addcat--minimal .ff-addcat__count {
    font-size: 11px;
    color: #a0aec0;
}

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .ff-addcat__grid--cols-5,
    .ff-addcat__grid--cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .ff-addcat__grid--cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    /* Hide grid and desktop view-all on mobile */
    .ff-addcat__grid {
        display: none;
    }

    .ff-addcat__view-all {
        display: none;
    }

    /* Show the CTA button on mobile */
    .ff-addcat__mobile {
        display: block;
    }
}