/* /assets/topdog.css */
:root{
  --bg: #020617;           /* slate-950 */
  --panel: rgba(15,23,42,.6);
  --border: rgba(30,41,59,1);
  --text: #e2e8f0;
  --muted: rgba(148,163,184,1);

  --accent: #6366f1;       /* indigo-500 */
  --accent2: #38bdf8;      /* sky-400 */

  --glow1: rgba(99,102,241,.20);
  --glow2: rgba(56,189,248,.10);
}

body{
  background: var(--bg);
  color: var(--text);
}

.td-shell{
  position: relative;
  width: 100%;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 1024px){
  .td-shell{ padding-left: 4rem; padding-right: 4rem; }
}
@media (min-width: 1280px){
  .td-shell{ padding-left: 6rem; padding-right: 6rem; }
}

.td-container{
  margin: 0 auto;
  max-width: 1100px;
}

.td-panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.td-glow{
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.td-glow::before{
  content:"";
  position: absolute;
  top: -10rem;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: var(--glow1);
  filter: blur(60px);
}
.td-glow::after{
  content:"";
  position: absolute;
  bottom: -10rem;
  right: 0;
  width: 520px;
  height: 520px;
  border-radius: 9999px;
  background: var(--glow2);
  filter: blur(60px);
}

/* Wider containers for pages like the homepage */
.td-container-wide{
  margin: 0 auto;
  max-width: 1600px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-title {
  font-size: 2.25rem;
  font-weight: 700;
}

/* Smaller variant for checkout pages */
.site-header.small .site-logo {
  height: 32px;
}

.site-header.small .site-title {
  font-size: 1.5rem;
}

.td-logo {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
}

/* =========================
   HOMEPAGE: force full width
   ========================= */
.td-home,
.td-home * {
  box-sizing: border-box;
}

.td-home .td-container {
  max-width: none !important;
  width: 100% !important;
}

.td-home .td-container-wide {
  max-width: 1800px !important;
  width: 100% !important;
}

.td-home > .td-container,
.td-home > .td-container-wide {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.td-home .home-max {
  max-width: 1800px !important;
  width: 100% !important;
}

/* =========================
   ANIMATIONS — small, impactful
   ========================= */
@keyframes td-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes td-pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.td-animate-in {
  animation: td-fade-in-up 0.5s ease-out forwards;
}
.td-animate-in-1 { animation-delay: 0.05s; opacity: 0; }
.td-animate-in-2 { animation-delay: 0.15s; opacity: 0; }
.td-animate-in-3 { animation-delay: 0.25s; opacity: 0; }
.td-animate-in-4 { animation-delay: 0.35s; opacity: 0; }
.td-animate-in-5 { animation-delay: 0.45s; opacity: 0; }
.td-animate-in-6 { animation-delay: 0.55s; opacity: 0; }

.td-hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.td-hover-lift:hover {
  transform: translateY(-2px);
}

.td-pulse-soft {
  animation: td-pulse-soft 2s ease-in-out infinite;
}

.td-transition {
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.td-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgb(52, 211, 153);
  box-shadow: 0 0 0 rgba(52, 211, 153, 0.7);
  animation: tdPulse 1.1s infinite;
}

@keyframes tdPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.65;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.65;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* =========================
   ✅ HOMEPAGE GRID FIX
   - Make CENTER wider so 3 cards fit on one row
   - Left column NOT sticky (handled in HTML; no sticky class needed)
   ========================= */
.td-3col{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
  align-items: start;
}

/* 3 columns starting at 1024px */
@media (min-width: 1024px){
  .td-3col{
    /* ✅ narrower side columns + smaller gap = wider middle */
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(220px, 300px);
    gap: 2.25rem;
  }
}

/* big screens: still keep middle huge */
@media (min-width: 1536px){
  .td-3col{
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(240px, 320px);
    gap: 2.75rem;
  }
}

.td-left,
.td-center,
.td-right{
  min-width: 0;
}

/* =========================
   ✅ GAME CARD SIZE (slightly shorter so 3-wide looks clean)
   ========================= */
.td-game-card{ height: 330px; }
@media (min-width: 640px){ .td-game-card{ height: 360px; } }
@media (min-width: 1024px){ .td-game-card{ height: 390px; } }
@media (min-width: 1280px){ .td-game-card{ height: 410px; } }
@media (min-width: 1536px){ .td-game-card{ height: 440px; } }

/* =========================
   ✅ FAQ LOWER (MORE GAP)
   ========================= */
.td-faq-spacer{ height: 140px; }
@media (min-width: 640px){ .td-faq-spacer{ height: 180px; } }
@media (min-width: 1024px){ .td-faq-spacer{ height: 230px; } }
@media (min-width: 1280px){ .td-faq-spacer{ height: 260px; } }