/* ============================================================
   META DRIBLES — Visual Gamer/eSports (versão clareada)
   Cores: azul navy iluminado + laranja vibrante do logo
   Totalmente responsivo: mobile, tablet, desktop
   ============================================================ */

:root {
  /* Fundos mais claros e vibrantes */
  --bg-primary: #0d1730;
  --bg-secondary: #182446;
  --bg-card: #1f2c52;
  --bg-card-hover: #283566;
  --border-color: #2d3d6b;
  --border-bright: #4055a3;

  /* Cores de destaque (do logo) */
  --accent-blue: #4c89ff;
  --accent-blue-dark: #2e6bff;
  --accent-blue-deeper: #1a3a8f;
  --accent-orange: #ff7a2e;
  --accent-orange-light: #ffa566;
  --accent-orange-deep: #d44a00;
  --accent-yellow: #ffce3a;
  --accent-green: #36d96b;
  --accent-pink: #ff3b8c;

  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #c4d0f0;
  --text-muted: #8898c0;
  --danger: #ff3b5c;

  /* Sombras e glows */
  --shadow-neon-blue: 0 0 24px rgba(76, 137, 255, 0.55);
  --shadow-neon-orange: 0 0 24px rgba(255, 122, 46, 0.55);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);

  /* Tipografia */
  --font-display: 'Bebas Neue', 'Oswald', 'Impact', sans-serif;
  --font-body: 'Rajdhani', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Fundo com gradientes vibrantes estilo estádio */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(76, 137, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 122, 46, 0.15), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(54, 217, 107, 0.08), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.02) 39px 40px);
  pointer-events: none;
  z-index: -1;
}

/* Linhas decorativas de campo (sutis) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 49.9%, rgba(255,255,255,0.04) 50%, transparent 50.1%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--accent-blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-orange); }

/* ========== Tipografia ========== */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p { line-height: 1.6; color: var(--text-secondary); }

/* ========== Container ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header / Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 23, 48, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(76, 137, 255, 0.5));
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent-blue) 30%, var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-actions .user-name {
  color: var(--text-secondary);
  font-weight: 600;
  margin-right: 6px;
  font-size: 0.95rem;
}

/* ========== Botões ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-bright);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  position: relative;
  min-height: 44px; /* touch friendly */
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(76, 137, 255, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-neon-blue);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5e95ff, var(--accent-blue));
  box-shadow: 0 0 32px rgba(76, 137, 255, 0.75);
}

.btn-orange {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-deep));
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-neon-orange);
  color: #fff;
}

.btn-orange:hover {
  background: linear-gradient(135deg, #ff8d4a, var(--accent-orange));
  box-shadow: 0 0 32px rgba(255, 122, 46, 0.75);
}

.btn-ghost {
  background: transparent;
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; min-height: 36px; }
.btn-block { width: 100%; clip-path: none; border-radius: 6px; }

/* ========== Hero (entrada) ========== */
.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(76, 137, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  z-index: -1;
  animation: floatBg 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 122, 46, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px;
  right: -50px;
  z-index: -1;
  animation: floatBg 10s ease-in-out infinite reverse;
}

@keyframes floatBg {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px); }
}

.hero-logo {
  max-width: min(620px, 90vw);
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(76, 137, 255, 0.45));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-slogan {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  letter-spacing: 4px;
  background: linear-gradient(90deg, #fff 0%, var(--accent-orange) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 122, 46, 0.2);
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========== Forms / Cards ========== */
.card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  font-size: 0.95rem;
}

.form-help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(76, 137, 255, 0.25);
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 8px;
  min-height: 1.2em;
}

/* Botões pill de múltipla escolha */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input { display: none; }

.choice span {
  display: inline-block;
  padding: 10px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
  user-select: none;
  min-height: 38px;
}

.choice:hover span {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.choice input:checked + span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 16px rgba(76, 137, 255, 0.5);
}

/* ========== Página de formulário ========== */
.profile-form {
  max-width: 860px;
  margin: 40px auto;
}

.profile-form h2 {
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-form .alert {
  background: rgba(255, 122, 46, 0.12);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange-light);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ========== Página principal de dribles ========== */
.dribles-page { padding: 40px 0 80px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px 0 22px;
  flex-wrap: wrap;
}

.section-title h2 {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.section-title .desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  width: 100%;
}

/* Grade tipo "telas de TV" */
.dribles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.drible-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.drible-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 32px rgba(76, 137, 255, 0.4);
}

.drible-card .capa {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--accent-blue-deeper), var(--bg-secondary));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drible-card .capa .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.drible-card:hover .capa .play-overlay { opacity: 1; }

.drible-card .play-icon {
  width: 64px; height: 64px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(255, 122, 46, 0.7);
  transform: scale(0.8);
  transition: transform 0.25s;
}

.drible-card:hover .play-icon { transform: scale(1); }

.drible-card .play-icon::after {
  content: '';
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}

.drible-card .info {
  padding: 14px 16px 16px;
}

.drible-card .info h4 {
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.drible-card .info .nota {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.drible-card .info .nota.com-nota {
  color: var(--accent-yellow);
}

.recomendado-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-deep));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 0 14px rgba(255, 122, 46, 0.7);
}

.dificuldade-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 23, 48, 0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  backdrop-filter: blur(6px);
}

/* ========== Barra de progresso ========== */
.progresso-wrapper {
  margin-top: 60px;
  padding: 28px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.progresso-wrapper h3 {
  margin-bottom: 14px;
  color: var(--accent-blue);
}

.progresso-bar {
  position: relative;
  height: 32px;
  background: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progresso-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-yellow) 50%, var(--accent-green) 100%);
  border-radius: 999px;
  transition: width 0.6s ease;
  box-shadow: 0 0 24px rgba(255, 206, 58, 0.6);
}

.progresso-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 8px;
}

.progresso-stats strong { color: var(--text-primary); }

/* ========== Modal ========== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.modal-backdrop.active { display: flex; }

.modal {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--accent-blue);
  border-radius: 10px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 0 60px rgba(76, 137, 255, 0.4);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--accent-orange);
  background: rgba(255, 122, 46, 0.15);
}

.modal h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal .descricao { margin-bottom: 18px; color: var(--text-secondary); }

.modal .video-area {
  background: var(--bg-secondary);
  border-radius: 8px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  flex-direction: column;
  gap: 8px;
}

.modal .video-area iframe,
.modal .video-area video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Avaliação */
.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.rating-row label {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--accent-blue);
}

.rating-slider {
  flex: 1;
  min-width: 180px;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow), var(--accent-green));
  border-radius: 4px;
  outline: none;
}

.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  border: 3px solid var(--accent-blue);
}

.rating-slider::-moz-range-thumb {
  width: 26px; height: 26px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--accent-blue);
}

.rating-value {
  min-width: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-yellow);
  text-shadow: 0 0 12px rgba(255, 206, 58, 0.5);
}

.history-list {
  list-style: none;
  margin-top: 12px;
}

.history-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 8px;
}

.history-list .data {
  font-family: var(--font-display);
  color: var(--accent-blue);
  letter-spacing: 1px;
}

.history-list .nivel {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.history-list .nivel.bom { background: var(--accent-green); color: #001a05; }
.history-list .nivel.medio { background: var(--accent-yellow); color: #2a1c00; }
.history-list .nivel.ruim { background: var(--danger); color: #fff; }

/* Tabela do admin */
table.admin-tbl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

table.admin-tbl th, table.admin-tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.92rem;
}

table.admin-tbl th {
  background: var(--bg-secondary);
  color: var(--accent-blue);
  font-family: var(--font-display);
  letter-spacing: 1px;
}

table.admin-tbl tr:hover { background: rgba(76, 137, 255, 0.08); }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  color: var(--text-primary);
  padding: 14px 22px;
  border-radius: 6px;
  z-index: 200;
  box-shadow: var(--shadow-neon-blue);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: calc(100vw - 48px);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: var(--danger); box-shadow: 0 0 22px rgba(255, 59, 92, 0.55); }
.toast.success { border-color: var(--accent-green); box-shadow: 0 0 22px rgba(54, 217, 107, 0.55); }

/* Auth pages */
.auth-wrapper {
  max-width: 460px;
  margin: 60px auto;
  padding: 0 20px;
}

.auth-wrapper h2 {
  text-align: center;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-wrapper .auth-switch {
  text-align: center;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ========== TELA DE LOGIN (acesso restrito) ========== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(76, 137, 255, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  top: -150px;
  left: -200px;
  z-index: 0;
  animation: floatBg 8s ease-in-out infinite;
}

.login-screen::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 122, 46, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -150px;
  right: -150px;
  z-index: 0;
  animation: floatBg 10s ease-in-out infinite reverse;
}

.login-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px rgba(76, 137, 255, 0.3), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  border-radius: 14px 14px 0 0;
}

.login-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 24px rgba(76, 137, 255, 0.55));
  animation: float 4s ease-in-out infinite;
}

.login-slogan {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  letter-spacing: 3px;
  background: linear-gradient(90deg, #fff 0%, var(--accent-orange) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.login-aviso {
  font-size: 0.88rem;
  color: var(--accent-orange-light);
  background: rgba(255, 122, 46, 0.1);
  border: 1px solid rgba(255, 122, 46, 0.3);
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.login-form { text-align: left; }
.login-form .form-group { margin-bottom: 16px; }

.login-rodape {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 24px;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .login-box { padding: 28px 22px; border-radius: 10px; }
  .login-logo { max-width: 220px; }
}

/* ========== RESPONSIVO ========== */

/* Tablet: 1024px e abaixo */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .dribles-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  .hero { padding: 30px 20px; }
}

/* Mobile: 768px e abaixo */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Header mais compacto */
  .site-header .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand img { height: 36px; }
  .brand-text { font-size: 1.1rem; letter-spacing: 1.5px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 6px 12px; font-size: 0.78rem; min-height: 36px; }
  .nav-actions .user-name { display: none; }

  /* Hero */
  .hero { min-height: auto; padding: 30px 16px 50px; }
  .hero-slogan { letter-spacing: 2px; margin-top: 8px; }
  .hero-cta { margin-top: 28px; flex-direction: column; width: 100%; max-width: 320px; }
  .hero-cta .btn { width: 100%; }

  /* Cards de drible em 2 colunas */
  .dribles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .drible-card .info { padding: 10px 12px 12px; }
  .drible-card .info h4 { font-size: 0.95rem; letter-spacing: 0.5px; }
  .drible-card .info .nota { font-size: 0.78rem; }
  .recomendado-badge { font-size: 0.62rem; padding: 3px 6px; top: 6px; right: 6px; }
  .dificuldade-badge { font-size: 0.62rem; padding: 2px 6px; top: 6px; left: 6px; }
  .drible-card .play-icon { width: 48px; height: 48px; }
  .drible-card .play-icon::after { border-left-width: 14px; }

  /* Form */
  .card { padding: 18px; border-radius: 8px; }
  .profile-form { margin: 20px auto; }
  .form-group { margin-bottom: 16px; }
  .choice span { padding: 10px 14px; font-size: 0.85rem; }
  .form-input, .form-select, .form-textarea { font-size: 16px; /* evita zoom no iOS */ }

  /* Section titles */
  .section-title { margin: 30px 0 16px; }

  /* Modal full screen no mobile */
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
    padding: 18px;
    padding-top: 50px;
  }
  .modal h3 { font-size: 1.4rem; }
  .modal-close {
    top: 10px;
    right: 10px;
    background: var(--bg-secondary);
    z-index: 5;
  }

  /* Rating row stack no mobile */
  .rating-row { flex-direction: column; align-items: stretch; }
  .rating-slider { width: 100%; }
  .rating-value { font-size: 2rem; }

  /* Progresso */
  .progresso-stats { font-size: 0.85rem; }
  .progresso-wrapper { padding: 18px; margin-top: 36px; }

  /* Histórico */
  .history-list li { flex-direction: column; align-items: flex-start; }

  /* Tabela admin: scroll horizontal */
  table.admin-tbl { font-size: 0.82rem; }
  table.admin-tbl th, table.admin-tbl td { padding: 8px 10px; }

  /* Toast */
  .toast {
    bottom: 12px;
    right: 12px;
    left: 12px;
    text-align: center;
  }
}

/* Mobile bem pequeno: 480px e abaixo */
@media (max-width: 480px) {
  .dribles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .drible-card .info h4 { font-size: 1.05rem; }
  .drible-card .info .nota { font-size: 0.88rem; }
  .recomendado-badge, .dificuldade-badge { font-size: 0.7rem; padding: 4px 8px; }

  .hero-slogan { letter-spacing: 1.5px; }
  .brand-text { display: none; }
}

/* Telas grandes (desktop): margens menores se for ainda maior */
@media (min-width: 1400px) {
  .container { max-width: 1400px; }
}

/* Acessibilidade: respeitar preferência de reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
