/* =============================================
   Knowledge Hub - Tag Archive Pages (/discuss/)
   Scuola Forum - 2026
   ============================================= */

/* --- Breadcrumb --- */
.sf-hub-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sf-hub-breadcrumb a {
    color: #6366f1;
    text-decoration: none;
}
.sf-hub-breadcrumb a:hover {
    text-decoration: underline;
}
.sf-hub-breadcrumb__sep {
    color: #64748b;
}

/* --- Zone 1: Hero / Entity Context --- */
.sf-hub-hero {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sf-hub-hero__title {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 0 10px !important;
    color: #c4b5fd !important;
}
.sf-hub-hero__brief {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1;
    padding: 14px 16px;
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid #6366f1;
    border-radius: 0 8px 8px 0;
    margin-bottom: 14px;
}
.sf-hub-hero__brief p {
    margin: 0;
}

/* Stats bar */
.sf-hub-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    font-size: 13px;
    color: #94a3b8;
}
.sf-hub-stats__item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.sf-hub-stats__item svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* --- Zone 2: Quick Answers --- */
.sf-hub-qa {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sf-hub-section-title {
    font-size: 17px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    color: #c4b5fd !important;
}
.sf-hub-section-title svg {
    color: #a78bfa;
    flex-shrink: 0;
}
.sf-hub-qa__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
.sf-hub-qa__item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.15s;
}
.sf-hub-qa__item:hover {
    border-color: rgba(99,102,241,0.4);
}
.sf-hub-qa__question {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    margin: 0 0 6px !important;
    line-height: 1.4 !important;
}
.sf-hub-qa__answer {
    font-size: 13px;
    line-height: 1.65;
    color: #94a3b8;
}
.sf-hub-qa__answer p {
    margin: 0;
}
.sf-hub-qa__thread-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #6366f1;
    text-decoration: none;
}
.sf-hub-qa__thread-link:hover {
    text-decoration: underline;
}

/* --- Zone 3: Thread Listing --- */
.sf-hub-threads {
    margin-bottom: 24px;
}
.sf-hub-threads__header {
    margin-bottom: 4px;
}

/* Tag pills under each thread card */
.sf-hub-thread-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 0 0 12px 56px !important;
    margin-top: -6px;
}
.sf-hub-tag-pill {
    display: inline-block !important;
    font-size: 11px !important;
    padding: 2px 10px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.06) !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    transition: all 0.15s !important;
}
.sf-hub-tag-pill:hover {
    background: rgba(99,102,241,0.15) !important;
    color: #c4b5fd !important;
    border-color: rgba(99,102,241,0.4) !important;
}
.sf-hub-tag-pill--current {
    background: #6366f1 !important;
    color: #fff !important;
    border-color: #6366f1 !important;
}

/* --- Zone 4: Related Topics --- */
.sf-hub-related {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.sf-hub-related__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 10px !important;
    margin-top: 10px;
}
.sf-hub-related__card {
    display: flex !important;
    flex-direction: column !important;
    padding: 14px 16px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.15s !important;
}
.sf-hub-related__card:hover {
    border-color: rgba(99,102,241,0.4) !important;
    background: rgba(99,102,241,0.08) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}
.sf-hub-related__name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    margin-bottom: 2px !important;
}
.sf-hub-related__count {
    font-size: 12px !important;
    color: #94a3b8 !important;
}

/* --- Sidebar additions --- */
.sf-hub-sidebar-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
    margin: 12px 0 !important;
}
.sf-hub-sidebar-stat {
    text-align: center;
}
.sf-hub-sidebar-stat__num {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #c4b5fd !important;
}
.sf-hub-sidebar-stat__label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}
.sf-hub-sidebar-tags {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.sf-hub-sidebar-tag {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: background 0.15s !important;
}
.sf-hub-sidebar-tag:hover {
    background: rgba(255,255,255,0.06) !important;
}
.sf-hub-sidebar-tag__count {
    font-size: 11px !important;
    color: #a78bfa !important;
    background: rgba(99,102,241,0.15) !important;
    padding: 1px 8px !important;
    border-radius: 10px !important;
}

/* --- Mobile responsive --- */
@media (max-width: 768px) {
    .sf-hub-hero__title {
        font-size: 22px !important;
    }
    .sf-hub-stats {
        gap: 10px !important;
        font-size: 12px;
    }
    .sf-hub-related__grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .sf-hub-thread-tags {
        padding-left: 12px !important;
    }
    .sf-hub-sidebar-stats {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}
@media (max-width: 480px) {
    .sf-hub-related__grid {
        grid-template-columns: 1fr !important;
    }
}
