/* Haripriya.AI Comments Guru v2 — front-end styles */
.hcg-extra { margin: 14px 0; }
.hcg-field { margin: 0 0 12px; display: flex; flex-direction: column; gap: 5px; }
.hcg-field label { font-weight: 600; font-size: 14px; }
.hcg-field input[type="text"] {
  padding: 11px 14px; border: 1px solid rgba(20,40,80,.16); border-radius: 10px;
  font-size: 15px; width: 100%; box-sizing: border-box;
}
.hcg-field input:focus { outline: none; border-color: #2b6fff; box-shadow: 0 0 0 3px rgba(43,111,255,.14); }
.hcg-terms { font-size: 14px; margin: 10px 0 4px; }
.hcg-terms label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.hcg-terms input { margin-top: 3px; }
.hcg-terms a { color: #2b6fff; font-weight: 600; }

/* ---- Daily Challenge ---- */
.hcg-daily {
  background: linear-gradient(135deg, #0f1a2c, #1a2a44);
  color: #eaf0fb; border-radius: 18px; padding: 18px 20px; margin: 0 0 22px;
  box-shadow: 0 16px 40px -18px rgba(20,40,80,.5);
}
.hcg-daily-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.hcg-daily-title { font-size: 17px; font-weight: 700; }
.hcg-remind {
  background: #ffc24d; color: #1a1200; border: none; border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .2s;
}
.hcg-remind:hover { transform: translateY(-1px); }
.hcg-remind.is-on { background: #2ec26b; color: #fff; }
.hcg-daily-body { font-size: 15px; }
.hcg-streak-big { font-size: 30px; font-weight: 800; line-height: 1; }
.hcg-stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.hcg-stat b { display: block; font-size: 20px; }
.hcg-stat span { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.hcg-daily-msg { opacity: .95; }
.hcg-done { color: #6ee7a0; font-weight: 700; }
.hcg-risk { color: #ffd27a; font-weight: 700; }
.hcg-daily-mini { margin-top: 12px; font-size: 13px; opacity: .9; display: flex; gap: 14px; flex-wrap: wrap; }
.hcg-daily-mini span b { color: #ffc24d; }

/* ---- Leaderboard ---- */
.hcg-board {
  background: #fff; border: 1px solid rgba(20,40,80,.08); border-radius: 20px;
  padding: 22px; margin: 26px 0; box-shadow: 0 14px 34px -16px rgba(20,40,80,.16);
}
.hcg-board-title { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.hcg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.hcg-tab {
  background: #f1f4fa; border: 1px solid rgba(20,40,80,.08); color: #46536b;
  border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.hcg-tab:hover { background: #e6ecf7; }
.hcg-tab.is-active { background: linear-gradient(135deg, #2b6fff, #1a54d6); color: #fff; border-color: transparent; }

.hcg-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: 18px; }
.hcg-pod { text-align: center; background: #f7f9fd; border: 1px solid rgba(20,40,80,.08); border-radius: 16px; padding: 14px 8px; }
.hcg-pod-1 { order: 2; background: linear-gradient(160deg,#fff8e6,#fdeec0); border-color: #f2d888; padding-top: 20px; }
.hcg-pod-2 { order: 1; }
.hcg-pod-3 { order: 3; }
.hcg-medal { font-size: 24px; }
.hcg-ava { width: 44px; height: 44px; border-radius: 50%; margin: 6px auto; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg,#2b6fff,#1a54d6); }
.hcg-pod-1 .hcg-ava { background: linear-gradient(135deg,#f0a500,#e07b00); width: 52px; height: 52px; }
.hcg-pod-name { font-weight: 700; font-size: 14px; }
.hcg-pod-score { font-size: 13px; color: #46536b; }
.hcg-pod.is-me { outline: 2px solid #2b6fff; }

.hcg-list { list-style: none; margin: 0; padding: 0; }
.hcg-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; }
.hcg-row:nth-child(odd) { background: #f7f9fd; }
.hcg-row.is-me { background: #eaf1ff; outline: 1px solid #2b6fff; }
.hcg-rank { font-weight: 800; color: #9aa7bf; width: 26px; }
.hcg-name { flex: 1; font-weight: 600; font-size: 14px; }
.hcg-ig { color: #2b6fff; font-weight: 500; font-size: 13px; }
.hcg-flame { font-size: 13px; color: #e8930c; font-weight: 700; }
.hcg-score { font-weight: 800; color: #16233b; }
.hcg-empty { text-align: center; padding: 26px; color: #6b7890; }

@media (max-width: 520px) {
  .hcg-podium { grid-template-columns: 1fr 1fr 1fr; }
  .hcg-pod-name { font-size: 12px; }
}

/* ---- v2.1: cascading selects, participate highlight, animated banner ---- */
.hcg-field select {
  padding: 11px 14px; border: 1px solid rgba(20,40,80,.16); border-radius: 10px;
  font-size: 15px; width: 100%; box-sizing: border-box; background: #fff;
}
.hcg-field select:focus { outline: none; border-color: #2b6fff; box-shadow: 0 0 0 3px rgba(43,111,255,.14); }
#hcg_model_wrap { animation: hcg-fade .35s ease both; }
@keyframes hcg-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.hcg-participate {
  margin: 6px 0 14px; font-weight: 700; font-size: 15px; color: #16233b;
  background: linear-gradient(120deg, rgba(255,194,77,.55), rgba(255,194,77,.15));
  display: inline-block; padding: 6px 12px; border-radius: 8px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.hcg-banner {
  position: relative; overflow: hidden; margin: 0 0 16px;
  background: linear-gradient(120deg, #2b6fff, #6a3cff 55%, #e8930c);
  color: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 14px 34px -14px rgba(43,111,255,.55);
  animation: hcg-pulse 2.6s var(--hcg-ease, ease) infinite;
}
.hcg-banner-text { position: relative; z-index: 2; font-weight: 800; font-size: 16px; letter-spacing: .01em; }
.hcg-banner-shine {
  position: absolute; top: 0; left: -60%; width: 45%; height: 100%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); animation: hcg-shine 3s ease-in-out infinite;
}
@keyframes hcg-shine { 0% { left: -60%; } 55%,100% { left: 130%; } }
@keyframes hcg-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.012); } }
@media (prefers-reduced-motion: reduce) {
  .hcg-banner { animation: none; }
  .hcg-banner-shine { display: none; }
  #hcg_model_wrap { animation: none; }
}
