/* Dehşet Games — ana site uyumlu ek stiller */

.dehset-games-page {
  background: var(--bg);
  padding-bottom: 2rem;
}

.games-main {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* REDESIGNED LANDING PAGE (index.php) */
.index-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 30px;
  margin-bottom: 3rem;
  background: #0a0a0f;
  box-shadow: 0 30px 100px rgba(0,0,0,0.5);
}

.index-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/landing_bg.png') no-repeat center center;
  background-size: cover;
  filter: brightness(0.6) saturate(1.2);
  z-index: 1;
  transition: transform 10s ease-out;
}

.index-hero:hover .index-hero-bg {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 20, 0.8) 100%);
  z-index: 2;
}

.games-welcome {
  position: relative;
  z-index: 10;
  background: rgba(26, 26, 34, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  animation: hero-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.games-welcome .games-logo {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.games-welcome h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 1rem;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #fff 30%, #a5a6f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.games-welcome .subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.games-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 0 3.5rem;
}

.games-feature {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.games-feature:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.games-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.games-feature-title {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.games-feature-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.games-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.games-btn {
  padding: 1.1rem 2.5rem;
  border-radius: 16px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.games-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.games-btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s;
}

.games-btn-primary:hover::after {
  transform: rotate(45deg) translate(20%, 20%);
}

.games-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.games-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.games-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.games-stat-value {
  font-size: 2.5rem;
  color: #6366f1;
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.games-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Home / oyun listesi sayfası */
.games-page-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.games-page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1rem;
}

.games-nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.games-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.games-nav-link:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.games-nav-link.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.games-nav-link.secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.games-user-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.games-user-bar .welcome-text {
  color: var(--text);
  font-weight: 500;
}

.games-user-bar .welcome-text strong {
  color: var(--text);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.games-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.games-card:hover {
  border-color: var(--games);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.games-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.games-card-body {
  padding: 1.25rem;
}

.games-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.games-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 1rem;
}

.games-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--games);
  text-decoration: none;
  transition: color 0.2s;
}

.games-card-link:hover {
  color: var(--text);
}

/* Notification badge */
.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Premium badge */
.premium-badge {
  background: linear-gradient(135deg, #eab308, #c41e3a);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Genel form / kutu stilleri (login, register vb. sayfalar için) */
.games-form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto 2rem;
}

.games-form-box h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.games-form-box label,
.games-form-box input {
  display: block;
  width: 100%;
}

.games-form-box input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.games-form-box input:focus {
  outline: none;
  border-color: var(--games);
}

.games-form-box .btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.games-form-box .btn:hover {
  background: var(--accent-hover);
}

/* home.php sayfası — mevcut sınıfları ana site temasına çekme */
.dehset-games-page .header.games-page-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
}

.dehset-games-page .welcome-title {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.dehset-games-page .nav-link {
  background: var(--accent);
  color: #fff;
  border: none;
}

.dehset-games-page .nav-link:hover {
  background: var(--accent-hover);
  color: #fff;
}

.dehset-games-page .user-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
}

.dehset-games-page .welcome-text,
.dehset-games-page .welcome-text span {
  color: var(--text);
}

.dehset-games-page .games-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: none;
}

.dehset-games-page .section-title {
  color: var(--text);
}

.dehset-games-page .game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.dehset-games-page .game-card:hover {
  border-color: var(--games);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.dehset-games-page .game-thumbnail {
  border-bottom-color: var(--border);
}

.dehset-games-page .game-title {
  color: var(--text);
}

.dehset-games-page .game-desc {
  color: var(--text-muted);
}

.dehset-games-page .play-button {
  background: var(--accent);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.dehset-games-page .play-button:hover {
  background: var(--accent-hover);
}

.dehset-games-page .filter-btn {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}

.dehset-games-page .filter-btn:hover,
.dehset-games-page .filter-btn.active {
  background: var(--games);
  border-color: var(--games);
  color: #fff;
}

/* SEO / içerik bölümü (index) — görünür, doğal metin */
.dehset-seo-about {
  margin-top: 2.5rem;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.dehset-seo-about h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

.dehset-seo-about h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.35rem 0 0.6rem;
}

.dehset-seo-about p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

.seo-col h3 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .seo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.dehset-seo-about a {
  color: var(--games);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dehset-seo-about a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .games-main {
    padding: 1.25rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .games-welcome {
    padding: 2rem 1.5rem;
  }
  .games-cta {
    flex-direction: column;
  }
  .games-btn {
    justify-content: center;
    min-height: 48px;
  }
  .games-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .games-main {
    padding: 1rem 0.75rem;
  }
  .games-welcome {
    padding: 1.5rem 1rem;
  }
  .games-welcome h1 {
    font-size: 1.75rem;
  }
  .games-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .games-feature {
    padding: 1.25rem;
  }
  .games-stat-item {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 1rem;
  }
  .games-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* PREMIUM SPOTLIGHT & PERKS REDESIGN */
.premium-spotlight {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: premium-slide-in 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes premium-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.premium-spotlight-content {
  flex: 1;
}

.premium-spotlight-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.premium-spotlight-text {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.premium-features-mini {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mini-feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #fff;
  transition: all 0.3s ease;
}

.mini-feature i {
  color: #FFD700;
}

.mini-feature:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-3px);
}

.premium-cta-wrapper {
  flex-shrink: 0;
}

.premium-banner-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #8B4513;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-banner-btn:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
}

/* MODAL ENHANCEMENTS */
.premium-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.perk-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.perk-item:hover {
  background: rgba(102, 126, 234, 0.08);
  border-color: rgba(102, 126, 234, 0.2);
  transform: translateY(-5px);
}

.perk-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.perk-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: block;
}

.perk-desc {
  font-size: 0.85rem;
  color: #64748b;
  display: block;
}

@media (max-width: 768px) {
  .premium-spotlight {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .premium-features-mini {
    justify-content: center;
  }
  .premium-perks-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure container sizing and prevent overflow */
.premium-spotlight, 
.premium-spotlight *, 
.premium-purchase-content,
.premium-purchase-content * {
  box-sizing: border-box;
}

.premium-spotlight {
  max-width: 100%;
  width: 100%;
}
