/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-page: #0f172a;        /* quase preto com azul */
  --bg-card: #1e253a;        /* card escuro */
  --bg-card-alt: #1a2133;
  --txt-main: #f8fafc;       /* branco suave */
  --txt-dim: #94a3b8;        /* cinza azulado */
  --accent-1: #38bdf8;       /* azul claro */
  --accent-2: #34d399;       /* verde */
  --accent-3: #facc15;       /* amarelo */
  --accent-badge: #ef4444;   /* vermelho */
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 999px;
  --border-card: rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.05);
  --shadow-card: 0 30px 80px rgba(0,0,0,0.8);
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.6);
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--txt-main);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Containers */
.wrapper {
  max-width: 1280px;
  width: 100%;
  padding: 1.5rem;
  margin: 0 auto;
}

.row-space {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Topbar */
.topbar {
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand-icon {
  background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0f172a 70%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 20px 40px rgba(56,189,248,.4);
  border: 1px solid rgba(255,255,255,0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt-main);
}
.brand-sub {
  font-size: .7rem;
  font-weight: 400;
  color: var(--txt-dim);
}

.menu {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.menu-link {
  font-size: .8rem;
  text-decoration: none;
  color: var(--txt-dim);
  padding: .5rem .75rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: .15s;
}
.menu-link:hover {
  color: var(--txt-main);
  background: rgba(148,163,184,.08);
  border-color: rgba(255,255,255,.07);
}
.menu-link.active {
  color: var(--txt-main);
  background: rgba(56,189,248,.12);
  border-color: rgba(56,189,248,.5);
}

/* Main layout */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media(min-width: 960px) {
  .main-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Cards */
.card {
  background: radial-gradient(circle at 0% 0%,rgba(148,163,184,.08) 0%,rgba(30,37,58,0) 60%), var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
}

.hero-card {
  min-height: 360px;
}

.result-card {
  min-height: 360px;
  background: radial-gradient(circle at 100% 0%,rgba(52,211,153,.08) 0%,rgba(30,37,58,0) 60%), var(--bg-card-alt);
}

/* Badge BETA */
.badge-beta {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-badge);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .35rem .6rem;
  line-height: 1;
  border-radius: var(--radius-full);
  box-shadow: 0 20px 40px rgba(239,68,68,.4);
  border: 1px solid rgba(255,255,255,.2);
}

/* Hero text */
.hero-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--txt-main);
  line-height: 1.2;
  margin-top: 2.5rem;
}
.grad-text {
  background: linear-gradient(90deg,#38bdf8 0%,#34d399 100%);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 600;
}
.hero-desc {
  font-size: .9rem;
  color: var(--txt-dim);
  margin-top: .75rem;
  max-width: 40ch;
}

/* Form */
.predict-form {
  margin-top: 1.5rem;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
}
.field {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
}
.field.full {
  flex-basis: 100%;
}
.field label {
  font-size: .7rem;
  color: var(--txt-dim);
  margin-bottom: .4rem;
  font-weight: 500;
}
.field input {
  background: rgba(15,23,42,.6);
  border: 1px solid var(--border-card);
  color: var(--txt-main);
  font-size: .9rem;
  padding: .8rem .9rem;
  border-radius: var(--radius-lg);
  outline: none;
  transition: .15s;
  box-shadow: var(--shadow-soft);
}
.field input:focus {
  border-color: rgba(56,189,248,.6);
  box-shadow: 0 0 20px rgba(56,189,248,.4);
}

.vs {
  align-self: flex-end;
  font-weight: 600;
  font-size: .8rem;
  padding-bottom: .8rem;
  color: var(--txt-main);
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.5);
  border-radius: var(--radius-full);
  padding: .5rem .75rem;
  line-height: 1;
}

.btn-primary {
  background: radial-gradient(circle at 0% 0%,rgba(56,189,248,.4) 0%,rgba(15,23,42,0) 70%), rgba(56,189,248,.15);
  border: 1px solid rgba(56,189,248,.5);
  color: var(--txt-main);
  font-weight: 600;
  font-size: .9rem;
  padding: .9rem 1rem;
  width: 100%;
  border-radius: var(--radius-lg);
  cursor: pointer;
  line-height: 1.2;
  transition: .15s;
  box-shadow: 0 20px 50px rgba(56,189,248,.4);
}
.btn-primary:hover {
  background: radial-gradient(circle at 0% 0%,rgba(52,211,153,.4) 0%,rgba(15,23,42,0) 70%), rgba(52,211,153,.15);
  border: 1px solid rgba(52,211,153,.5);
  box-shadow: 0 20px 50px rgba(52,211,153,.4);
}

.mini-hint {
  font-size: .7rem;
  color: var(--txt-dim);
  margin-top: .75rem;
  line-height: 1.4;
}
.example-btn {
  background: none;
  border: 0;
  padding: 0 .4rem;
  color: var(--accent-1);
  font-size: .7rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Result card */
.section-title {
  color: var(--txt-main);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Teams row */
.teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.team-col {
  background: rgba(15,23,42,.4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: .75rem .9rem;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.team-col.empate {
  grid-column: 1 / span 3;
  margin-top: .5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
}
.team-name {
  font-size: .8rem;
  color: var(--txt-main);
  font-weight: 600;
  margin-bottom: .4rem;
}
.chance-bar {
  background: rgba(148,163,184,.15);
  border-radius: var(--radius-full);
  width: 100%;
  height: .5rem;
  overflow: hidden;
}
.chance-fill {
  height: 100%;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 20px rgba(0,0,0,.7);
}
.c1 { background: var(--accent-1); }
.c2 { background: var(--accent-2); }
.c3 { background: var(--accent-3); }

.chance-value {
  position: absolute;
  top: .75rem;
  right: .75rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--txt-main);
  text-shadow: 0 2px 4px rgba(0,0,0,.8);
}

.team-vs {
  align-self: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--txt-main);
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-full);
  padding: .5rem .75rem;
  line-height: 1;
}

/* AI box */
.ai-box {
  background: rgba(15,23,42,.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: .9rem 1rem;
  box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 20px 40px rgba(0,0,0,.6);
}
.ai-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.ai-text {
  font-size: .8rem;
  color: var(--txt-main);
  line-height: 1.4;
}

/* Disclaimer */
.disclaimer {
  font-size: .65rem;
  color: var(--txt-dim);
  margin-top: .75rem;
}

/* "Como funciona" section */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

@media(min-width: 720px) {
  .info-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

.info-card {
  background: rgba(30,37,58,.6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.info-icon {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.info-card h3 {
  color: var(--txt-main);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.info-card p {
  color: var(--txt-dim);
  font-size: .8rem;
  line-height: 1.4;
}

/* Recent predictions */
.recent-card {
  background: radial-gradient(circle at 0% 0%,rgba(250,204,21,.08) 0%,rgba(30,37,58,0) 60%), var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}
.recent-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.recent-item {
  background: rgba(15,23,42,.5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: 1rem 1rem .9rem;
  box-shadow: var(--shadow-soft);
}
.recent-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--txt-main);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.recent-chances {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: .7rem;
}
.tag {
  display: inline-block;
  padding: .4rem .6rem;
  line-height: 1;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid transparent;
}
.tag-win {
  background: rgba(56,189,248,.15);
  border-color: rgba(56,189,248,.5);
  color: var(--txt-main);
}
.tag-draw {
  background: rgba(250,204,21,.15);
  border-color: rgba(250,204,21,.4);
  color: var(--txt-main);
}
.tag-lose {
  background: rgba(52,211,153,.15);
  border-color: rgba(52,211,153,.5);
  color: var(--txt-main);
}
.recent-ai {
  color: var(--txt-dim);
  font-size: .75rem;
  line-height: 1.4;
}
.recent-footnote {
  margin-top: 1rem;
  color: var(--txt-dim);
  font-size: .7rem;
  line-height: 1.4;
  text-align: center;
}

/* Footer */
.footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border-card);
  background: rgba(15,23,42,.4);
  box-shadow: 0 -30px 60px rgba(0,0,0,.8);
  padding-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media(min-width:720px) {
  .footer-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

.brand-mini {
  font-size: .9rem;
  font-weight: 600;
  color: var(--txt-main);
  margin-bottom: .5rem;
}
.footer-text {
  font-size: .75rem;
  color: var(--txt-dim);
  line-height: 1.4;
  max-width: 40ch;
}
.footer-text.tiny {
  font-size: .7rem;
  max-width: none;
}
.footer-title {
  color: var(--txt-main);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: .4rem;
}
.footer-links a {
  font-size: .75rem;
  color: var(--txt-dim);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--txt-main);
  text-decoration: underline;
}

.copyright {
  margin-top: 2rem;
  padding: 1rem 1.5rem 2rem;
  font-size: .7rem;
  color: var(--txt-dim);
  text-align: center;
  border-top: 1px solid var(--border-card);
}
