/* 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; }
}


/* ===== v2.2: multi-entry note, explore chips, after-comment popup ===== */
.hcg-multinote,.hcg-daily-multinote{background:#F0FFF7;border:1.5px solid #0BDA6E;border-radius:10px;padding:8px 12px;font-size:13.5px;font-weight:700;color:#06301C;margin-top:10px;line-height:1.45;animation:hcgSoftGlow 2.4s ease-in-out infinite}
.hcg-daily-multinote{background:rgba(34,255,136,.08);border-color:rgba(34,255,136,.45);color:#CFFBE4}
@keyframes hcgSoftGlow{0%,100%{box-shadow:0 0 0 rgba(11,218,110,0)}50%{box-shadow:0 0 12px rgba(11,218,110,.4)}}
.hcg-explore{margin-top:12px}
.hcg-explore-title{font-size:13px;font-weight:700;color:#CFE0FF;margin-bottom:8px}
.hcg-chips{display:flex;flex-wrap:wrap;gap:8px}
.hcg-chip{display:inline-block;background:rgba(255,255,255,.08);border:1.5px solid rgba(255,255,255,.25);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:700;color:#fff;text-decoration:none;transition:transform .15s ease,background .2s ease}
.hcg-chip:hover{background:rgba(255,255,255,.18);transform:translateY(-2px);color:#fff}
.hcg-chip:active{transform:scale(.94)}
.hcg-pop{position:fixed;left:12px;right:12px;bottom:14px;z-index:99999;max-width:430px;margin:0 auto;background:linear-gradient(150deg,#06281A,#0B4D2E);border:2px solid #22FF88;border-radius:18px;padding:16px 15px 14px;color:#EAFFF4;box-shadow:0 0 24px rgba(34,255,136,.45),0 14px 40px rgba(0,0,0,.35);animation:hcgPopIn .45s cubic-bezier(.2,.9,.3,1.2) both;font-size:14px}
@keyframes hcgPopIn{from{opacity:0;transform:translateY(40px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
.hcg-pop-x{position:absolute;top:8px;right:11px;background:none;border:none;color:#7FBFA0;font-size:19px;cursor:pointer;padding:4px;line-height:1}
.hcg-pop-title{font-size:16px;font-weight:800;padding-right:24px}
.hcg-pop-note{font-size:13px;color:#B9E8CF;margin-top:4px;line-height:1.5}
.hcg-pop-list{margin-top:11px;display:flex;flex-direction:column;gap:7px}
.hcg-pop-a{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.07);border:1px solid rgba(34,255,136,.25);border-radius:11px;padding:9px 11px;text-decoration:none;color:#EAFFF4;font-size:13.5px;font-weight:600;line-height:1.35}
.hcg-pop-a:hover,.hcg-pop-a:active{background:rgba(34,255,136,.15);color:#EAFFF4}
@media(prefers-reduced-motion:reduce){.hcg-pop{animation:none}.hcg-multinote,.hcg-daily-multinote{animation:none}}


/* ===== v2.2.2: force-hide email/website/cookies fields (Astra-proof) ===== */
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent,
p.comment-form-email,
p.comment-form-url,
.ast-comment-formwrap .comment-form-email,
.ast-comment-formwrap .comment-form-url,
.ast-row .comment-form-email,
.ast-row .comment-form-url{display:none !important}
/* Astra grid: let the name field take full width once email/url are gone */
.ast-comment-formwrap .comment-form-author,
.ast-row .comment-form-author{width:100% !important;max-width:100% !important;flex:1 1 100% !important}


/* ===== v2.3.0: plugin owns the whole comment form layout (theme-grid-proof) ===== */
#commentform,
.ast-comment-formwrap{display:block !important;width:100% !important}
#commentform .ast-row,
.ast-comment-formwrap .ast-row{display:block !important;width:100% !important;margin:0 !important}
#commentform p,
#commentform .hcg-extra{float:none !important}
#commentform .hcg-extra{display:block !important;width:100% !important;max-width:100% !important;flex:1 1 100% !important;clear:both;margin-top:6px}
#commentform .hcg-extra *{box-sizing:border-box}
#commentform .hcg-field{display:block !important;width:100% !important;max-width:100% !important;margin:0 0 15px !important;padding:0 !important}
#commentform .hcg-field label{display:block;font-weight:700;font-size:14.5px;margin:0 0 6px;color:#1c2430;line-height:1.4}
#commentform .hcg-field input[type=text],
#commentform .hcg-field select,
#commentform textarea{display:block;width:100% !important;max-width:100% !important;padding:12px 14px;border:1.5px solid #d7dcea;border-radius:12px;font-size:15px;line-height:1.4;background:#fff;color:#1c2430;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
#commentform .hcg-field input[type=text]:focus,
#commentform .hcg-field select:focus,
#commentform textarea:focus{border-color:#3D5AFE;box-shadow:0 0 0 3px rgba(61,90,254,.12)}
#commentform textarea{min-height:130px;resize:vertical}
#commentform .hcg-terms{display:block !important;width:100% !important;margin:2px 0 14px !important}
#commentform .hcg-terms label{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.5;font-weight:500}
#commentform .hcg-terms input[type=checkbox]{margin-top:3px;width:17px;height:17px;flex-shrink:0}
#commentform .form-submit{margin-top:4px}
#commentform .form-submit input[type=submit],
#commentform #submit{width:100%;background:#3D5AFE;color:#fff;font-weight:700;font-size:16px;border:none;border-radius:999px;padding:14px 20px;cursor:pointer;transition:transform .12s ease,opacity .15s ease}
#commentform #submit:active{transform:scale(.98)}
@media(min-width:640px){#commentform .form-submit input[type=submit],#commentform #submit{width:auto;min-width:220px}}
