/* OYUN PORTALLARI — ana sayfa bölümü (mevcut tema ile uyumlu) */
.game-portals-section {
  padding: 20px 0 28px;
  position: relative;
}

.game-portals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.game-portals-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.game-portals-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-size: 14px;
}

.game-portals-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-color);
  white-space: nowrap;
}

.game-portals-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #a78bfa;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.game-portals-all:hover {
  color: #c4b5fd;
  text-decoration: none !important;
}

.game-portals-all i {
  font-size: 11px;
}

.game-portals-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.game-portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
  padding: 14px 10px 12px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff;
  border: 1px solid transparent;
  background: rgba(18, 20, 32, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 22, 0.35) 0%,
    rgba(8, 10, 22, 0.08) 38%,
    rgba(8, 10, 22, 0.55) 72%,
    rgba(8, 10, 22, 0.88) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.game-portal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.game-portal-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 188px;
  text-align: center;
}

.game-portal-name {
  font-size: clamp(13px, 2.4vw, 18px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.game-portal-label {
  margin-top: 2px;
  font-size: clamp(10px, 1.8vw, 12px);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.game-portal-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  margin-top: auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.game-portal-card:hover {
  transform: translateY(-4px);
  text-decoration: none !important;
  color: #fff;
}

.game-portal-card:hover .game-portal-action {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.5);
}

/* Oyun temaları */
.game-portal-card--pubg {
  --portal-accent: #f5c518;
  border-color: rgba(245, 197, 24, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.12), 0 8px 24px rgba(245, 197, 24, 0.14);
}
.game-portal-card--pubg .game-portal-label,
.game-portal-card--pubg .game-portal-action {
  color: var(--portal-accent);
}
.game-portal-card--pubg:hover {
  border-color: rgba(245, 197, 24, 0.85);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.28), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.game-portal-card--valorant {
  --portal-accent: #ff4655;
  border-color: rgba(255, 70, 85, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.12), 0 8px 24px rgba(255, 70, 85, 0.14);
}
.game-portal-card--valorant .game-portal-label,
.game-portal-card--valorant .game-portal-action {
  color: var(--portal-accent);
}
.game-portal-card--valorant:hover {
  border-color: rgba(255, 70, 85, 0.85);
  box-shadow: 0 0 18px rgba(255, 70, 85, 0.28), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.game-portal-card--metin2 {
  --portal-accent: #f97316;
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12), 0 8px 24px rgba(249, 115, 22, 0.14);
}
.game-portal-card--metin2 .game-portal-label,
.game-portal-card--metin2 .game-portal-action {
  color: var(--portal-accent);
}
.game-portal-card--metin2:hover {
  border-color: rgba(249, 115, 22, 0.85);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.28), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.game-portal-card--knight {
  --portal-accent: #22d3ee;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 8px 24px rgba(34, 211, 238, 0.14);
}
.game-portal-card--knight .game-portal-label,
.game-portal-card--knight .game-portal-action {
  color: var(--portal-accent);
}
.game-portal-card--knight:hover {
  border-color: rgba(34, 211, 238, 0.85);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28), 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Görsel yoksa: tematik gradient (Metin2 / Knight) */
.game-portal-card--gradient {
  background-color: rgba(18, 20, 32, 0.92);
}
.game-portal-card--metin2.game-portal-card--gradient {
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 18%, rgba(249, 115, 22, 0.38), transparent 58%),
    linear-gradient(180deg, #4a2510 0%, #1a0d06 52%, #0a0604 100%);
}
.game-portal-card--knight.game-portal-card--gradient {
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 18%, rgba(34, 211, 238, 0.32), transparent 58%),
    linear-gradient(180deg, #0e4a5c 0%, #061820 52%, #030a10 100%);
}

@media (min-width: 992px) {
  .game-portal-card {
    min-height: 280px;
    padding: 18px 12px 14px;
  }
  .game-portal-content {
    min-height: 236px;
  }
  .game-portal-name {
    font-size: 20px;
  }
  .game-portal-label {
    font-size: 13px;
  }
  .game-portal-action {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .game-portals-section {
    padding: 14px 0 22px;
  }
  .game-portals-title {
    font-size: 13px;
  }
  .game-portals-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .game-portals-track::-webkit-scrollbar {
    display: none;
  }
  .game-portal-card {
    flex: 0 0 calc((100% - 30px) / 4);
    min-width: 78px;
    min-height: 200px;
    scroll-snap-align: start;
  }
}

@media (max-width: 400px) {
  .game-portal-card {
    min-width: 72px;
    min-height: 188px;
  }
  .game-portals-all span {
    display: none;
  }
}

[data-theme="light"] .game-portals-title {
  color: var(--text-color);
}
[data-theme="light"] .game-portal-card {
  background: rgba(255, 255, 255, 0.92);
}
[data-theme="light"] .game-portal-card::before {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(15, 23, 42, 0.45) 100%
  );
}
