/* Premium Dark Theme & Glassmorphism Design for Itch.io Game Portal */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&display=swap');

:root {
  --glass-bg: rgba(10, 10, 15, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(168, 85, 247, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glass-blur: 20px;
  --accent-color: #a855f7; /* Violet */
  --accent-glow: 0 0 20px rgba(168, 85, 247, 0.4);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #020205;
  background-image: 
    radial-gradient(at 10% 20%, rgba(168, 85, 247, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(34, 197, 94, 0.03) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(59, 130, 246, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  color: #f3f4f6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-title {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-panel-glow {
  background: rgba(15, 10, 25, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-glow);
  box-shadow: var(--accent-glow), var(--glass-shadow);
}

/* iOS Bottom Float Dock (iPhone Dock style) */
.ios-dock-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ios-dock {
  background: rgba(15, 15, 25, 0.35);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 10px 16px;
  display: flex;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ios-dock:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.1), 0 0 30px rgba(0,0,0,0.8);
}

.ios-dock-item {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

.ios-dock-item:hover {
  transform: scale(1.15) translateY(-8px);
  color: #ffffff;
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.ios-dock-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(59, 130, 246, 0.4));
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

/* Tooltip for Dock Items */
.ios-dock-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 64px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.ios-dock-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Category Pill Styling */
.category-pill {
  transition: all 0.2s ease;
}
.category-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.category-pill.active {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
  color: white;
}

/* Poster Card Grid Styling */
.game-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15), 0 0 30px rgba(0,0,0,0.5);
}

.game-card .poster-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.game-card img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.game-card:hover img {
  transform: scale(1.08);
}

/* Overlay visible on hover */
.game-card-overlay {
  background: linear-gradient(to top, rgba(10, 5, 20, 0.95) 0%, rgba(10, 5, 20, 0.4) 60%, transparent 100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

/* Web Game Modal Player */
.modal-overlay {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(2, 2, 5, 0.85);
  transition: opacity 0.3s ease;
}

/* Custom transitions and scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #020205;
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.6);
}
