/* =========================================================
   SIDARSA — HOME PAGE (Desa Sarwodadi)
   Hero countdown & dashboard dengan Dominasi Biru Telur Asin
   File: assets/css/index.css
   ========================================================= */

.site-main.container { max-width: 1440px !important; }

/* HERO COUNTDOWN */
.intro-section { margin: 0 0 28px; }
.intro-header-flex {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(0, 2fr);
    grid-template-areas: "art title" "art timer" "art clock";
    align-items: center;
    column-gap: 22px;
    row-gap: 12px;
    min-height: 230px;
    padding: 28px 34px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 83% 12%, rgba(255,255,255,.85), transparent 38%),
        radial-gradient(ellipse at 8% 5%, rgba(190,242,239,.45), transparent 34%),
        linear-gradient(135deg, #e0f7f6 0%, #f0fdfd 45%, #d1fae5 100%);
    box-shadow: 0 12px 30px rgba(13, 110, 113, .08);
}
.intro-header-flex::before,
.intro-header-flex::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
.intro-header-flex::before {
    width: 120%;
    height: 100px;
    left: -8%;
    bottom: -47px;
    border-radius: 50% 48% 0 0;
    transform: rotate(-3deg);
    background: linear-gradient(90deg, #0d9488 0%, #06b6d4 45%, #059669 100%);
    opacity: .92;
}
.intro-header-flex::after {
    width: 110%;
    height: 75px;
    left: -4%;
    bottom: -48px;
    border-radius: 50% 45% 0 0;
    transform: rotate(2deg);
    background: linear-gradient(90deg, #2dd4bf 0%, #38bdf8 46%, #34d399 100%);
    opacity: .82;
}
.countdown-art {
    grid-area: art;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
}
.countdown-art-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(94px, 13vw, 150px);
    aspect-ratio: 1;
    border-radius: 50%;
    color: #fff;
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    background: linear-gradient(145deg, #0f766e, #0d9488 55%, #047857);
    border: 7px solid rgba(255,255,255,.8);
    box-shadow: 0 12px 25px rgba(13, 148, 136, .22), inset 0 2px 0 rgba(255,255,255,.45);
}
.intro-copy { grid-area: title; min-width: 0; }
.countdown-heading {
    color: #134e4a;
    font-size: clamp(1.05rem, 2vw, 1.65rem);
    font-weight: 850;
    letter-spacing: -.45px;
    line-height: 1.25;
    margin: 0;
}
.countdown-heading .heading-accent { color: #0d9488; }
.countdown-date { display: block; margin-top: 4px; color: #334155; font-size: .93rem; font-weight: 650; }
.intro-countdown-inline { display: contents; }
.countdown-badge-label { display: none; }
.countdown-inline-timer {
    grid-area: timer;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 12px 8px;
    color: #1e293b;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.98);
    border-radius: 22px;
    box-shadow: 0 5px 16px rgba(13, 148, 136, .06);
    text-align: center;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    line-height: 1.15;
    padding: 0 5px;
}
.countdown-unit + .countdown-unit { border-left: 1px solid #ccfbf1; }
.countdown-unit strong {
    color: #0d9488;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    font-weight: 900;
    letter-spacing: -.8px;
    font-variant-numeric: tabular-nums;
}
.countdown-unit:nth-child(even) strong { color: #0284c7; }
.countdown-unit span { margin-top: 4px; font-size: .75rem; font-weight: 700; color: #475569; }
.live-timestamp-box {
    grid-area: clock;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
    padding: 9px 18px;
    color: #134e4a;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 650;
    text-align: center;
}
.live-timestamp-box i { color: #0d9488; }

/* SECTION HEADINGS */
.stat-section, .calon-section { margin-bottom: 32px; }
.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 14px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 850;
    letter-spacing: -.35px;
    line-height: 1.25;
    margin: 0 0 14px;
}
.section-heading-row .section-title { margin: 0; }
.section-title i { color: #0d9488; font-size: 1.25em; }
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 600;
}
.last-updated i { color: #0d9488; }

/* FILTERS */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin: 0 0 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid #ccfbf1;
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow-soft, 0 8px 24px rgba(13,148,136,.06));
}
.filter-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.filter-group label {
    color: #475569;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .65px;
}
.form-select {
    width: 100%;
    min-height: 45px;
    padding: 10px 36px 10px 13px;
    color: #1e293b;
    background-color: #f0fdfd;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 650;
    outline: none;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-select:focus { border-color: #0d9488; background: #fff; box-shadow: 0 0 0 3px rgba(13,148,136,.15); }

/* SUMMARY CARDS */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}
.stat-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    border: 1px solid transparent;
    border-radius: 20px;
    box-shadow: var(--shadow-card, 0 5px 18px rgba(13,148,136,.05));
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card::after {
    content: "";
    position: absolute;
    right: -25px;
    bottom: -42px;
    width: 115px;
    height: 75px;
    border-radius: 50%;
    background: currentColor;
    opacity: .06;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(13,148,136,.09); }
.card-blue, .card-orange { background: linear-gradient(135deg, #e0f2fe, #bae6fd); border-color: #7dd3fc; }
.card-green { background: linear-gradient(135deg, #ccfbf1, #99f6e4); border-color: #5eead4; }
.card-pink { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: #fca5a5; }
.stat-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    font-size: 1.25rem;
}
.icon-blue, .icon-orange { color: #0284c7; }
.icon-green { color: #0d9488; }
.icon-pink { color: #e11d48; }
.stat-content { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.stat-label { color: #475569; font-size: .8rem; font-weight: 700; margin-bottom: 2px; }
.stat-value-group { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.stat-number { color: #0f172a; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-unit { color: #64748b; font-size: .76rem; font-weight: 600; }

/* CANDIDATE CARDS */
.calon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.calon-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    min-width: 0;
    padding: 25px 18px 24px;
    border: 1px solid transparent;
    border-radius: 22px;
    box-shadow: var(--shadow-card, 0 5px 18px rgba(13,148,136,.05));
    transition: transform .2s ease, box-shadow .2s ease;
}
.calon-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: -8%;
    bottom: -55px;
    width: 116%;
    height: 90px;
    border-radius: 50% 50% 0 0;
    opacity: .65;
    pointer-events: none;
}
.calon-card > * { position: relative; z-index: 1; }
.calon-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13,148,136,.1); }
.calon-orange { background: linear-gradient(145deg, #f0fdfd, #ccfbf1); border-color: #99f6e4; }
.calon-orange::after { background: linear-gradient(90deg, #5eead4, #2dd4bf); }
.calon-green { background: linear-gradient(145deg, #f0f9ff, #e0f2fe); border-color: #bae6fd; }
.calon-green::after { background: linear-gradient(90deg, #7dd3fc, #38bdf8); }
.calon-pink { background: linear-gradient(145deg, #fff1f2, #ffe4e6); border-color: #fecdd3; }
.calon-blue { background: linear-gradient(145deg, #f0fdfa, #99f6e4); border-color: #5eead4; }
.calon-avatar-wrap { position: relative; width: clamp(92px, 10vw, 132px); aspect-ratio: 1; flex-shrink: 0; margin-bottom: 2px; }
.calon-avatar-wrap img {
    display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    border: 4px solid #fff; box-shadow: 0 5px 15px rgba(15, 23, 42, .12);
}
.calon-badge {
    position: absolute; top: 0; right: -4px; display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; background: #fff; font-size: 1rem;
    font-weight: 900; box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.badge-orange, .badge-pink { color: #0d9488; }
.badge-green, .badge-blue { color: #0284c7; }
.calon-info { display: flex; flex-direction: column; align-items: center; width: 100%; }
.calon-name { color: #0f172a; font-size: clamp(.9rem, 1.6vw, 1.08rem); font-weight: 850; line-height: 1.3; margin: 0 0 5px; overflow-wrap: anywhere; }
.calon-sub { color: #475569; font-size: .82rem; font-weight: 550; }
.empty-state { padding: 28px 16px; color: var(--text-muted); background: #fff; border-radius: 16px; border: 1px dashed #99f6e4; }

/* TABLET */
@media (max-width: 992px) {
    .intro-header-flex { grid-template-columns: 125px minmax(0, 1fr); column-gap: 15px; padding: 24px; min-height: 210px; }
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .stat-card { padding: 14px 12px; gap: 9px; }
    .stat-icon { flex-basis: 42px; width: 42px; height: 42px; }
}

/* MOBILE */
@media (max-width: 600px) {
    .intro-section { margin-bottom: 24px; }
    .intro-header-flex {
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-areas: "art title" "timer timer" "clock clock";
        gap: 12px;
        min-height: 0;
        padding: 18px 14px 25px;
        border-radius: 20px;
    }
    .countdown-art { align-self: center; }
    .countdown-art-icon { width: 72px; border-width: 4px; font-size: 2.6rem; }
    .countdown-heading { font-size: 1rem; line-height: 1.25; }
    .countdown-date { font-size: .78rem; margin-top: 4px; }
    .countdown-inline-timer { padding: 12px 3px; border-radius: 16px; }
    .countdown-unit { padding: 0 2px; }
    .countdown-unit + .countdown-unit { border-left: 1px solid #ccfbf1; }
    .countdown-unit strong { font-size: clamp(1.25rem, 5vw, 1.7rem); letter-spacing: -.5px; }
    .countdown-unit span { font-size: .68rem; margin-top: 4px; }
    .live-timestamp-box { width: 100%; padding: 9px 8px; font-size: .69rem; gap: 6px; white-space: normal; }
    .section-heading-row { align-items: flex-start; flex-direction: column; margin-bottom: 12px; }
    .section-title { font-size: 1.12rem; gap: 8px; margin-bottom: 12px; }
    .section-heading-row .section-title { margin-bottom: 0; }
    .last-updated { font-size: .68rem; }
    .filter-grid { gap: 10px; padding: 14px; margin-bottom: 12px; border-radius: 17px; }
    .filter-group { gap: 5px; }
    .filter-group label { font-size: .65rem; letter-spacing: .45px; }
    .form-select { min-height: 42px; padding: 9px 26px 9px 10px; font-size: .78rem; border-radius: 10px; }
    .stat-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .stat-card { flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px 10px; border-radius: 16px; }
    .stat-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 1rem; }
    .stat-label { font-size: .67rem; line-height: 1.2; white-space: normal; }
    .stat-value-group { display: block; }
    .stat-number { display: block; font-size: clamp(1rem, 4.2vw, 1.3rem); line-height: 1.2; }
    .stat-unit { display: block; font-size: .65rem; }
    .stat-section, .calon-section { margin-bottom: 26px; }
    .calon-grid { gap: 10px; }
    .calon-card { padding: 17px 9px 19px; gap: 9px; border-radius: 18px; }
    .calon-avatar-wrap { width: clamp(76px, 24vw, 108px); }
    .calon-avatar-wrap img { border-width: 3px; }
    .calon-badge { width: 29px; height: 29px; right: -2px; font-size: .88rem; }
    .calon-name { font-size: .78rem; line-height: 1.25; }
    .calon-sub { font-size: .68rem; line-height: 1.3; }
}
@media (max-width: 360px) {
    .intro-header-flex { grid-template-columns: 62px minmax(0, 1fr); padding: 15px 10px 23px; }
    .countdown-art-icon { width: 60px; font-size: 2.15rem; }
    .countdown-heading { font-size: .91rem; }
    .countdown-unit strong { font-size: 1.15rem; }
    .countdown-unit span { font-size: .61rem; }
    .stat-card { padding: 10px 7px; }
    .stat-number { font-size: .96rem; }
    .calon-name { font-size: .7rem; }
    .calon-sub { font-size: .62rem; }
}