/* ==========================================================================
   GTA 6 Fuskkoder – Vice City Neon Theme
   Bakgrund: #0d0b14 | Kort: #171424 | Neonrosa: #ff2a85 | Cyan: #00e5ff
   ========================================================================== */

:root {
  --bg-main: #0d0b14;
  --bg-card: #171424;
  --bg-card-hover: #1e1a30;
  --bg-elevated: #211c36;
  --accent-pink: #ff2a85;
  --accent-pink-dim: rgba(255, 42, 133, 0.16);
  --accent-cyan: #00e5ff;
  --accent-cyan-dim: rgba(0, 229, 255, 0.14);
  --text-primary: #f5f3ff;
  --text-secondary: #b9b3d4;
  --text-muted: #7f78a1;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 229, 255, 0.28);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.45);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 42, 133, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(0, 229, 255, 0.12) 0%, transparent 40%),
    var(--bg-main);
  color: var(--text-primary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #7ef2ff;
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.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;
}

/* ==========================================================================
   Header / Hero
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(23, 20, 36, 0.92) 0%, rgba(13, 11, 20, 0.95) 100%);
  padding: 24px 16px 28px;
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
}

.logo-gta {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--accent-pink), #ff7eb6, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 42, 133, 0.25);
}

.logo-sub {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-pink-dim);
  border: 1px solid rgba(255, 42, 133, 0.45);
  color: #ffd6e8;
  font-size: 0.82rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}

.site-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.hero-lead {
  margin: 0;
  max-width: 74ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ==========================================================================
   Page Shell & Sticky Side Rails (>= 1440px)
   ========================================================================== */

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.ad-rail {
  display: none;
}

@media (min-width: 1440px) {
  .page-shell {
    max-width: 1460px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1060px) 160px;
    justify-content: center;
    gap: 24px;
    padding: 24px 20px 40px;
  }

  .ad-rail {
    display: block;
  }

  .ad-sticky {
    position: sticky;
    top: 20px;
  }
}

.main-content {
  min-width: 0;
}

/* ==========================================================================
   Search & Filters
   ========================================================================== */

.controls-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.75;
}

.search-input {
  width: 100%;
  padding: 13px 42px 13px 42px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clear-search-btn[hidden] {
  display: none;
}

.clear-search-btn:hover {
  background: var(--accent-pink);
  color: #fff;
}

.filter-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  min-width: 82px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-pink), #c91868);
  border-color: var(--accent-pink);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.35);
}

#platform-filters .filter-btn.active {
  background: linear-gradient(135deg, #00b8d4, #008ca3);
  border-color: var(--accent-cyan);
  color: #06131a;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.32);
}

.results-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.results-count {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Ad Slots (AdSense / Affiliate Ready)
   ========================================================================== */

.ad-slot {
  background: repeating-linear-gradient(
    -45deg,
    rgba(23, 20, 36, 0.95),
    rgba(23, 20, 36, 0.95) 10px,
    rgba(29, 25, 46, 0.95) 10px,
    rgba(29, 25, 46, 0.95) 20px
  );
  border: 1px dashed rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 10px;
  color: var(--text-muted);
  overflow: hidden;
}

.ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.ad-placeholder-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.82;
}

/* Toppbanner: 320x100 mobil -> 728x90 desktop */
.ad-banner-top-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.ad-top-banner {
  width: 320px;
  max-width: 100%;
  height: 100px;
}

@media (min-width: 768px) {
  .ad-top-banner {
    width: 728px;
    height: 90px;
  }
}

/* Skyscrapers: 160x600 */
.ad-skyscraper {
  width: 160px;
  height: 600px;
}

/* Stor rektangel: 336x280 */
.ad-rectangle-wrap {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.ad-large-rectangle {
  width: 100%;
  max-width: 336px;
  height: 280px;
}

/* In-feed-annonskort i rutnätet */
.infeed-ad-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 42, 133, 0.38);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
}

/* ==========================================================================
   Cheats Grid & Cards
   ========================================================================== */

.cheats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .cheats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cheat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.cheat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.38);
  background: var(--bg-card-hover);
}

.cheat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cheat-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.cheat-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-category {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-verified {
  background: rgba(34, 197, 94, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-pending {
  background: var(--accent-pink-dim);
  color: #ff8dc0;
  border: 1px solid rgba(255, 42, 133, 0.35);
}

.cheat-description {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.cheat-codes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(13, 11, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.platform-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 96px;
}

.platform-ps5 {
  color: #7cc4ff;
}

.platform-xbox {
  color: #7ee887;
}

.platform-phone {
  color: var(--accent-pink);
}

.code-sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}

kbd.kbd-token {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 8px;
  line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

kbd.kbd-pending {
  color: #ffc2dc;
  background: rgba(255, 42, 133, 0.1);
  border-color: rgba(255, 42, 133, 0.35);
}

/* Empty State */
.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.reset-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent-pink);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.reset-btn:hover {
  background: #e02073;
}

/* ==========================================================================
   SEO & FAQ Section
   ========================================================================== */

.seo-faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
}

.seo-faq-section h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  color: var(--accent-cyan);
}

.seo-intro p {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.faq-item {
  background: rgba(13, 11, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer & Sticky Bottom Banner (with safe extra padding-bottom)
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(13, 11, 20, 0.96);
  margin-top: 32px;
  padding: 26px 16px 92px; /* Extra padding-bottom för mobil sticky 320x50 */
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 132px; /* Extra padding-bottom för desktop sticky 728x90 */
  }
}

.site-footer.banner-dismissed {
  padding-bottom: 32px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-disclaimer {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sticky-bottom-ad {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(13, 11, 20, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 42, 133, 0.38);
  padding: 6px 12px;
  display: flex;
  justify-content: center;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.65);
}

.sticky-bottom-ad[hidden] {
  display: none;
}

.sticky-bottom-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.ad-bottom-banner {
  width: 320px;
  max-width: calc(100vw - 56px);
  height: 50px;
  padding: 2px 8px;
}

@media (min-width: 768px) {
  .ad-bottom-banner {
    width: 728px;
    height: 90px;
  }
}

.sticky-close-btn {
  position: absolute;
  top: -14px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 42, 133, 0.65);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sticky-close-btn:hover {
  background: var(--accent-pink);
  color: #ffffff;
}

/* ==========================================================================
   Privacy Page (integritet.html)
   ========================================================================== */

.legal-container {
  max-width: 820px;
  margin: 28px auto 48px;
  padding: 0 16px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  margin-top: 0;
  color: var(--accent-cyan);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-card h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: var(--accent-pink);
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-weight: 600;
}
