/* ============================================================
   PetroBowl — app.css
   /hub/petrobowl/assets/css/app.css
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg:       #0a0e1a;
  --surface:  #111827;
  --surface2: #1e293b;
  --border:   rgba(255,255,255,0.08);
  --text:     #f1f5f9;
  --muted:    #64748b;
  --accent:   #f97316;
  --green:    #22c55e;
  --red:      #ef4444;
  --blue:     #3b82f6;
  --purple:   #8b5cf6;
  --radius:   14px;
  --font:     'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body { min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; }

/* ── Auth page ────────────────────────────────────────────── */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,.12) 0%, transparent 60%);
}

.auth-wrap { width: 100%; max-width: 400px; }

.brand { text-align: center; margin-bottom: 2rem; }
.brand-icon { width: 64px; height: 64px; background: linear-gradient(135deg,#f97316,#ea580c); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto .75rem; box-shadow: 0 8px 32px rgba(249,115,22,.35); }
.brand-name { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; }
.brand-sub  { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; margin-bottom: 1rem; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.card-sub   { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .4rem; }
.field .hint { font-weight: 400; font-size: .7rem; }
.field input, .field select {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 1rem; padding: .75rem 1rem;
  outline: none; transition: border-color .2s; -webkit-appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field select option { background: var(--surface2); }
.input-code { text-align: center; font-size: 2rem !important; font-weight: 800 !important; letter-spacing: .5rem !important; }

.btn { display: block; width: 100%; padding: .85rem; border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer; border: none; transition: opacity .15s, transform .1s; margin-bottom: .5rem; }
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; }
.btn-ghost   { background: transparent; border: 1px solid var(--border); color: var(--muted); }

.alert { padding: .75rem 1rem; border-radius: 10px; font-size: .875rem; font-weight: 500; margin-bottom: 1rem; }
.alert.error   { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert.success { background: rgba(34,197,94,.15);  border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.alert.hidden  { display: none; }

.footer-badge { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 1.5rem; }

/* ── Player page ─────────────────────────────────────────── */
.player-page { display: flex; flex-direction: column; }

.player-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: .9rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.player-header-left { display: flex; align-items: center; gap: .75rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--team-color, #f97316), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
}
.player-info strong { display: block; font-size: .875rem; line-height: 1.3; }
.player-info span   { font-size: .75rem; color: var(--muted); }
.logout-link { font-size: .75rem; color: var(--muted); text-decoration: none; padding: .35rem .75rem; border: 1px solid var(--border); border-radius: 8px; }

.player-main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 1.75rem 1.25rem 2rem;
  min-height: calc(100vh - 58px);
}

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: .45rem 1rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 1.5rem;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }

.pill-waiting  { background: rgba(100,116,139,.15); border: 1px solid rgba(100,116,139,.3); color: #94a3b8; }
.pill-question { background: rgba(249,115,22,.15);  border: 1px solid rgba(249,115,22,.3);  color: #fb923c; }
.pill-open     { background: rgba(34,197,94,.15);   border: 1px solid rgba(34,197,94,.3);   color: #4ade80; }
.pill-buzzed   { background: rgba(99,102,241,.15);  border: 1px solid rgba(99,102,241,.3);  color: #a5b4fc; }

/* Question card */
.question-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; margin-bottom: 1.5rem; }
.q-label { font-size: .7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .75rem; }
.q-body  { font-size: 1.05rem; line-height: 1.6; font-weight: 500; margin-bottom: 1rem; }
.q-options { display: flex; flex-direction: column; gap: .45rem; }
.q-opt { display: flex; gap: .7rem; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; padding: .65rem .9rem; font-size: .9rem; }
.q-opt-letter { font-weight: 700; color: var(--accent); flex-shrink: 0; }

/* Buzzer */
.buzzer-area { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: auto; }
.buzz-hint { font-size: .85rem; color: var(--muted); text-align: center; }

.waiting-dots { display: flex; gap: 6px; align-items: center; }
.waiting-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite ease-in-out; }
.waiting-dots span:nth-child(2) { animation-delay: .2s; }
.waiting-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.buzz-btn {
  width: 200px; height: 200px; border-radius: 50%; border: none;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  cursor: pointer; outline: none; user-select: none;
  transition: transform .1s, box-shadow .2s;
  -webkit-touch-callout: none;
}
.buzz-btn:active { transform: scale(.92); }

.btn-disabled { background: #1e293b; color: var(--muted); cursor: not-allowed; }
.btn-ready    { background: linear-gradient(135deg,#f97316,#dc2626); animation: buzz-glow 1.5s infinite;
                box-shadow: 0 0 0 12px rgba(249,115,22,.15), 0 0 0 24px rgba(249,115,22,.07); }
.btn-buzzed   { background: linear-gradient(135deg,#6366f1,#7c3aed); cursor: not-allowed;
                box-shadow: 0 0 0 12px rgba(99,102,241,.15); }

@keyframes buzz-glow {
  0%,100% { box-shadow: 0 0 0 12px rgba(249,115,22,.15),0 0 0 24px rgba(249,115,22,.07); }
  50%     { box-shadow: 0 0 0 20px rgba(249,115,22,.2), 0 0 0 36px rgba(249,115,22,.05); }
}

.feedback { padding: .9rem 1.25rem; border-radius: 14px; font-size: .95rem; font-weight: 700; text-align: center; margin-top: .5rem; }
.feedback.hidden    { display: none; }
.feedback-ok   { background: rgba(99,102,241,.15);  color: #a5b4fc; border: 1px solid rgba(99,102,241,.3); }
.feedback-info { background: rgba(59,130,246,.12);  color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.feedback-warn { background: rgba(245,158,11,.12);  color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }

/* ── Admin shared ─────────────────────────────────────────── */
.admin-page { background: #0f172a; }
.topbar { background: #1e293b; border-bottom: 1px solid var(--border); padding: .9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.topbar-title { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.topbar-nav a { color: var(--muted); font-size: .8rem; text-decoration: none; margin-left: 1.25rem; }
.topbar-nav a:hover { color: var(--text); }

.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 55px); }
@media(max-width:768px){ .admin-layout{ grid-template-columns: 1fr; } }

.sidebar { background: #1e293b; border-right: 1px solid var(--border); padding: 1.25rem; }
.sidebar h3 { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .75rem; }
.q-list { list-style: none; }
.q-list li { padding: .6rem .75rem; border-radius: 8px; font-size: .875rem; cursor: pointer; margin-bottom: 2px; display: flex; align-items: center; gap: .5rem; }
.q-list li:hover { background: rgba(255,255,255,.05); }
.q-list li.active { background: rgba(249,115,22,.15); color: var(--accent); font-weight: 600; }
.q-num { width: 22px; height: 22px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }

.admin-content { padding: 1.5rem; overflow-y: auto; }

.acard { background: #1e293b; border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; margin-bottom: 1.25rem; }
.acard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.acard-title { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.ctrl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ctrl-btn { padding: .7rem .5rem; border-radius: 10px; border: 1px solid var(--border); font-size: .8rem; font-weight: 700; cursor: pointer; text-align: center; background: rgba(255,255,255,.04); color: var(--text); transition: opacity .15s; }
.ctrl-btn:active { opacity: .75; }
.ctrl-green  { background: rgba(34,197,94,.12);   border-color: rgba(34,197,94,.3);   color: #4ade80; }
.ctrl-red    { background: rgba(239,68,68,.12);    border-color: rgba(239,68,68,.3);   color: #f87171; }
.ctrl-blue   { background: rgba(59,130,246,.12);   border-color: rgba(59,130,246,.3);  color: #60a5fa; }
.ctrl-orange { background: rgba(249,115,22,.12);   border-color: rgba(249,115,22,.3);  color: var(--accent); }
.ctrl-full   { grid-column: 1/-1; }

.status-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: .25rem; }
.spill { display: inline-flex; align-items: center; gap: 5px; padding: .3rem .75rem; border-radius: 100px; font-size: .75rem; font-weight: 700; }
.spill-on  { background: rgba(34,197,94,.15);  border: 1px solid rgba(34,197,94,.3); color: #4ade80; }
.spill-off { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3); color: #f87171; }
.spill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.buzz-list { list-style: none; }
.buzz-item { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; background: rgba(255,255,255,.04); border-radius: 8px; margin-bottom: 6px; }
.buzz-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.buzz-rank.r1 { background: rgba(250,204,21,.2); color: #fbbf24; border: 1px solid rgba(250,204,21,.4); }
.buzz-rank.r2 { background: rgba(156,163,175,.2); color: #9ca3af; border: 1px solid rgba(156,163,175,.3); }
.buzz-rank.r3 { background: rgba(180,107,70,.2); color: #cd7f32; border: 1px solid rgba(180,107,70,.3); }
.buzz-info { flex: 1; min-width: 0; }
.buzz-name { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buzz-team { font-size: .75rem; color: var(--muted); }
.buzz-actions { display: flex; gap: 5px; flex-shrink: 0; }
.result-btn { padding: .28rem .55rem; border-radius: 6px; border: 1px solid var(--border); font-size: .7rem; font-weight: 700; cursor: pointer; background: none; color: var(--muted); transition: all .15s; }
.result-btn:hover { border-color: rgba(255,255,255,.2); }
.result-btn.ac { background: var(--green); color: #fff; border-color: var(--green); }
.result-btn.aw { background: var(--red);   color: #fff; border-color: var(--red); }

.rank-row { display: flex; align-items: center; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: none; }
.rank-pos  { min-width: 28px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--muted); }
.rank-dot  { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.rank-name { flex: 1; font-size: .9rem; font-weight: 600; }
.rank-pts  { font-size: 1.1rem; font-weight: 800; color: var(--accent); }

.hidden { display: none !important; }


/* ============================================================
   PetroBowl — Adições ao app.css
   Adicione este bloco ao FINAL de:
   /home/u699492069/domains/youduka.com/public_html/hub/petrobowl/assets/css/app.css
   ============================================================ */

/* ── Campos de formulário ─────────────────────────────────── */
.field-hint {
  display: inline-block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: .35rem;
}
.field-err {
  display: block;
  font-size: .78rem;
  color: #fca5a5;
  margin-top: .35rem;
}
.field-ok {
  display: block;
  font-size: .78rem;
  color: #4ade80;
  margin-top: .35rem;
}

/* ── Alert info (enviando...) ─────────────────────────────── */
.alert.info {
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.3);
  color: #93c5fd;
}

/* ── Input code ───────────────────────────────────────────── */
.input-code {
  text-align: center !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: .5rem !important;
  padding: .75rem .5rem !important;
}


/* ============================================================
   PetroBowl — Adição ao app.css: estado de cooldown do botão
   Cole este bloco no FINAL do arquivo:
   public_html/hub/petrobowl/assets/css/app.css
   ============================================================ */

/* Botão em cooldown — fundo amarelo âmbar, contador regressivo */
.btn-cooldown {
  background: linear-gradient(135deg, #d97706, #b45309);
  cursor: not-allowed;
  box-shadow: 0 0 0 12px rgba(217,119,6,.15), 0 0 0 24px rgba(217,119,6,.07);
  animation: cooldown-pulse 1s infinite;
  font-size: 2rem !important;
  font-weight: 900 !important;
}

@keyframes cooldown-pulse {
  0%,100% { box-shadow: 0 0 0 12px rgba(217,119,6,.15), 0 0 0 24px rgba(217,119,6,.07); }
  50%     { box-shadow: 0 0 0 18px rgba(217,119,6,.20), 0 0 0 32px rgba(217,119,6,.05); }
}

