/* ─── HKC Voting Page — Frontend ──────────────────────────────── */
:root{--hkc-orange:#EA7725;--hkc-yellow:#FFCB04;--hkc-dark:#1E1C2C;--hkc-green:#40AD48;--hkc-red:#D12229;--hkc-purple:#7941A4;--hkc-border:#e1e4e8;--hkc-bg:#f9fafb;--hkc-white:#fff;--hkc-radius:10px;--hkc-shadow:0 2px 8px rgba(0,0,0,.08)}

.hkc-voting-wrap{max-width:960px;margin:0 auto;font-family:'Montserrat',-apple-system,sans-serif;color:var(--hkc-dark)}

/* Header */
.hkc-voting-header{text-align:center;background:var(--hkc-dark);color:#fff;border-radius:var(--hkc-radius);padding:32px 24px;margin-bottom:24px}
.hkc-voting-header__icon{font-size:48px;margin-bottom:8px}
.hkc-voting-header h2{margin:0 0 8px;color:var(--hkc-yellow);font-size:26px}
.hkc-voting-header p{margin:0;opacity:.85;font-size:14px}

/* Closed / Empty */
.hkc-voting-closed{text-align:center;background:#fff;border:1px solid var(--hkc-border);border-radius:var(--hkc-radius);padding:48px 32px;box-shadow:var(--hkc-shadow)}
.hkc-voting-closed__icon{font-size:52px;display:block;margin-bottom:12px}
.hkc-voting-closed h3{font-size:22px;margin-bottom:8px}
.hkc-voting-closed p{color:#888;font-size:14px}

/* Timer */
.hkc-voting-timer{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;background:var(--hkc-yellow);border-radius:var(--hkc-radius);padding:16px 24px;margin-bottom:20px}
.hkc-timer-label{font-weight:700;font-size:14px;color:var(--hkc-dark)}
.hkc-timer-blocks{display:flex;align-items:center;gap:4px}
.hkc-timer-block{display:flex;flex-direction:column;align-items:center;background:var(--hkc-dark);color:#fff;border-radius:6px;padding:8px 14px;min-width:56px}
.hkc-timer-block span:first-child{font-size:24px;font-weight:700;line-height:1}
.hkc-timer-block span:last-child{font-size:10px;opacity:.7;text-transform:uppercase;margin-top:2px}
.hkc-timer-sep{font-size:22px;font-weight:700;color:var(--hkc-dark)}

/* Login notice */
.hkc-vote-login-notice{background:#e8f4fd;border:1px solid #b3d9f5;border-radius:var(--hkc-radius);padding:12px 18px;font-size:14px;margin-bottom:16px;text-align:center}
.hkc-vote-login-notice a{color:var(--hkc-orange);font-weight:600}

/* Instructions */
.hkc-voting-instructions{background:#fffbea;border:1.5px solid var(--hkc-yellow);border-radius:var(--hkc-radius);padding:12px 18px;font-size:13px;margin-bottom:24px}

/* Division Section */
.hkc-voting-division{margin-bottom:40px}
.hkc-voting-division__title{display:flex;align-items:center;gap:10px;font-size:20px;color:var(--hkc-dark);margin-bottom:20px;border-bottom:3px solid var(--hkc-yellow);padding-bottom:10px}
.hkc-voting-division__count{font-size:13px;font-weight:400;color:#888;margin-left:auto}
.hkc-division-dot{width:14px;height:14px;border-radius:50%;flex-shrink:0}
.hkc-division-dot--prek-and-me{background:#e65100}
.hkc-division-dot--little-cooks{background:#2e7d32}
.hkc-division-dot--rising-chefs{background:#1565c0}
.hkc-division-dot--bestie-cookoff{background:#6a1b9a}

/* Finalist Grid */
.hkc-finalist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}

/* Finalist Card */
.hkc-finalist-card{background:#fff;border:2px solid var(--hkc-border);border-radius:var(--hkc-radius);overflow:hidden;box-shadow:var(--hkc-shadow);transition:transform .15s,border-color .15s}
.hkc-finalist-card:hover{transform:translateY(-2px);border-color:var(--hkc-orange)}
.hkc-finalist-card--voted{border-color:var(--hkc-green);background:#f8fff9}

/* Photo */
.hkc-finalist-card__photo{position:relative;width:100%;height:200px;overflow:hidden}
.hkc-finalist-card__photo img{width:100%;height:100%;object-fit:cover}
.hkc-finalist-card__voted-overlay{position:absolute;inset:0;background:rgba(64,173,72,.85);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:700}

/* Card Body */
.hkc-finalist-card__body{padding:16px}
.hkc-finalist-card__recipe{margin:0 0 6px;font-size:16px;color:var(--hkc-dark)}
.hkc-finalist-card__child{margin:0 0 2px;font-size:13px;color:#555}
.hkc-finalist-card__org{margin:0 0 10px;font-size:12px;color:#888}
.hkc-finalist-card__story{font-size:12px;color:#666;font-style:italic;margin:0 0 10px;line-height:1.5;border-left:3px solid var(--hkc-yellow);padding-left:10px}
.hkc-finalist-card__video{display:inline-block;font-size:12px;color:var(--hkc-orange);font-weight:600;text-decoration:none;margin-bottom:12px}

/* Vote Count */
.hkc-vote-count{font-size:13px;color:#888;margin-bottom:10px;font-weight:500}
.hkc-vote-count__num{font-size:18px;font-weight:700;color:var(--hkc-orange)}

/* Vote Buttons */
.hkc-vote-btn{display:block;width:100%;padding:12px;border-radius:6px;font-size:14px;font-weight:700;font-family:inherit;text-align:center;cursor:pointer;border:none;transition:opacity .15s;box-sizing:border-box}
.hkc-vote-btn--active{background:var(--hkc-orange);color:#fff}
.hkc-vote-btn--active:hover{opacity:.88}
.hkc-vote-btn--done{background:#edfaf0;color:var(--hkc-green);border:2px solid var(--hkc-green);cursor:default}
.hkc-vote-btn--used{background:#f5f5f5;color:#aaa;cursor:default;border:2px solid #e0e0e0}
.hkc-vote-btn--loading{background:#ccc;color:#fff;cursor:wait}

/* Admin: voting admin layout */
.hkc-voting-admin-grid{display:grid;grid-template-columns:340px 1fr;gap:20px;align-items:start}
@media(max-width:860px){.hkc-voting-admin-grid{grid-template-columns:1fr}}
.hkc-voting-setup,.hkc-voting-results{background:#fff;border:1px solid var(--hkc-border);border-radius:var(--hkc-radius);padding:20px;box-shadow:var(--hkc-shadow)}
.hkc-voting-setup h2,.hkc-voting-results h2{margin:0 0 16px;font-size:15px;border-bottom:2px solid var(--hkc-yellow);padding-bottom:8px}

/* Phase rows */
.hkc-phase-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--hkc-border);border-radius:6px;margin-bottom:8px;background:var(--hkc-bg)}
.hkc-phase-row--active{border-color:var(--hkc-green);background:#f0fbf2}
.hkc-phase-row__info{flex:1;min-width:0}
.hkc-phase-row__info strong{display:block;font-size:13px}
.hkc-phase-row__info span{font-size:11px;color:#888}
.hkc-phase-active-badge{background:var(--hkc-green);color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:3px;margin-left:6px}

/* Results */
.hkc-results-stage{margin-bottom:24px}
.hkc-results-stage h3{font-size:15px;font-weight:700;color:var(--hkc-dark);margin:0 0 12px;text-transform:uppercase;letter-spacing:.04em}
.hkc-results-division{margin-bottom:20px}
.hkc-results-division h4{font-size:13px;color:#666;margin:0 0 8px;font-weight:600}
.hkc-results-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.hkc-results-rank{font-size:12px;font-weight:700;color:#888;min-width:24px}
.hkc-results-info{min-width:140px}
.hkc-results-info strong{display:block;font-size:13px}
.hkc-results-info span{font-size:11px;color:#888}
.hkc-results-bar-wrap{flex:1;height:8px;background:var(--hkc-border);border-radius:4px;overflow:hidden}
.hkc-results-bar{height:100%;background:var(--hkc-orange);border-radius:4px;transition:width .4s}
.hkc-results-count{font-size:12px;font-weight:700;color:var(--hkc-dark);min-width:60px;text-align:right}

@media(max-width:540px){
    .hkc-finalist-grid{grid-template-columns:1fr}
    .hkc-timer-block{min-width:44px;padding:6px 10px}
    .hkc-timer-block span:first-child{font-size:18px}
}
