/* ==========================================================================
   Risel – Community Leaderboard CSS
   Design System: Sora + Inter, Modern SaaS, Clean Light Mode Layout
   ========================================================================== */

/* --- MAIN & HERO SECTION --- */
.lb-main {
    padding-bottom: 40px;
}

.lb-hero {
    padding: 12px 0 6px;
    text-align: center;
    position: relative;
}

.lb-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.lb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.lb-hero-heading {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.lb-hero-accent {
    background: linear-gradient(135deg, #d97706 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lb-hero-desc {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 16px;
}

/* --- USER RANK BANNER --- */
.lb-user-banner-section {
    padding: 8px 0 20px;
}

.lb-user-banner-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid rgba(0, 102, 255, 0.2);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.05);
    gap: 16px;
}

.lb-ub-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lb-ub-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #00b4ff);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    flex-shrink: 0;
}

.lb-ub-name {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
}

.lb-ub-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.lb-ub-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lb-ub-stat {
    text-align: right;
}

.lb-ub-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.lb-ub-val {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.val-blue {
    color: var(--primary);
}

/* --- GRID LAYOUT & TABLE --- */
.lb-content-section {
    padding-bottom: 30px;
}

.lb-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.lb-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.lb-table-card {
    grid-column: 1;
}

.lb-xp-card {
    grid-column: 2;
}

.lb-card-header {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.lb-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.lb-card-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Table */
.lb-table-wrapper {
    overflow-x: auto;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.lb-table th {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.lb-table td {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.lb-table tr:last-child td {
    border-bottom: none;
}

.lb-rank-num {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
}

.rank-top1 { color: #d97706 !important; font-size: 16px; }
.rank-top2 { color: #475569 !important; font-size: 15px; }
.rank-top3 { color: #b45309 !important; font-size: 15px; }

.lb-cand-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-cand-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-cand-name {
    font-weight: 700;
    color: var(--text-main);
}

.lb-level-pill {
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
}

.lb-xp-val {
    font-family: 'Sora', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--primary);
}

/* XP Guide Sidebar */
.lb-xp-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.lb-xp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.lb-xp-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-blue { background: rgba(0, 102, 255, 0.08); color: #0066FF; }
.icon-amber { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.icon-emerald { background: rgba(5, 150, 105, 0.08); color: #059669; }
.icon-purple { background: rgba(147, 51, 234, 0.08); color: #9333ea; }
.icon-sky { background: rgba(2, 132, 199, 0.08); color: #0284c7; }

.lb-xp-text {
    flex: 1;
}

.lb-xp-text h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
}

.lb-xp-text p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.lb-xp-pts {
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.lb-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.2);
}

.lb-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* --- FEATURES / BENEFITS SECTION --- */
.lb-features-section {
    padding: 32px 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.lb-section-header-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.lb-section-header-center h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.lb-section-header-center p {
    font-size: 14px;
    color: var(--text-secondary);
}

.lb-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.lb-feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lb-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 102, 255, 0.25);
}

.lb-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.lb-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.lb-feature-card p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* --- SEO SECTION --- */
.lb-seo-section {
    padding: 40px 0;
}

.lb-seo-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.lb-seo-box h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.lb-seo-box p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- FAQ SECTION --- */
.lb-faq-section {
    padding: 40px 0 60px;
}

.lb-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lb-faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.lb-faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.06);
}

.lb-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
}

.lb-faq-icon {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.lb-faq-item.active .lb-faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.lb-faq-ans {
    display: none;
    padding: 0 20px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.lb-faq-item.active .lb-faq-ans {
    display: block;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .lb-grid-layout {
        grid-template-columns: 1fr;
    }

    .lb-table-card,
    .lb-xp-card {
        grid-column: 1;
    }

    .lb-user-banner-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .lb-ub-right {
        width: 100%;
        justify-content: space-between;
    }
}
