/**
 * Public Hub page + shared rich-text styles for Hub descriptions
 */

.hub-hero {
    background:
        linear-gradient(135deg,
            rgba(15, 83, 45, 0.94) 0%,
            rgba(40, 199, 111, 0.82) 50%,
            rgba(30, 64, 110, 0.88) 100%),
        url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1920&q=80') center/cover no-repeat;
    color: #fff;
    padding: 4.25rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hub-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hub-breadcrumb .breadcrumb {
    justify-content: center;
    background: transparent;
    padding: 0;
    margin: 0 0 1rem;
}

.hub-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.hub-breadcrumb .breadcrumb-item.active,
.hub-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.hub-hero-kicker {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-hero-title {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: clamp(1.85rem, 4.5vw, 2.6rem);
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.hub-hero-desc {
    margin: 0 auto;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
}

.hub-page {
    padding: 3rem 0 4.5rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(40, 199, 111, 0.08), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #eef7f2 100%);
}

.hub-card {
    background: #fff;
    border: 1px solid rgba(15, 83, 45, 0.08);
    border-radius: 16px;
    padding: 1.35rem 1.25rem 1.2rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.hub-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 199, 111, 0.12);
    color: #28c76f;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.hub-card__title {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.hub-card__desc {
    flex: 1 1 auto;
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

.hub-card__desc--empty {
    color: #94a3b8;
    font-style: italic;
}

.hub-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #15803d;
    text-decoration: none;
}

.hub-card__link:hover {
    color: #0f532d;
}

.hub-empty {
    text-align: center;
    max-width: 28rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed rgba(15, 83, 45, 0.2);
}

.hub-empty i {
    font-size: 2.25rem;
    color: #28c76f;
    display: block;
    margin-bottom: 0.65rem;
}

.hub-empty-btn {
    margin-top: 0.75rem;
    border-radius: 999px;
    background: #28c76f;
    color: #fff;
    font-weight: 650;
    padding: 0.6rem 1.2rem;
}

.hub-empty-btn:hover {
    background: #22b463;
    color: #fff;
}

/* Shared rich-text rendering for Hub descriptions */
.hub-richtext p {
    margin: 0 0 0.45rem;
}
.hub-richtext p:last-child {
    margin-bottom: 0;
}
.hub-richtext ul,
.hub-richtext ol {
    margin: 0.25rem 0 0.45rem 1.15rem;
    padding: 0;
}
.hub-richtext a {
    color: #15803d;
    font-weight: 650;
}
.hub-richtext .ql-size-small { font-size: 0.85em; }
.hub-richtext .ql-size-large { font-size: 1.15em; }
.hub-richtext .ql-size-huge { font-size: 1.35em; }
.hub-richtext .ql-font-arial { font-family: Arial, Helvetica, sans-serif; }
.hub-richtext .ql-font-roboto { font-family: Roboto, "Segoe UI", sans-serif; }
.hub-richtext .ql-font-sofia { font-family: Sofia, cursive; }
.hub-richtext .ql-font-slabo { font-family: "Slabo 27px", Georgia, serif; }
.hub-richtext .ql-font-mirza { font-family: Mirza, cursive; }
.hub-richtext .ql-font-inconsolata { font-family: Inconsolata, monospace; }
.hub-richtext strong,
.hub-richtext b { font-weight: 700; }
.hub-richtext em,
.hub-richtext i { font-style: italic; }
.hub-richtext u { text-decoration: underline; }

[data-bs-theme="dark"] .hub-page {
    background: linear-gradient(180deg, #0f172a 0%, #14532d 140%);
}
[data-bs-theme="dark"] .hub-card {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .hub-card__title {
    color: #f1f5f9;
}
[data-bs-theme="dark"] .hub-card__desc {
    color: #cbd5e1;
}
