/* ==========================================================================
   Steam İndirim Takipçisi - Core Design System & Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #090d12;
  --bg-card: rgba(16, 24, 34, 0.75);
  --bg-card-hover: rgba(25, 38, 54, 0.9);
  --bg-header: rgba(11, 17, 25, 0.85);
  
  --steam-blue: #1b2838;
  --steam-blue-light: #2a475e;
  --accent-cyan: #66c0f4;
  --accent-neon: #00f0ff;
  --discount-green: #a4d007;
  --discount-green-glow: #82ab00;
  --hot-pink: #ff3366;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(102, 192, 244, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.15);
  --shadow-discount: 0 4px 15px rgba(164, 208, 7, 0.4);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14.5px; /* Slightly reduced global base font size */
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.45;
}

/* Decorative Background Radial Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}
.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 40, 56, 0.8), transparent 70%);
  top: -100px;
  left: -100px;
}
.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 192, 244, 0.15), transparent 70%);
  top: 30%;
  right: -200px;
}
.glow-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(164, 208, 7, 0.08), transparent 70%);
  bottom: -150px;
  left: 20%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--steam-blue-light);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 24px;
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
  border: 2px solid var(--accent-neon);
  background: #090d14;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-logo:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 25px rgba(255, 45, 120, 0.5);
}
.site-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.2;
}
.brand-text h1 span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-text .tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-neon);
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, #1a9fff 0%, #0066cc 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(26, 159, 255, 0.3);
}
.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Stats Bar
   ========================================================================== */
.hero-bar {
  padding: 24px 24px 10px 24px;
}
.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.hero-stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.hero-stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(102, 192, 244, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-neon);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Avatar wrapper and fallback for when image fails to load */
.avatar-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(102, 192, 244, 0.4);
  object-fit: cover;
}
.avatar-fallback-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  border: 2px solid rgba(102, 192, 244, 0.4);
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.currency-select {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 4px;
  outline: none;
  cursor: pointer;
}
.currency-select:focus {
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   Main Navigation Tabs (Aktif Fırsatlar vs Paylaşılanlar)
   ========================================================================== */
.main-navigation {
  max-width: 1320px;
  margin: 10px auto 0 auto;
  padding: 0 24px;
}
.nav-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 24, 34, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-tab i {
  font-size: 1.05rem;
}
.nav-tab:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-tab.active {
  background: linear-gradient(135deg, rgba(26, 159, 255, 0.25) 0%, rgba(0, 240, 255, 0.15) 100%);
  border-color: rgba(0, 240, 255, 0.45);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}
.nav-tab.nav-tab-shared.active {
  background: linear-gradient(135deg, rgba(164, 208, 7, 0.25) 0%, rgba(130, 171, 0, 0.15) 100%);
  border-color: rgba(164, 208, 7, 0.5);
  color: #a4d007;
  box-shadow: 0 0 20px rgba(164, 208, 7, 0.25);
}
.nav-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(102, 192, 244, 0.2);
  color: var(--accent-cyan);
  transition: all 0.2s ease;
}
.nav-tab.active .nav-badge {
  background: var(--accent-neon);
  color: #090d12;
}
.nav-badge-shared {
  background: rgba(164, 208, 7, 0.2);
  color: #a4d007;
}
.nav-tab.active .nav-badge-shared {
  background: #a4d007;
  color: #090d12;
}

/* ==========================================================================
   Controls & Filters Panel
   ========================================================================== */
.main-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

.controls-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.search-box {
  position: relative;
  width: 100%;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 48px 14px 50px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-box input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(102, 192, 244, 0.2);
}
.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  padding: 4px;
}
.clear-search-btn:hover {
  color: var(--text-main);
}

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

.quick-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.chip.active {
  background: linear-gradient(135deg, rgba(164, 208, 7, 0.25), rgba(130, 171, 0, 0.4));
  border-color: var(--discount-green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(164, 208, 7, 0.25);
}
.chip.highlight-chip.active {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.3), rgba(255, 140, 0, 0.4));
  border-color: var(--hot-pink);
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.3);
}

.sort-layout-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.select-icon {
  position: absolute;
  left: 14px;
  color: var(--accent-cyan);
  pointer-events: none;
  font-size: 0.9rem;
}
.custom-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 9px 16px 9px 38px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.custom-select:focus, .custom-select:hover {
  border-color: var(--accent-cyan);
}

.view-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.view-btn:hover {
  color: #fff;
}
.view-btn.active {
  background: var(--steam-blue-light);
  color: var(--accent-neon);
}

.advanced-filters {
  display: flex;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  flex-wrap: wrap;
}
.filter-group {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.filter-group label strong {
  color: var(--accent-cyan);
}
.filter-group input[type="range"] {
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* ==========================================================================
   Results Bar
   ========================================================================== */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.results-info span#resultsCount {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1rem;
}
.badge-filter-info {
  margin-left: 8px;
  background: rgba(102, 192, 244, 0.15);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  display: inline-block;
}

/* ==========================================================================
   Game Cards & Grid View
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  transition: all 0.3s ease;
}

/* Card Component */
.game-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 460 / 215;
  background: #121923;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.game-card:hover .card-media img {
  transform: scale(1.06);
}

/* Discount Badge Overlay */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #a4d007 0%, #4cff00 100%);
  color: #121923;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: var(--shadow-discount);
  letter-spacing: -0.5px;
  zIndex: 2;
  animation: badgePop 0.4s ease;
}
.discount-badge.super-discount {
  background: linear-gradient(135deg, #ff3366 0%, #ff8c00 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.5);
}

/* System Added Time Badge */
.added-time-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(11, 17, 25, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(102, 192, 244, 0.35);
  color: #f3f4f6;
  font-family: var(--font-family);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  letter-spacing: 0.2px;
  cursor: default;
}
.added-time-badge i {
  color: var(--accent-neon);
  font-size: 0.78rem;
}
.game-card:hover .added-time-badge {
  border-color: var(--accent-neon);
  background: rgba(11, 17, 25, 0.96);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

/* Steam Rating Badge */
.rating-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(14, 20, 27, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #66c0f4;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rating-high { color: #66c0f4; }
.rating-positive { color: #a4d007; }
.rating-mixed { color: #e5c158; }

/* Total Player Count Badge */
.player-count-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(14, 20, 27, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(102, 192, 244, 0.35);
  color: #66c0f4;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.player-count-badge.high-popularity {
  background: rgba(255, 140, 0, 0.25);
  border-color: rgba(255, 140, 0, 0.6);
  color: #ffaa00;
  box-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 12px;
}

.game-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-pricing {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.price-box {
  display: flex;
  flex-direction: column;
}
.normal-price {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: line-through;
}
.sale-price {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--discount-green);
}

.savings-tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.card-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  background: linear-gradient(135deg, rgba(42, 71, 94, 0.6) 0%, rgba(23, 33, 46, 0.8) 100%);
  border: 1px solid var(--steam-blue-light);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.card-action-btn:hover {
  background: linear-gradient(135deg, #1a9fff 0%, #0066cc 100%);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(26, 159, 255, 0.3);
  color: #fff;
}

.card-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.card-share-btn:hover {
  background: rgba(102, 192, 244, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-neon);
  transform: translateY(-1px);
}

.card-unshare-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.card-unshare-btn:hover {
  background: rgba(255, 153, 0, 0.15);
  border-color: rgba(255, 153, 0, 0.5);
  color: #ff9900;
  transform: translateY(-1px) rotate(-45deg);
}

/* ==========================================================================
   List View Format
   ========================================================================== */
.games-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.games-grid.list-view .game-card {
  flex-direction: row;
  align-items: center;
  height: 100px;
}
.games-grid.list-view .card-media {
  width: 210px;
  height: 100%;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.games-grid.list-view .card-body {
  flex-direction: row;
  align-items: center;
  padding: 12px 20px;
  gap: 20px;
}
.games-grid.list-view .game-title {
  font-size: 1.05rem;
  flex: 2;
}
.games-grid.list-view .card-pricing {
  flex: 1;
  max-width: 180px;
}
.games-grid.list-view .card-action-btn {
  width: auto;
  padding: 10px 20px;
  white-space: nowrap;
}

/* ==========================================================================
   Skeleton Loaders & Empty State
   ========================================================================== */
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  height: 360px;
  overflow: hidden;
  position: relative;
}
.skeleton-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  100% { left: 100%; }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  margin-top: 20px;
}
.empty-icon {
  font-size: 4rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hidden {
  display: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-light);
  padding: 30px 24px;
  background: rgba(9, 13, 18, 0.95);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.sub-footer {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sort-layout-controls {
    justify-content: space-between;
  }
  .games-grid.list-view .game-card {
    flex-direction: column;
    height: auto;
  }
  .games-grid.list-view .card-media {
    width: 100%;
    aspect-ratio: 460 / 215;
  }
  .games-grid.list-view .card-body {
    flex-direction: column;
    align-items: stretch;
  }
  .games-grid.list-view .card-pricing {
    max-width: 100%;
  }
}

/* ==========================================================================
   Header Auth & User Profile Badge
   ========================================================================== */
.auth-container {
  position: relative;
}

.btn-login {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  color: #fff;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(102, 192, 244, 0.2);
}
.btn-login:hover {
  background: linear-gradient(135deg, #2a475e 0%, #1a9fff 100%);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.user-avatar-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(27, 40, 56, 0.85);
  border: 1px solid var(--accent-cyan);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.user-avatar-badge:hover {
  background: rgba(42, 71, 94, 0.95);
  box-shadow: 0 0 12px rgba(102, 192, 244, 0.3);
}
.avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--accent-neon);
  object-fit: cover;
}
.username {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
}
.chevron-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0f1621;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 0, 0, 0.6);
  padding: 8px;
  min-width: 180px;
  z-index: 200;
  animation: fadeInDown 0.2s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 6px;
}
.user-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  background: rgba(255, 51, 102, 0.15);
  color: var(--hot-pink);
}

/* ==========================================================================
   Login Modal
   ========================================================================== */
.modal-overlay,
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #101822;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-md), 0 0 40px rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 32px;
  position: relative;
  animation: scaleUp 0.25s ease;
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  color: #fff;
  border-color: var(--hot-pink);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.modal-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent-neon);
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.steam-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
  transition: all 0.25s ease;
}
.steam-auth-btn:hover {
  background: linear-gradient(135deg, #2a475e 0%, #1a9fff 100%);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}
.steam-auth-btn i {
  font-size: 1.4rem;
  color: var(--accent-neon);
}

/* Auth Tabs (Login / Register) */
.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}
.auth-tab-btn {
  flex: 1;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab-btn.active {
  background: linear-gradient(135deg, var(--steam-blue-light), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.25);
}
.auth-tab-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.input-group label i {
  color: var(--accent-cyan);
}
.input-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input:focus {
  border-color: var(--accent-neon);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 0.95rem;
  margin-top: 4px;
}

.auth-error-msg {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: var(--radius-sm);
  color: #ff6b8b;
  font-size: 0.82rem;
  text-align: center;
}

.modal-features {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-item i {
  color: var(--discount-green);
  font-size: 0.75rem;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1100;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  background: rgba(16, 24, 34, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.2);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-item i {
  color: var(--accent-neon);
  font-size: 1rem;
}
.toast-item.toast-error {
  border-color: var(--hot-pink);
}
.toast-item.toast-error i {
  color: var(--hot-pink);
}

/* ============================================================
   Share Button - Locked State (not logged in)
   ============================================================ */
.btn.share-locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
  position: relative;
}
.btn.share-locked:hover::after {
  content: 'Paylaşmak için giriş yapın';
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 20, 0.95);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.72rem;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 99;
}
.btn.share-unlocked {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  border: none;
  box-shadow: 0 0 18px rgba(0, 198, 255, 0.35);
  opacity: 1;
  cursor: pointer;
  filter: none;
}
.btn.share-unlocked:hover {
  background: linear-gradient(135deg, #00d4ff 0%, #0088ff 100%);
  box-shadow: 0 0 28px rgba(0, 198, 255, 0.55);
  transform: translateY(-2px);
}

/* Card share button - locked state */
.card-share-btn.locked {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* ============================================================
   Share Post Modal
   ============================================================ */
.share-modal-card {
  max-width: 900px;
  width: 95vw;
  max-height: 92vh;
  overflow-y: auto;
}
.share-modal-icon {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}
.share-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}
@media (max-width: 700px) {
  .share-modal-body {
    grid-template-columns: 1fr;
  }
}

/* Canvas preview */
.share-preview-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.share-canvas-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: block;
}
.modal-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}
.download-btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #a4d007 0%, #76a500 100%);
  border: none;
  color: #0d0d0d;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(164, 208, 7, 0.35);
}
.download-btn:hover {
  background: linear-gradient(135deg, #bef010 0%, #8ec500 100%);
  box-shadow: 0 6px 24px rgba(164, 208, 7, 0.55);
  transform: translateY(-2px);
}
.btn-toggle-share {
  width: 100%;
  justify-content: center;
  background: rgba(164, 208, 7, 0.12);
  border: 1px solid rgba(164, 208, 7, 0.4);
  color: #a4d007;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 14px;
}
.btn-toggle-share:hover {
  background: rgba(164, 208, 7, 0.22);
  border-color: #a4d007;
  box-shadow: 0 0 15px rgba(164, 208, 7, 0.3);
  transform: translateY(-1px);
}
.btn-toggle-share.already-shared {
  background: rgba(255, 153, 0, 0.12);
  border-color: rgba(255, 153, 0, 0.45);
  color: #ff9900;
}
.btn-toggle-share.already-shared:hover {
  background: rgba(255, 153, 0, 0.22);
  border-color: #ff9900;
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
}

/* Post text area */
.share-text-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.share-text-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.share-text-header i {
  color: var(--accent-cyan);
}
.btn-copy-text {
  background: rgba(102, 192, 244, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-copy-text:hover {
  background: rgba(102, 192, 244, 0.25);
  box-shadow: 0 0 10px rgba(102, 192, 244, 0.2);
}
.share-post-textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.82rem;
  line-height: 1.65;
  padding: 14px;
  resize: none;
  flex: 1;
  min-height: 200px;
  outline: none;
  cursor: text;
  transition: border-color 0.2s ease;
}
.share-post-textarea:focus {
  border-color: var(--border-glow);
}

/* Platform share buttons */
.share-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.platform-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-right: 4px;
}
.platform-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.22s ease;
  position: relative;
}
.platform-btn svg { display: block; }
.platform-btn:hover {
  transform: scale(1.13) translateY(-2px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
.platform-btn.twitter-btn:hover  { color: #e7e7e7; border-color: #e7e7e7; background: rgba(231,231,231,0.1); box-shadow: 0 4px 18px rgba(231,231,231,0.2); }
.platform-btn.instagram-btn:hover { color: #e1306c; border-color: #e1306c; background: rgba(225,48,108,0.12); box-shadow: 0 4px 18px rgba(225,48,108,0.3); }
.platform-btn.facebook-btn:hover  { color: #1877f2; border-color: #1877f2; background: rgba(24,119,242,0.12); box-shadow: 0 4px 18px rgba(24,119,242,0.3); }
.platform-btn.whatsapp-btn:hover  { color: #25d366; border-color: #25d366; background: rgba(37,211,102,0.12); box-shadow: 0 4px 18px rgba(37,211,102,0.3); }

/* Shared / Downloaded Badge on game card */
.shared-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #a4d007;
  color: #0a0a0a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px 2px 6px;
  border-radius: 20px;
  margin-left: 6px;
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 0 10px rgba(164,208,7,0.5);
  vertical-align: middle;
  white-space: nowrap;
}
.shared-badge i { font-size: 0.65rem; }
@keyframes badgePop {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* Admin Panel Rows */
.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: background 0.2s;
}
.admin-user-row:hover { background: rgba(255,255,255,0.04); }
.pending-row { border-color: rgba(255,153,0,0.2); background: rgba(255,153,0,0.05); }

.btn-admin-approve {
  padding: 6px 12px;
  background: rgba(164,208,7,0.15);
  border: 1px solid rgba(164,208,7,0.5);
  color: #a4d007;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-admin-approve:hover { background: rgba(164,208,7,0.3); box-shadow: 0 0 10px rgba(164,208,7,0.3); }
.btn-admin-approve:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-admin-reject {
  padding: 6px 12px;
  background: rgba(255,51,102,0.12);
  border: 1px solid rgba(255,51,102,0.4);
  color: #ff3366;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-admin-reject:hover { background: rgba(255,51,102,0.25); box-shadow: 0 0 10px rgba(255,51,102,0.25); }
.btn-admin-reject:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Clear Cache Dropdown Item ───────────────────────────────────────────── */
.clear-cache-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.clear-cache-item i {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  transition: transform 0.35s ease;
}
.clear-cache-item:hover {
  background: rgba(0, 198, 255, 0.07);
  color: var(--accent-cyan);
}
.clear-cache-item:hover i {
  transform: rotate(180deg);
}

/* ==========================================================================
/* ==========================================================================
   Share Tab Navigation (Görsel Gönderi vs Oyun Görselleri)
   ========================================================================== */
.share-tab-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 5px;
  margin: 16px auto 8px auto;
  max-width: 520px;
  width: 100%;
  gap: 6px;
}

.share-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-radius: 25px;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.share-tab-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.share-tab-btn.active {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 198, 255, 0.4);
}

.share-tab-btn .tab-badge {
  background: #a4d007;
  color: #05080e;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 2px;
}

.share-tab-content {
  width: 100%;
}

/* ==========================================================================
   Tab 2: Steam Screenshots Gallery Grid
   ========================================================================== */
.gallery-tab-wrapper {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  gap: 12px;
}

.gallery-tab-info h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.gallery-tab-info p {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}

.btn-back-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-back-tab:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateX(-2px);
}

.screenshots-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.screenshots-loading i {
  color: var(--accent-cyan);
  font-size: 1.4rem;
}

.steam-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.steam-gallery-grid::-webkit-scrollbar {
  width: 6px;
}
.steam-gallery-grid::-webkit-scrollbar-thumb {
  background: var(--steam-blue-light);
  border-radius: 4px;
}

.steam-gallery-card {
  background: rgba(10, 16, 26, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.steam-gallery-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
}

.steam-gallery-card.active-selected {
  border-color: #00ffa3;
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.45);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.steam-gallery-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-img-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-selected-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #00ffa3;
  color: #05080e;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-card-actions {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(6, 10, 16, 0.85);
}

.btn-card-post-download {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #a4d007 0%, #76a500 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #05080e;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(164, 208, 7, 0.3);
}

.btn-card-post-download:hover {
  background: linear-gradient(135deg, #bef010 0%, #8ec500 100%);
  box-shadow: 0 4px 16px rgba(164, 208, 7, 0.5);
  transform: translateY(-1px);
}

.gallery-card-subactions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-card-select, .btn-card-raw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-select {
  background: rgba(0, 198, 255, 0.12);
  border: 1px solid rgba(0, 198, 255, 0.4);
  color: var(--accent-cyan);
}

.btn-card-select:hover {
  background: rgba(0, 198, 255, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.25);
}

.btn-card-raw {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.btn-card-raw:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Locked Card Share Button for Guests */
.card-share-btn.locked {
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #8fa0bc !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-share-btn.locked:hover {
  opacity: 1;
  background: rgba(255, 51, 102, 0.18) !important;
  border-color: rgba(255, 51, 102, 0.5) !important;
  color: #ff3366 !important;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

/* ==========================================================================
   Auth Lock Gate (Unauthenticated Center Overlay)
   ========================================================================== */
.auth-lock-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 40px 20px;
  width: 100%;
}

.auth-lock-gate.hidden {
  display: none !important;
}

.lock-gate-card {
  background: rgba(13, 22, 34, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lockCardFloat 3.5s ease-in-out infinite alternate;
}

@keyframes lockCardFloat {
  from { transform: translateY(0px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.1); }
  to { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(0, 240, 255, 0.2); }
}

.lock-gate-icon {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 109, 0.25) 0%, rgba(13, 22, 34, 0.9) 70%);
  border: 2px solid #ff2a6d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: #ff2a6d;
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(255, 42, 109, 0.45);
}

.lock-pulse-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 42, 109, 0.4);
  animation: pulseRing 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.18); opacity: 0.15; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.lock-gate-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.lock-gate-card p {
  font-size: 1.02rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 420px;
}

.btn-lock-gate {
  font-size: 1.05rem;
  padding: 14px 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: all 0.25s ease;
}

.btn-lock-gate:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.65);
}

/* ═════════════════════════════════════════════════════════════════════
   GLITCHDEALS MOBILE & TABLET RESPONSIVE SYSTEM (PWA READY)
   ═════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 16px 20px;
  }
  .header-actions {
    justify-content: space-between;
    width: 100%;
  }
  .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .filter-group {
    width: 100%;
  }
  .search-box {
    width: 100% !important;
  }
  .share-modal-body {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .brand {
    justify-content: center;
    text-align: center;
  }
  .site-logo-img {
    height: 38px;
  }
  .brand-text h1 {
    font-size: 1.35rem;
  }
  .brand-text .tagline {
    font-size: 0.72rem;
  }
  .games-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 12px !important;
  }
  .lock-gate-card {
    padding: 32px 18px !important;
    margin: 0 14px !important;
  }
  .lock-gate-card h2 {
    font-size: 1.35rem !important;
  }
  .lock-gate-card p {
    font-size: 0.88rem !important;
  }
  .modal-card {
    padding: 22px 16px !important;
    max-width: 94vw !important;
  }
}

