/* ========== ROOT COLORS & GLOBAL STYLE ========== */
:root {
  --bg:#0b0f1a;
  --card:#11182b;
  --text:#eaf0ff;
  --muted:#9fb0d3;
  --accent:#6aa2ff;
  --accent2:#26d07c;
  --border:#1e2745;
}
* { box-sizing:border-box; margin:0; padding:0; }
body {
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
}
.container {
  width:100%;
  max-width:1080px;
  margin:0 auto;
  padding:20px;
}

/* ========== NAVBAR ========== */
.nav {
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 20px;
  background:rgba(10,13,24,0.7);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.brand { color:var(--text); text-decoration:none; font-weight:800; }
.nav-right { display:flex; align-items:center; gap:10px; }
.link { color:var(--text); text-decoration:none; }

/* ========== BUTTONS ========== */
.btn {
  border:none;
  padding:10px 16px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.btn.solid { background:var(--accent); color:#081021; }
.btn.ghost { background:transparent; color:var(--text); border:1px solid var(--border); }
.btn.full { width:100%; }
.btn.xl { padding:14px 22px; font-size:1rem; }

/* ========== FORMS ========== */
.card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  box-shadow:0 5px 15px rgba(0,0,0,0.3);
}
.form label { display:block; font-weight:600; margin-bottom:10px; }
.form input, .form textarea {
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  color:#000;
}
.muted { color:var(--muted); }
.center { text-align:center; }

/* Make forms centered on PC screens */
@media (min-width:768px) {
  .card.form {
    max-width:450px;
    margin:30px auto;
  }
}

/* ========== LANDING PAGE HERO (/) ========== */
.hero {
  text-align:center;
  padding:50px 20px;
}
.hero-title { font-size:2rem; font-weight:800; margin-bottom:10px; }
.hero-sub { color:var(--muted); margin-bottom:20px; }
.cta { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:30px; }
.features { display:grid; gap:15px; }
.feat {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:15px;
  padding:15px;
}
.feat-ico { font-size:22px; }
.feat-t { font-weight:700; margin-top:5px; }
.feat-d { color:var(--muted); }

/* 3 columns for hero features on desktop */
@media (min-width:900px) {
  .hero { max-width:800px; margin:auto; }
  .features { grid-template-columns:repeat(3,1fr); }
}

/* ========== HOMEPAGE GAME GRID ========== */
.page-header { margin-bottom:20px; }
.grid {
  display:grid;
  gap:15px;
  grid-template-columns:repeat(2,1fr);
}
@media (min-width:600px) {
  .grid { grid-template-columns:repeat(3,1fr); }
}
@media (min-width:900px) {
  .grid { grid-template-columns:repeat(4,1fr); }
}
@media (min-width:1200px) {
  .grid { grid-template-columns:repeat(5,1fr); }
}
.game-card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  text-decoration:none;
  color:var(--text);
  transition:0.2s;
}
.game-card:hover {
  transform:translateY(-3px);
  box-shadow:0 10px 20px rgba(0,0,0,0.4);
}
.game-card img {
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
}
.game-card .title {
  padding:10px;
  font-weight:700;
  text-align:center;
}

/* ========== GAME PAGE (SHOW) ========== */
.game-title {
  font-size:2rem;
  margin-bottom:15px;
}
.media {
  display:grid;
  gap:15px;
}
@media (min-width:900px) {
  .media { grid-template-columns:2fr 3fr; }
}
.cover {
  width:100%;
  border-radius:15px;
  border:1px solid var(--border);
}
.responsive-yt {
  position:relative;
  padding-bottom:56.25%;
  height:0;
  border-radius:15px;
  overflow:hidden;
}
.responsive-yt iframe {
  position:absolute;
  width:100%;
  height:100%;
  left:0; top:0;
}
.desc {
  margin:20px 0 90px;
  color:var(--muted);
  line-height:1.6;
}

/* ========== REDEEM BAR (STICKY) ========== */
.redeem-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(11,15,26,0.95) 60%);
  display: flex;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(6px);
}
.redeem-btn{
  width: min(640px, 92vw);
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent2);
  color: #000;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(38,208,124,.35);
}

.redeem-btn:hover { filter: brightness(1.05); }

/* --- OAuth button block above forms --- */
.oauth { 
  max-width: 520px; 
  margin: 10px auto 8px; 
}

.btn.google {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  font-weight: 700;
}
.btn.google:hover { 
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.g-ico { width: 18px; height: 18px; margin-right: 8px; }

/* separator "or" */
.oauth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
  justify-content: center;
  margin: 10px auto 14px;
  max-width: 520px;
}
.oauth-sep::before, .oauth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.oauth-sep span {
  padding: 0 6px;
  opacity: .9;
}

/* keep forms nicely sized on laptop/desktop */
@media (min-width: 768px) {
  .card.form { max-width: 520px; margin: 16px auto 24px; }
}

/* --- Welcome Section Styling --- */
.welcome-box {
  margin: 20px auto 30px;
  text-align: center;
}

.welcome-box h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

.welcome-box h1 span {
  color: var(--accent); /* username highlighted */
}

.coins-info {
  margin-top: 8px;
}

.coin-tag {
  display: inline-block;
  margin-top: 5px;
  padding: 6px 14px;
  background: #1a2338;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-weight: 600;
  color: #fff;
}

/* Mobile friendly adjustments */
@media (min-width: 768px) {
  .welcome-box h1 {
    font-size: 2.2rem;
  }

  .coin-tag {
    font-size: 1rem;
    padding: 8px 18px;
  }
}

.alert-error {
  background: rgba(255, 70, 70, 0.15);
  border: 1px solid rgba(255, 70, 70, 0.4);
  color: #ff6b6b;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
}

.alert-success {
  background: rgba(0, 255, 120, 0.15);
  border: 1px solid rgba(0, 255, 120, 0.4);
  color: #00ffa2;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: -350px; /* Start hidden */
  background-color: #ff4d4d;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-weight: 500;
  z-index: 9999;
  transition: right 0.5s ease;
  max-width: 300px;
}

/* Success (green) */
.toast.success {
  background-color: #28a745;
}

/* Show animation */
.toast.show {
  right: 20px;
}

/* Hide when not used */
.hidden {
  display: none;
}

.nav-coins {
  display: flex;
  align-items: center;
  gap: 4px; /* Adjust this for tighter/looser spacing */
}

.nav-coins img,
.nav-coins svg,
.nav-coins span {
  display: inline-flex;
  align-items: center;
}

.nav-coins img {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}

/* R6 Logo Style */
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.logo-accent {
  color: #ffcc00; /* Gold-like color for the 6 */
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}


/* ========== END ========== */
