/* ========================================
   7Games APK — Base Styles
   Brand: 7Games | Theme: Dark (Green + Gold)
   ======================================== */

/* --- Google Fonts: подключаются через <link> в HTML (без @import) --- */

/* --- CSS Variables --- */
:root {
  --color-dark: #0C120E;
  --color-bg: #121A15;
  --color-surface: #1A241E;
  --color-primary: #22C55E;
  --color-primary-hover: #16A34A;
  --color-accent: #F5C518;
  --color-odds: #F5C518;
  --color-live: #EF4444;
  --color-text: #F2F4F3;
  --color-muted: #8A978F;
  --color-border: #2A3A2F;
  --color-overlay: rgba(12, 18, 14, 0.85);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(34,197,94,0.3);

  --header-h: 60px;
  --sidebar-w: 240px;
  --container-max: 1200px;
  --bottom-bar-h: 60px;

  --z-header: 1000;
  --z-sidebar: 900;
  --z-bottom-bar: 1100;
  --z-cookie: 1200;
  --z-overlay: 850;
  --z-modal: 1300;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent); }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button { cursor: pointer; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

strong { font-weight: 700; }
em { font-style: italic; }

/* --- Table Responsive (OBRIGATÓRIO) --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
}
.table-responsive table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}
.table-responsive th,
.table-responsive td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.table-responsive th {
  background: var(--color-surface);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.table-responsive td {
  font-size: 0.9rem;
}
.table-responsive tr:hover td {
  background: rgba(34,197,94,0.05);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Utility Classes --- */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-muted); }
.text-live { color: var(--color-live); }

.bg-dark { background-color: var(--color-dark); }
.bg-surface { background-color: var(--color-surface); }

.font-mono { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: all var(--transition-base);
  white-space: nowrap;
  min-height: 44px;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #000;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #000;
}

.btn-accent {
  background: var(--color-accent);
  color: #000;
}
.btn-accent:hover {
  background: #E0B30F;
  color: #000;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  min-height: 52px;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-primary { background: rgba(34,197,94,0.15); color: var(--color-primary); }
.badge-accent { background: rgba(245,197,24,0.15); color: var(--color-accent); }
.badge-live { background: rgba(239,68,68,0.15); color: var(--color-live); }
.badge-dark { background: var(--color-surface); color: var(--color-muted); }

/* --- Section --- */
.section {
  padding: 3rem 0;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Lists (content) --- */
.content-list {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}
.content-list li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.content-list li::before {
  content: '•';
  color: var(--color-primary);
  font-weight: 700;
  position: absolute;
  left: -1rem;
}

/* Ordered list */
.content-ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.content-ol li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* --- Selection --- */
::selection {
  background: rgba(34,197,94,0.3);
  color: var(--color-text);
}

/* --- Focus visible --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Anchor scroll offset for fixed header --- */
[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* --- Disclaimer bar --- */
.disclaimer-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
}
.disclaimer-bar a { color: var(--color-primary); }

/* --- 18+ badge icon --- */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-live);
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* --- Flex utils --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* --- Spacing utils --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }

/* --- Text align --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }