/* === 📌 Base Layout === */

.gaming-page {
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  background: linear-gradient(to bottom, #272626, #262642);
}

.content-wrapper {
  padding: 1rem;
}
html:has(header.gaming-navbar) {
  scroll-padding-top: 100px;
}
.gaming-nav-shortcut {
  position: sticky;
  top: 65px; /* under headeren */
  z-index: 999;
}

/* === 🎮 Hero & Header === */

.gaming-hero-section {
  background: linear-gradient(to bottom, #0f0f0f, #1c1c1c);
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #222;
}

.dark-section {
  background-color: #181818;
  color: #eee;
  padding: 2.5rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid #222;
}

/* === 🧭 Navigasjon === */

.gaming-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0d0d0d;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #222;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gaming-navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* === 🚀 Ny lokal meny kun for gaming-siden === */

.gaming-nav-shortcut {
  background-color: #0d0d0d;
  padding: 0.75rem 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid #222;
}

.gaming-nav-shortcut a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.gaming-nav-shortcut a:hover {
  background-color: #1e1e1e;
  color: #4ea9ff;
}

/* === 🏪 Butikker & Grid === */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.equipment-card {
  background-color: #1c1c1c;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 10px #111;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.shop-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.gaming-store-card {
  background-color: #1c1c1c;
  color: #ddd;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-grid .game-card {
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: center;
  box-shadow: 0 0 10px #111;
  box-sizing: border-box; /* 👈 viktig */
  padding: 0.75rem 1rem; /* 👈 justert padding */
}

.game-grid .game-card h4 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: #4ea9ff;
}

.game-grid .game-card p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.game-grid .game-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
#nyeSpillContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* === 📝 Tips & Guider === */

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tip-card {
  background-color: var(--bg-secondary, #1e1e1e);
  color: #eee;
  border: 1px solid #333;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
  width: 100%;
  padding: 0.75rem; /* Trygg padding uten å forstyrre grid */
}

#tips-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

#tips-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

/* === 🧠 Spillomtaler === */

#anmeldelse-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 0 10px #111;
  height: 100%;
  width: 100%;
  max-width: 250px;
  padding: 0.75rem 1rem; /* Mindre og mer kontrollert */
}

.review-card img.tip-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.review-card h4 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.25rem;
  color: #66ccff;
}

.review-card p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.tip-meta {
  font-size: 0.85rem;
  color: #999;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.highlight {
  font-weight: bold;
  color: var(--accent-color, #ff3366);
}

.review-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.review-content h4 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.25rem;
}

.review-content h4 a {
  color: #66ccff;
  text-decoration: none;
  font-size: 1.1rem;
}

.review-content h4 a:hover {
  text-decoration: underline;
}

.review-content p {
  font-size: 0.95rem;
  color: #ccc;
  flex-grow: 1;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #999;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.review-card,
.tip-card {
  box-sizing: border-box;
  padding: 0.5rem; /* eller 0.75rem om du ønsker litt mer luft */
}

/* === 🗓️ Spillkalender === */

.game-calendar {
  width: 100%;
  border-collapse: collapse;
  background-color: #181818;
  color: #eee;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background-color: #2d2d2d;
  color: #fff;
  padding: 2px 6px;
  margin: 2px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 4px;
  white-space: nowrap;
}

/* === 📺 Video Tiles === */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-tile {
  background: #1c1c1c;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 10px #111;
  text-align: center;
}

/* === 🔔 Banner === */

.gaming-banner {
  background: linear-gradient(to right, #ffef00, #b4a700);
  color: #000;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 1rem;
  border-bottom: 2px solid #888;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gaming-banner-alt {
  background: #111;
  color: #eee;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .gaming-banner-alt {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}
.gaming-banner-alt a {
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  background-color: #2d8cff;
  border-radius: 6px;
  color: white;
  text-decoration: none;
}

.gaming-banner-alt a:hover {
  background-color: #1c6edc;
}

/* === 🎯 Topplister & Diverse === */

.toplist {
  list-style: decimal;
  padding-left: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.guide-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.featured-reviews-link {
  text-align: center;
  margin-top: 2rem;
}

.review-button {
  display: inline-block;
  background: #ff3366;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

/* === 📦 Øvrig CSS (ikke kategorisert) === */

.gaming-section {
  padding: 2rem;
  background-color: #121212;
  border-bottom: 2px solid #222;
}

.gaming-section p {
  text-align: center;
  margin-bottom: 1.5rem;
}

.guide-list a {
  color: #66f;
  text-decoration: none;
}

.guide-list a:hover {
  text-decoration: underline;
}

.game-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.toplist li {
  margin-bottom: 0.5rem;
}

.review-button:hover {
  background: #cc0044;
}

.video-tile iframe {
  width: 100%;
  height: 160px;
  border: none;
  border-radius: 8px;
}

.video-tile p {
  margin-top: 0.5rem;
  font-weight: bold;
}

.equipment-card img {
  max-width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.equipment-card h4 {
  margin-bottom: 0.5rem;
}

.equipment-card p {
  font-size: 0.95rem;
  color: #ccc;
}

.equipment-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #66f;
  text-decoration: underline;
}

.shop-links a {
  color: #66f;
  text-decoration: underline;
  font-weight: 500;
}

.shop-links a:hover {
  color: #8af;
  text-decoration: none;
}

.equipment-card small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.shop-links a img {
  max-height: 38px;
  max-width: 100px;
  object-fit: contain;
  background-color: #1f1d1d;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.shop-links a img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.gaming-store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.15);
}
#gamingButikker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.gaming-store-card img {
  max-width: 140px;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}
.gaming-store-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.gaming-store-card h4 a {
  color: var(--accent-color, #4ea9ff);
  text-decoration: none;
}

.gaming-store-card h4 a:hover {
  text-decoration: underline;
}

.gaming-store-card p {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #ccc;
}

.gaming-store-card p a {
  color: #aaa;
  text-decoration: none;
}

.gaming-store-card p a:hover {
  color: #fff;
  text-decoration: underline;
}
.logo img {
  height: 42px;
}

.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #1e90ff;
}

.tagline {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1e90ff;
  margin-top: 1rem;
}

.info {
  font-size: 1rem;
  color: #aaa;
  margin-top: 0.5rem;
  font-style: italic;
}

.dark-section h3 {
  color: #1e90ff;
  margin-bottom: 1rem;
}

.small {
  margin-top: 1rem;
  color: #aaa;
}

.guide-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.guide-list li a {
  color: #1e90ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.guide-list li a:hover {
  color: #66f;
}

.filter-buttons button {
  background: #222;
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.filter-buttons button:hover {
  background: #1e90ff;
}

.tip-card a {
  color: #1e90ff;
  text-decoration: none;
}

.tip-card a:hover {
  text-decoration: underline;
}

.tip-card small {
  display: block;
  margin-top: 0.5rem;
  color: #888;
  font-size: 0.85rem;
}

.tip-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.review-card:hover {
  background: #222;
}

.review-image {
  width: 100px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.review-content p {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.review-meta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.game-calendar td {
  padding: 0.75rem;
  border: 1px solid #333;
  text-align: left;
}

.game-calendar th {
  background-color: #1e1e1e;
}

.game-calendar td a {
  color: #66ccff;
  text-decoration: none;
}

.game-calendar td a:hover {
  text-decoration: underline;
}

.form-label {
  font-weight: 500;
  color: var(--text-color, #fff);
}

.form-select {
  padding: 0.375rem 0.75rem;
  background-color: var(--bg-secondary, #222);
  color: var(--text-color, #fff);
  border: 1px solid #444;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.form-select:focus {
  border-color: var(--accent-color, #007bff);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.filter-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-box > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#spillkalender-container button {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
}

#spillkalender-container #nullstillFilter {
  background-color: var(--bg-secondary, #333);
  color: var(--text-color, #fff);
  border: 1px solid #666;
}

#spillkalender-container #nullstillFilter:hover {
  background-color: #444;
}

.vis-alle-knapp {
  display: inline-block;
  margin-top: 1rem;
  background: transparent;
  color: var(--text-color, #fff);
  border: 1px solid #777;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.vis-alle-knapp:hover {
  background-color: #2a2a2a;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tip-card h4 {
  font-size: 1.1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-color, #fff);
}

.tip-card a {
  color: var(--accent-color, #4ea9ff);
  text-decoration: none;
}

.tip-card a:hover {
  text-decoration: underline;
}

.tip-card p {
  font-size: 0.95rem;
  color: var(--text-light, #ccc);
  flex-grow: 1;
}

.tip-image {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#tips-filters button {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background-color: var(--bg-secondary, #2c2c2c);
  color: var(--text-color, #fff);
  border: 1px solid #444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 6px;
  margin-top: 2rem; /* flytter knappen litt ned */
}

.gaming-hero-content h1 {
  font-size: 2rem;
  color: #4ea9ff;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: #141414;
  max-width: 720px;
  margin: 0 auto 0.75rem;
}

.sub-note {
  font-size: 0.95rem;
  color: #999;
  font-style: italic;
}

.gaming-hero-content h1 {
  font-size: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 40px;
}

.logo-text {
  display: none;
  line-height: 1.2;
}

.logo-text strong {
  color: #fff;
  font-size: 1rem;
}

.logo-text small {
  font-size: 0.75rem;
  color: #888;
}

.gaming-navbar .logo-text {
  display: block;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.nav-links a:hover {
  background-color: #1e1e1e;
  color: #1e90ff;
}

.gaming-banner a {
  color: #0047ff;
  text-decoration: underline;
}

.gaming-banner a:hover {
  text-decoration: none;
  color: #1e90ff;
}

.gaming-btn {
  background: #4ea9ff;
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  margin-left: 0.5rem;
  font-weight: bold;
  text-decoration: none;
}

.gaming-btn:hover {
  background: #2a8dd8;
}
.tip-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.navbar {
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  align-items: flex-start;
}

.navbar a {
  font-size: 1rem;
}

.review-card h4 a {
  color: #99ccff;
  text-decoration: none;
}

.review-meta {
  justify-content: center;
}

.btn {
  margin-inline: auto;
  display: block;
  text-align: center;
}

/* === 📱 Mobiloptimalisering === */
@media (max-width: 600px) {
  .gaming-nav-shortcut {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .gaming-nav-shortcut a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 70px;
  }
}
@media (max-width: 600px) {
  .gaming-nav-shortcut .nav-links a.active {
    background-color: transparent !important;
    color: #ddd !important;
    border: none !important;
  }

  .gaming-nav-shortcut .nav-links a:hover {
    background-color: #1e1e1e;
    color: #4ea9ff;
  }
}

.gaming-nav-shortcut {
  background-color: #0d0d0d;
  border-bottom: 1px solid #222;
  padding: 0.5rem 1rem;
}

.nav-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-links a:hover {
  background-color: #1e1e1e;
  color: #4ea9ff;
}

@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-links.active {
    display: flex;
  }
}

@media (max-width: 768px) {
  .gaming-navbar .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .gaming-navbar .logo {
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
  }

  .gaming-navbar .logo img {
    height: 36px;
  }

  .gaming-navbar .logo-text {
    display: block;
    text-align: left;
  }

  .gaming-navbar .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .gaming-navbar .nav-links a {
    display: block;
    width: 100%;
    padding: 0.4rem 0;
  }
}

@media (max-width: 768px) {
  .gaming-navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .gaming-hero-content h1 {
    font-size: 1.5rem;
  }

  .gaming-hero-content p,
  .lead {
    font-size: 1rem;
  }

  .review-card {
    width: 100%;
    max-width: 100%;
  }

  .tips-grid,
  .equipment-grid,
  .game-grid,
  #anmeldelse-list,
  #tips-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .gaming-store-card {
    padding: 1rem;
  }

  .gaming-store-card img {
    max-width: 100px;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  #tips-filters {
    flex-direction: column;
  }
}
.kampanje-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.kampanje-card {
  background-color: #1d1d1d;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
  color: #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kampanje-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.kampanje-card img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.kampanje-card h4 {
  font-size: 1.05rem;
  color: #4ea9ff;
  margin: 0.5rem 0;
}

.kampanje-card p {
  font-size: 0.95rem;
  color: #ccc;
}
.nav-bar-sticky {
  position: sticky;
  top: 60px; /* juster etter headerens høyde */
  z-index: 999;
  background-color: #0d0d0d;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #222;
}
