
/* =========================================
   PB ALFA BPS SULBAR
   LIGHT MODERN DESIGN SYSTEM
   ========================================= */

:root {
    --blue: #1769aa;
    --blue-dark: #124c7c;
    --blue-soft: #eaf4fc;

    --green: #68b449;
    --green-dark: #267c46;
    --green-soft: #edf8ef;

    --orange: #f39222;
    --orange-soft: #fff4e6;

    --background: #f8fafc;
    --surface: #ffffff;
    --text: #18263b;
    --muted: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;

    --radius: 16px;
    --shadow: 0 4px 20px rgba(17, 52, 84, .045);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(23, 105, 170, .4);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

h1, h2, h3 {
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(25px, 4vw, 36px);
}

h2 {
    font-size: clamp(20px, 3vw, 27px);
}

p {
    line-height: 1.75;
}

img {
    max-width: 100%;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    max-width: 1200px;
    margin: auto;
    min-height: 72px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    min-width: 0;
}

.site-brand:hover {
    color: var(--text);
}

.site-brand-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 15px;
    font-weight: 800;
}

.site-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.site-brand-text strong {
    font-size: 17px;
    font-weight: 800;
}

.site-brand-text small {
    font-size: 10px;
    letter-spacing: .045em;
    color: var(--muted);
    font-weight: 600;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    color: var(--text);
}

.site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0 4px;
}

.site-nav.is-open {
    display: flex;
}

.nav-link {
    display: block;
    padding: 10px 13px;
    border-radius: 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.nav-account {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-user {
    padding: 6px 9px;
    color: var(--muted);
    font-size: 12px;
}

.logout-form {
    margin: 0;
}

/* =========================================
   LAYOUT / KARTU
   ========================================= */

.site-main {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 28px 18px 55px;
    min-height: 65vh;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--shadow);
}

.site-main .card h1:first-child,
.site-main .card h2:first-child {
    margin-top: 0;
}

.placeholder {
    display: grid;
    place-items: center;
    min-height: 140px;
    padding: 24px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    background: #f1f5f9;
    color: var(--muted);
    text-align: center;
}

/* =========================================
   TOMBOL
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--blue);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: background .15s ease,
                box-shadow .15s ease;
}

.btn:hover {
    background: var(--blue-dark);
    color: white;
}

.btn:disabled,
button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-outline {
    background: white;
    color: var(--blue);
    border-color: #cbdceb;
}

.btn-outline:hover {
    background: var(--blue-soft);
    color: var(--blue-dark);
}

.btn-orange {
    background: var(--orange);
    color: #42230a;
}

.btn-orange:hover {
    background: #e18214;
    color: #42230a;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* =========================================
   FORM
   ========================================= */

.field {
    margin-bottom: 18px;
}

.field label,
label.form-label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 8px;
}

.site-main input:not([type="radio"]):not([type="checkbox"]),
.site-main select,
.site-main textarea {
    max-width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;
    padding: 11px 12px;
    color: var(--text);
}

.site-main input:not([type="radio"]):not([type="checkbox"]),
.site-main textarea {
    width: 100%;
}

.site-main input:focus,
.site-main select:focus,
.site-main textarea:focus {
    border-color: var(--blue);
    outline: 2px solid rgba(23, 105, 170, .1);
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--blue);
}

.error {
    color: var(--danger);
}

/* =========================================
   STATUS / PESAN
   ========================================= */

.alert-success {
    background: var(--green-soft);
    border: 1px solid #b5dfbe;
    color: #166534;
    border-radius: 11px;
    padding: 13px 17px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    border-radius: 11px;
    padding: 13px 17px;
    margin-bottom: 20px;
}

/* =========================================
   PENYESUAIAN HALAMAN LAMA
   ========================================= */

.site-main .player-item,
.site-main .match-card,
.site-main .cash-item,
.site-main .gallery-admin-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.site-main .match-team.winner {
    background: var(--green-soft);
    border-color: #b5dfbe;
}

.site-main .match-edit,
.site-main .cash-edit {
    background: var(--blue-soft);
    color: var(--blue);
}

.site-main .cash-summary-card.main {
    background: var(--blue-soft);
    border-color: #c8dff0;
}

.site-main .cash-summary-card.main .cash-summary-value {
    color: var(--blue-dark);
}

.site-main .cash-income {
    color: var(--green-dark);
}

.site-main .cash-expense {
    color: #c36d10;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    padding: 28px 20px;
    background: white;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.site-footer strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 4px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (min-width: 800px) {
    .site-header-inner {
        flex-wrap: nowrap;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav,
    .site-nav.is-open {
        display: flex;
        flex-basis: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding: 0;
        gap: 3px;
    }

    .nav-link {
        padding: 9px 12px;
    }

    .site-main {
        padding: 38px 24px 70px;
    }
}

@media (max-width: 480px) {
    .site-header-inner {
        min-height: 64px;
        padding: 10px 16px;
    }

    .site-brand-icon {
        width: 39px;
        height: 39px;
    }

    .site-main {
        padding: 20px 14px 45px;
    }

    .card {
        padding: 18px 15px;
    }

    .nav-account {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================
   LANDING PAGE PB ALFA
   ========================================= */

.home-stack {
    display: grid;
    gap: 28px;
}

.home-section {
    min-width: 0;
}

/* HERO */

.home-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: center;
    padding: clamp(24px, 5vw, 58px);
    border-radius: 23px;
    border: 1px solid #dcebf5;
    background: linear-gradient(
        120deg,
        #eaf4fc 0%,
        #ffffff 60%,
        #edf8ef 100%
    );
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 50px;
    background: white;
    border: 1px solid #d6e8f5;
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
}

.hero-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.hero-heading {
    margin: 20px 0 17px;
    max-width: 660px;
    color: #163b5d;
    font-size: clamp(33px, 5vw, 59px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.12;
}

.hero-heading span {
    color: var(--blue);
}

.hero-copy p {
    max-width: 510px;
    color: #536579;
    line-height: 1.85;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    aspect-ratio: 5 / 4;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(104,180,73,.16),
            transparent 38%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(23,105,170,.13),
            transparent 42%
        ),
        #f0f5f9;
    border: 2px dashed #b9cedf;
}

.hero-visual-inner {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 22px;
    text-align: center;
}

.hero-visual-icon {
    width: 67px;
    height: 67px;
    border: 1px solid #d3e1ed;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: white;
    color: var(--blue);
}

.hero-visual-title {
    font-weight: 700;
    color: #50677d;
}

.hero-visual-note {
    font-size: 12px;
    color: var(--muted);
}

/* SECTION HEADER */

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.section-eyebrow {
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.section-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin: 7px 0 0;
    color: #173b60;
}

.section-description {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 0;
}

.section-more {
    font-weight: 700;
    font-size: 13px;
}

/* TENTANG KAMI */

.home-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

.about-copy {
    margin: 0;
    white-space: pre-line;
    line-height: 1.9;
    color: #526174;
}

.about-features {
    display: grid;
    gap: 10px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e9eef4;
    font-weight: 650;
}

.about-feature-marker {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.marker-blue {
    background: var(--blue);
}

.marker-green {
    background: var(--green);
}

.marker-orange {
    background: var(--orange);
}

/* RANKING */

.home-rankings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.ranking-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfcfe;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    flex-shrink: 0;
    border-radius: 13px;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 800;
    font-size: 18px;
}

.rank-1 .rank-number {
    background: var(--orange-soft);
    color: #bd6b08;
}

.rank-2 .rank-number {
    background: var(--blue-soft);
    color: var(--blue);
}

.rank-3 .rank-number {
    background: var(--green-soft);
    color: var(--green-dark);
}

.rank-details {
    flex: 1;
    min-width: 0;
}

.rank-name {
    font-weight: 750;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.rank-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.rank-score {
    flex-shrink: 0;
    text-align: right;
}

.rank-score strong {
    display: block;
    color: var(--blue-dark);
    font-size: 18px;
    font-weight: 800;
}

.rank-score small {
    color: var(--muted);
    font-size: 10px;
}

/* GALERI */

.home-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gallery-tile {
    display: grid;
    place-items: center;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 13px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.gallery-tile:hover img {
    transform: scale(1.025);
}

.gallery-placeholder {
    color: #94a3b8;
    text-align: center;
    font-size: 12px;
    padding: 12px;
}

.gallery-placeholder span {
    display: block;
    font-size: 24px;
    margin-bottom: 7px;
}

/* RESPONSIVE HOME */

@media (min-width: 800px) {
    .home-hero {
        grid-template-columns: 1.15fr 1fr;
    }

    .home-about {
        grid-template-columns: 1.4fr 1fr;
    }

    .home-rankings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ranking-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .rank-score {
        width: 100%;
        text-align: left;
        padding-left: 63px;
    }

    .home-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-gallery .gallery-tile:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 380px) {
    .home-hero {
        padding: 22px 18px;
    }

    .hero-heading {
        font-size: 31px;
    }

    .ranking-card {
        gap: 9px;
        padding: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
    }
}


/* =========================================
   LOGIN DAN PANEL ADMIN
   ========================================= */

.auth-container {
    max-width: 430px;
    margin: 35px auto 65px;
}

.auth-heading {
    text-align: center;
    margin-bottom: 23px;
}

.auth-heading h1 {
    font-size: 27px;
    margin-bottom: 8px;
}

.auth-heading p {
    color: var(--muted);
    font-size: 13px;
}

.auth-card {
    padding: clamp(22px, 4vw, 32px);
}

.auth-submit {
    width: 100%;
    min-height: 46px;
}

.admin-intro {
    margin-bottom: 25px;
}

.admin-intro h1 {
    margin-bottom: 8px;
}

.admin-intro p {
    color: var(--muted);
}

.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit, minmax(215px, 1fr)
    );
    gap: 15px;
}

.admin-menu-card {
    display: block;
    padding: 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: border-color .15s ease,
                box-shadow .15s ease;
}

.admin-menu-card:hover {
    border-color: #b4d4ec;
    box-shadow: 0 7px 25px rgba(23,105,170,.08);
}

.admin-menu-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 800;
    margin-bottom: 14px;
}

.admin-menu-card h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.admin-menu-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}
