/**
 * TNT Game House - Xbox Design System (v2)
 * Layout inspirado fielmente no portal oficial Xbox.com
 */

:root {
  --xbox-green: #107c10;
  --xbox-green-bright: #22c55e;
  --xbox-green-glow: rgba(34, 197, 94, 0.35);
  --xbox-green-dark: #0a4d0a;
  
  --bg-main: #0b0f17;
  --bg-surface: #121824;
  --bg-surface-elevated: #1a2234;
  --bg-card: #151c2b;
  
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: var(--xbox-green-bright);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Segoe UI', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── TIPOGRAFIA & BRANDING ── */
.font-orbitron {
  font-family: 'Orbitron', sans-serif;
}

.gradient-title {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── FULL-WIDTH FLUID CONTAINER (XBOX.COM STYLE) ── */
.xbox-container {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 4rem);
  padding-right: clamp(1rem, 3.5vw, 4rem);
}

/* ── NAVBAR XBOX UNIFICADA FULL-WIDTH ── */
.xbox-navbar {
  background: rgba(11, 15, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

@media (max-width: 480px) {
  .xbox-navbar .xbox-container {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
}

.xbox-nav-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.xbox-nav-link:hover, .xbox-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.xbox-nav-link.active {
  color: var(--xbox-green-bright);
  border-bottom: 2px solid var(--xbox-green-bright);
}

/* ── BOTÕES XBOX ── */
.btn-xbox-primary {
  background: var(--xbox-green-bright);
  color: #0b0f17 !important;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 20px var(--xbox-green-glow);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.btn-xbox-primary:hover {
  background: #4ade80;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.btn-mobile-login {
  background: var(--xbox-green-bright);
  color: #0b0f17 !important;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  box-shadow: 0 0 12px var(--xbox-green-glow);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-mobile-login:hover {
  background: #4ade80;
}

.btn-xbox-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-xbox-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .hero-slide .btn-xbox-primary,
  .hero-slide .btn-xbox-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ── HERO SHOWCASE ESTILO XBOX FULL-WIDTH ── */
.xbox-hero-section {
  position: relative;
  min-height: clamp(500px, 60vh, 700px);
  width: 100%;
  background-color: #0b0f17;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-slider-wrap {
  position: relative;
  width: 100%;
  min-height: clamp(500px, 60vh, 700px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 23, 0.98) 0%, rgba(11, 15, 23, 0.88) 45%, rgba(11, 15, 23, 0.25) 100%),
              linear-gradient(0deg, rgba(11, 15, 23, 0.95) 0%, rgba(11, 15, 23, 0) 50%);
  pointer-events: none;
}

/* ── CHIPS E CATEGORIAS ── */
.xbox-chip {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.xbox-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.xbox-chip.active {
  background: var(--xbox-green-bright);
  color: #0b0f17;
  font-weight: 800;
  border-color: var(--xbox-green-bright);
  box-shadow: 0 0 15px var(--xbox-green-glow);
}

/* ── DESTAQUE PRINCIPAL ESTILO XBOX WIRE ── */
.xbox-lead-feature {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  display: block;
}

.xbox-lead-feature:hover {
  transform: translateY(-4px);
  border-color: var(--xbox-green-bright);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 197, 94, 0.2);
}

.lead-img-box {
  width: 100%;
  height: 100%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  background-color: #1a2234;
}

.lead-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.xbox-lead-feature:hover .lead-img-box img {
  transform: scale(1.05);
}

/* ── CARDS DE NOTÍCIAS & ARTIGOS ESTILO XBOX ── */
.xbox-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.xbox-card:hover {
  transform: translateY(-6px);
  border-color: var(--xbox-green-bright);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.15);
}

.xbox-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #1a2234;
}

.xbox-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.xbox-card:hover .xbox-card-img {
  transform: scale(1.06);
}

.xbox-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.xbox-badge-green {
  background: rgba(34, 197, 94, 0.95);
  color: #0b0f17;
}

.xbox-badge-blue {
  background: rgba(0, 112, 209, 0.95);
  color: #ffffff;
}

.xbox-badge-red {
  background: rgba(230, 0, 18, 0.95);
  color: #ffffff;
}

.xbox-badge-gold {
  background: rgba(245, 158, 11, 0.95);
  color: #0b0f17;
}

.xbox-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.xbox-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 0.45rem;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}

.xbox-card:hover .xbox-card-title {
  color: var(--xbox-green-bright);
}

.xbox-card-excerpt {
  color: #cbd5e1 !important;
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  min-height: 2.5rem;
}

.xbox-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
}

/* ── CARDS DE SERVIÇOS & ASSISTÊNCIA TÉCNICA ── */
.service-box {
  background: linear-gradient(145deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-box:hover {
  transform: translateY(-4px);
  border-color: var(--xbox-green-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--xbox-green-bright);
  margin-bottom: 1.15rem;
}

/* ── QUICK O.S. TRACKER BOX ── */
.os-tracker-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(18, 24, 36, 0.98) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

/* ── VIDEO EMBED CONTAINER ── */
.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── ARTICLE CONTENT STYLING (ALTO CONTRASTE & LEITURA CONFORTÁVEL) ── */
.article-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #f1f5f9 !important;
}

.article-body p,
.article-body span,
.article-body div,
.article-body li,
.article-body td,
.article-body th {
  color: #f1f5f9 !important;
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body h1, 
.article-body h2, 
.article-body h3, 
.article-body h4, 
.article-body h5, 
.article-body h6 {
  font-family: 'Segoe UI', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #ffffff !important;
  margin-top: 2.5rem;
  margin-bottom: 1.1rem;
  line-height: 1.3;
}

.article-body h2 {
  font-size: 1.7rem;
  border-left: 4px solid var(--xbox-green-bright);
  padding-left: 1rem;
  color: #ffffff !important;
}

.article-body h3 {
  font-size: 1.35rem;
  color: #ffffff !important;
}

.article-body strong, 
.article-body b {
  color: #ffffff !important;
  font-weight: 800;
}

.article-body a {
  color: #4ade80 !important;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: #86efac !important;
}

.article-body blockquote {
  background: rgba(34, 197, 94, 0.08);
  border-left: 4px solid #22c55e;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  color: #f8fafc !important;
  font-style: italic;
}

.article-body blockquote * {
  color: #f8fafc !important;
}

.article-body code {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #c4b5fd !important;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: monospace;
}

.article-body img {
  border-radius: 1rem;
  margin: 2rem 0;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.75rem;
  color: #f1f5f9 !important;
}

.article-body li {
  margin-bottom: 0.6rem;
  color: #f1f5f9 !important;
}

/* ── FOOTER XBOX ── */
.xbox-footer {
  background: #06090f;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

/* ── MENU MOBILE OFFCANVAS ── */
#mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  background: #0d121f;
  border-right: 1px solid var(--border-subtle);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
  z-index: 9999;
  overflow-x: hidden;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

#mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  #mobile-menu-drawer,
  #mobile-menu-backdrop,
  #btn-open-mobile-menu {
    display: none !important;
  }
}

/* ── SCROLLBAR CUSTOM ── */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--xbox-green);
}

/* ── BOTÃO FLUTUANTE ASSISTENTE IA (ROBÔ) ── */
.floating-ai-robot {
  position: fixed;
  bottom: 24px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5), 0 0 15px rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-ai-robot:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.7), 0 0 20px rgba(34, 197, 94, 0.5);
}

.floating-ai-robot .robot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: robot-pulse-ring 2.5s infinite;
  pointer-events: none;
}

@keyframes robot-pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

@media (max-width: 640px) {
  .floating-ai-robot {
    bottom: 20px;
    left: 16px;
    width: 48px;
    height: 48px;
  }
}

