/* =====================================================================
   global.css
   Reset + tipografia + layout base + utilitários
   ===================================================================== */

/* 1) Reset / box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* 2) Root variables (colors, spacing) */
:root{
  --bg:#f4f7fb;
  --card-bg: #ffffff;
  --accent: #00ff00;        /* verde brilhante usado no site */
  --accent-dark: #00c200;
  --muted: #6b7280;
  --text: #111827;
  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 6px 18px rgba(20,20,30,0.06);
  --glass: rgba(28,28,28,0.8);
}

/* 3) Body */
html,body{
  height:100%;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  background-color: #121212;
}

/* 4) Page container */
.container{
  width: 94%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 0;
}

/* 5) Header / logo area (top of page) */
.header {
  display:flex;
  align-items:center;
  gap:18px;
  padding: 10px 0 18px;
  justify-content: center;
}
.header .logo {
  width:72px;
  height:72px;
  flex: 0 0 72px;
}
.header .title {
  font-size:1.4rem;
  font-weight:700;
  color: #fff
}
.header .subtitle {
  color: var(--muted);
  font-size:0.95rem;
  margin-top:4px;
}

/* 6) Hero / headline */
.hero {
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.85));
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display:flex;
  gap:20px;
  align-items:center;
  margin-bottom:18px;
}
.hero .hero-left {
  flex: 1;
}
.hero .hero-right {
  flex: 0 0 320px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero h1 {
  font-size:1.35rem;
  margin-bottom:6px;
}
.hero p.lead {
  color:var(--muted);
  font-size:0.98rem;
}

/* 7) Game cards grid (3 per row on desktop) */
.grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom:18px;
}
.card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.card .thumb {
  width:100%;
  aspect-ratio: 16/9;
  object-fit:cover;
  display:block;
}
.card .card-body {
  padding:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-direction: column;
  gap: 5px;
}
.card .card-title {
  font-weight:700;
  font-size:1rem;
}
.card .card-cta {
  background: var(--accent);
  color:rgb(255, 255, 255);
  padding:8px 24px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  font-size:1.2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* 8) Ticker / info bar (a barra rolante) */
.info-bar {
  width: 100%;
  overflow: hidden;
  background: var(--glass);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  display:block;
  margin: 8px 0 18px;
  background-color: #2b2b2b;
}
.info-bar .ticker {
  display:inline-flex;
  gap:18px;
  align-items:center;
  white-space:nowrap;
  will-change: transform;
}
.info-item {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  font-size:0.92rem;
}
.info-item .num {
  color: var(--accent);
  font-weight:800;
}

/* 9) Notifications (popups que aparecem e somem) */
.custom-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #DFFFE0;
  color: #083009;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ffffff;
  box-shadow: 0 6px 16px rgba(10,10,20,0.12);
  z-index: 1200;
  display: flex;
  gap:10px;
  align-items:center;
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease, transform .28s cubic-bezier(.2,.9,.25,1);
  white-space: nowrap;
}
.custom-notification.active {
  opacity:1;
  pointer-events:auto;
  transform: translateX(-50%) translateY(0);
}
.custom-notification .signal {
  width:12px;
  height:12px;
  border-radius:50%;
  background: var(--accent-dark);
  box-shadow:0 0 8px rgba(0,255,0,0.18);
  flex:0 0 12px;
}

/* 10) Progress bar */
/* ------------------ PROGRESS BAR PREMIUM ------------------ */

.progress {
    width: 100%;
    height: 40px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 14px 0 20px;
    border: 1px solid #2d2d2d;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
}

/* A barra agora NÃO TEM width no CSS */
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        135deg,
        rgba(0,255,60,1) 0%,
        rgba(0,220,50,1) 40%,
        rgba(0,200,45,1) 100%
    );
    border-radius: 12px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    transition: none;
}

.progress-stripes {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,0.10) 0,
        rgba(255,255,255,0.10) 20px,
        rgba(255,255,255,0.05) 20px,
        rgba(255,255,255,0.05) 40px
    );
    background-size: 200% 200%;
    animation: stripeMove 2.8s linear infinite;
    pointer-events: none;
    z-index: 3;
}


/* listras diagonais */
@keyframes stripeMove {
    0% { background-position: 0 0; }
    100% { background-position: 200% 200%; }
}

/* brilho */
.progress-glow {
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    filter: blur(6px);
    animation: glowMove 2.2s linear infinite;
    z-index: 3;
}

@keyframes glowMove {
    0% { left: -80%; }
    100% { left: 140%; }
}

/* texto */
.progress-label {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
}



.subtitulo {
    color: #fff;
    display: flex;
    justify-content: center;
}


/* 11) Small util classes */
.hidden { display:none !important; }
.flex { display:flex; }
.center { display:flex; align-items:center; justify-content:center; }

/* 12) Media queries */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2,1fr); }
  .hero { flex-direction:column; gap:12px; }
  .hero .hero-right { flex:1 1 auto; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .header .title { font-size:1.05rem; }
  .header .subtitle { display:none; }
  .hero .hero-right { order:2; width:100%; }
  .hero .hero-left { order:1; width:100%; }
  .info-bar { padding:6px; }
  .custom-notification { top:10px; max-width:92vw; left:50%; transform:translateX(-50%) translateY(-8px); }
}

/* 13) Accessibility / focus */
a:focus, button:focus { outline: 3px solid rgba(0,255,0,0.12); outline-offset:2px; border-radius:6px; }


/* ===== Ajustes para ticker e progress bars ===== */

/* Info-bar baseline */
.info-bar {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  padding: 10px 12px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* ticker wrapper and tracks */
.ticker-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
  height: 34px;
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  padding-right: 40px;
}
.ticker-track .info-item {
  display:inline-flex;
  align-items:center;
  gap: 150px;
  font-weight:700;
  color:#fff;
  font-size:15px;
}
.ticker-track .info-item .num {
  color: #00ff3c;
  font-weight:900;
}


.progress-bar,
.progress-fill {
    transition: none !important;
    animation: none !important;
}

/* Barra vermelha quando baixa */
.progress-fill.low-progress {
    background: linear-gradient(
        135deg,
        rgba(255,60,60,1) 0%,
        rgba(220,40,40,1) 40%,
        rgba(200,30,30,1) 100%
    ) !important;
}
