/* ============================================================
   landing.css — Halaman Landing Page (Publik)
   ============================================================ */

/* ---- Hero ---- */
.landing-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 60%, #2563eb 100%);
    color: white;
    padding: 4rem 0 3rem;
}
.landing-hero .hero-logo { height: 64px; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); }
.landing-hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.landing-hero .lead { opacity: 0.85; font-size: 1rem; }

.stat-pill {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(6px);
}
.stat-pill .stat-num { font-size: 2rem; font-weight: 800; }
.stat-pill .stat-label { font-size: 0.78rem; opacity: 0.85; }

/* ---- Dusun Filter Tabs ---- */
.dusun-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; padding: 1rem 0; }
.dusun-tab-btn {
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 6px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.dusun-tab-btn:hover, .dusun-tab-btn.active { border-color: #2563eb; background: #2563eb; color: white; }

/* ---- Result Cards ---- */
.result-section { margin-bottom: 2.5rem; }
.result-section .section-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    border-left: 4px solid #2563eb;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}

.rank-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.15s;
}
.rank-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.rank-card.rank-1 { border-color: #f59e0b; background: #fffbeb; }
.rank-card.rank-2 { border-color: #94a3b8; }
.rank-card.rank-3 { border-color: #f43f5e; background: #fff1f2; }

.rank-circle {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
    flex-shrink: 0;
}
.rank-circle.r1 { background: #fef3c7; color: #92400e; border: 2px solid #f59e0b; }
.rank-circle.r2 { background: #f1f5f9; color: #475569; border: 2px solid #94a3b8; }
.rank-circle.r3 { background: #ffe4e6; color: #9f1239; border: 2px solid #f43f5e; }
.rank-circle.rn { background: #f8fafc; color: #64748b; border: 2px solid #e2e8f0; }

.rank-card .qi-score { font-weight: 700; color: #2563eb; font-size: 0.92rem; }

/* ---- No data ---- */
.empty-state { text-align: center; padding: 3rem 1rem; color: #94a3b8; }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ---- Landing Navbar & Footer ---- */
.landing-navbar { background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.08); padding: 0.75rem 0; }
.landing-navbar .brand-logo { height: 40px; max-width: 120px; object-fit: contain; }
.landing-navbar .brand-name { font-weight: 700; color: #1e293b; font-size: 1rem; }

.landing-footer { background: #1e293b; color: #94a3b8; padding: 2rem 0; font-size: 0.85rem; }
.landing-footer a { color: #60a5fa; }

.badge-dusun { border-radius: 20px; padding: 3px 12px; font-size: 0.72rem; font-weight: 700; }
.badge-dusun.d1 { background: #dbeafe; color: #1d4ed8; }
.badge-dusun.d2 { background: #dcfce7; color: #15803d; }
.badge-dusun.d3 { background: #fef9c3; color: #a16207; }
.badge-dusun.d4 { background: #fce7f3; color: #be185d; }
