/* ════════════════════════════════════════════════
   NUQTA.GG — Components (cards, badges, forms, modals)
   ════════════════════════════════════════════════ */

/* ── Generic card ── */
.card { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--border2); box-shadow: 0 0 24px var(--glow); }

/* ── Hero (featured game) ── */
.hero { position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); min-height: 380px; display: flex; align-items: stretch; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(5,5,15,.98) 0%, rgba(5,5,15,.85) 40%, transparent 100%); }
.hero-content { position: relative; z-index: 2; padding: 36px; max-width: 620px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.15; }
.hero-meta { color: var(--txt2); font-size: .95rem; }
.hero-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }

/* ── Score badge (circular) ── */
.score-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 92px; height: 92px; border-radius: 50%; border: 3px solid currentColor;
  background: var(--bg-card2); flex-shrink: 0; }
.score-badge .score-num { font-size: 2.1rem; line-height: 1; }
.score-badge .score-label { font-size: .68rem; color: var(--txt2); margin-top: 2px; font-family: 'Cairo'; }
.score-badge.lg { width: 130px; height: 130px; }
.score-badge.lg .score-num { font-size: 3rem; }
.score-badge.sm { width: 54px; height: 54px; border-width: 2px; }
.score-badge.sm .score-num { font-size: 1.25rem; }
.score-badge.sm .score-label { display: none; }

/* ── Stats bar ── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; text-align: center; }
.stat .stat-num { font-family: 'Rajdhani'; font-weight: 700; font-size: 2rem; color: var(--brand-neon); }
.stat .stat-label { color: var(--txt2); font-size: .85rem; }

/* ── Game grid + card ── */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.game-card { position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.game-card:hover { border-color: var(--border2); box-shadow: 0 0 24px var(--glow); }
.game-card:hover .gc-cover img { transform: scale(1.06); }
.gc-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-card2); }
.gc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gc-placeholder { width: 100%; height: 100%; display: grid; place-items: center;
  font-family: 'Rajdhani'; font-size: 3.5rem; font-weight: 700; color: var(--brand);
  background: radial-gradient(circle at 50% 40%, rgba(142,0,77,.25), var(--bg-card2)); }
.gc-score { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }
.gc-platform { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  background: rgba(5,5,15,.8); border: 1px solid var(--border); border-radius: 8px;
  padding: 3px 8px; font-size: .72rem; font-weight: 600; }
.gc-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gc-title { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.gc-dev { color: var(--txt2); font-size: .8rem; }
.gc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag { background: rgba(142,0,77,.1); border: 1px solid var(--border); color: var(--txt2);
  border-radius: 6px; padding: 2px 8px; font-size: .72rem; }

/* ── Top-rated ranked list ── */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: flex; align-items: center; gap: 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.rank-row:hover { border-color: var(--border2); }
.rank-num { font-family: 'Rajdhani'; font-weight: 700; font-size: 1.5rem; width: 36px; text-align: center; color: var(--txt3); }
.rank-row.top1 .rank-num { color: #FFD700; } .rank-row.top2 .rank-num { color: #C0C0C0; } .rank-row.top3 .rank-num { color: #CD7F32; }
.rank-thumb { width: 46px; height: 60px; border-radius: 6px; object-fit: cover; background: var(--bg-card2); flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { height: 6px; border-radius: 3px; background: var(--bg-card2); overflow: hidden; margin-top: 5px; }
.rank-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-neon)); }
.rank-score { font-family: 'Rajdhani'; font-weight: 700; font-size: 1.4rem; }

/* ── Critic cards ── */
.critics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.critic-card { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center; transition: border-color .2s, box-shadow .2s; }
.critic-card:hover { border-color: var(--border2); box-shadow: 0 0 24px var(--glow); }
.critic-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px; border: 2px solid var(--border2); background: var(--bg-card2); }
.critic-logo.placeholder { display: grid; place-items: center; font-weight: 900; font-size: 1.6rem; color: var(--brand-neon); }
.critic-name { font-weight: 700; }
.critic-type { color: var(--txt3); font-size: .78rem; }
.critic-stats { display: flex; justify-content: center; gap: 18px; margin-top: 10px; }
.critic-stats b { font-family: 'Rajdhani'; font-size: 1.2rem; color: var(--brand-neon); display: block; }
.critic-stats span { font-size: .72rem; color: var(--txt2); }
.verified { display: inline-block; color: var(--score-green); font-size: .76rem; margin-top: 6px; }

/* ── Game page layout ── */
.game-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.score-panel { position: sticky; top: 80px; background: var(--bg-card);
  border: 1px solid var(--border2); border-radius: var(--radius); padding: 22px; text-align: center; }
.panel-title { font-weight: 900; font-size: 1.1rem; margin-bottom: 14px; }
.platforms-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.plat-pill { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: .82rem; }

/* ── Review cards ── */
.review-card { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.review-card:hover { border-color: var(--border2); }
.rc-head { display: flex; align-items: center; gap: 12px; }
.rc-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border2); background: var(--bg-card2);
  display: grid; place-items: center; font-weight: 700; color: var(--brand-neon); flex-shrink: 0; }
.rc-name { font-weight: 700; flex: 1; }
.rc-quote { color: var(--txt); margin: 12px 0; line-height: 1.7; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; color: var(--txt3); font-size: .82rem; }

/* ── Score breakdown bars ── */
.breakdown { display: flex; flex-direction: column; gap: 8px; }
.bd-row { display: grid; grid-template-columns: 140px 1fr 44px; align-items: center; gap: 12px; }
.bd-name { font-size: .85rem; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-track { height: 10px; border-radius: 5px; background: var(--bg-card2); overflow: hidden; }
.bd-fill { height: 100%; border-radius: 5px; }
.bd-fill.score-green { background: var(--score-green); }
.bd-fill.score-yellow { background: var(--score-yellow); }
.bd-fill.score-red { background: var(--score-red); }
.bd-val { font-family: 'Rajdhani'; font-weight: 700; text-align: center; }

/* ── User reviews ── */
.dist-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; text-align: start; }
.dist-row { display: grid; grid-template-columns: 60px 1fr 44px; align-items: center; gap: 10px; font-size: .82rem; }
.dist-track { height: 8px; background: var(--bg-card2); border-radius: 4px; overflow: hidden; }
.dist-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-neon)); }
.ureview { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }
.ureview-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ureview-user { font-weight: 700; }

/* ── Forms ── */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--txt); padding: 11px 14px; border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--border2); box-shadow: 0 0 12px var(--glow); }
.textarea { resize: vertical; min-height: 90px; }
.char-counter { font-size: .76rem; color: var(--txt3); text-align: end; margin-top: 4px; }
.form-card { background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius); padding: 22px; }

/* ── Star rating ── */
.stars { display: flex; flex-direction: row-reverse; gap: 4px; justify-content: center; }
.stars input { display: none; }
.stars label { font-size: 1.8rem; color: var(--txt3); cursor: pointer; transition: color .15s; }
.stars label:hover, .stars label:hover ~ label,
.stars input:checked ~ label { color: var(--brand-neon); }
.score-preview { text-align: center; font-family: 'Rajdhani'; font-weight: 700; font-size: 1.4rem; margin-top: 8px; }

/* ── Toast / alert ── */
.toast { position: fixed; bottom: 90px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--bg-card2); border: 1px solid var(--border2); color: var(--txt);
  padding: 12px 20px; border-radius: var(--radius-sm); z-index: 500; box-shadow: 0 0 24px var(--glow); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4); color: #6ee7b7; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding-block: 36px; background: rgba(10,10,26,.5); }
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { color: var(--txt2); font-size: .85rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--txt2); font-weight: 600; font-size: .9rem; }
.footer-copy { color: var(--txt3); font-size: .82rem; }

/* ── Bottom nav (mobile only) ── */
.bottom-nav { display: none; }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--txt2); font-weight: 600; padding-inline: 8px; }
.pagination a:hover { border-color: var(--border2); color: var(--txt); }
.pagination .current { background: rgba(142,0,77,.15); border-color: var(--border2); color: var(--brand-neon); }

/* ── Search ── */
.search-box { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 24px; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
.live-results { background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--radius-sm);
  margin-top: 6px; overflow: hidden; }
.live-results a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.live-results a:last-child { border-bottom: none; }
.live-results img { width: 34px; height: 44px; object-fit: cover; border-radius: 4px; }
