/* PlayTide Social - Cyberpunk Gaming Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

/* CSS Custom Properties */
:root {
  /* Neon Colors */
  --neon-cyan: #00FFFF;
  --electric-magenta: #FF00FF;
  --lime-green: #32FF32;
  --sunset-orange: #FF4500;
  
  /* Background Colors */
  --dark-space: #0A0A0A;
  --deep-purple: #1A0033;
  --semi-transparent: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-primary: 'Orbitron', monospace;
  --font-secondary: 'Rajdhani', sans-serif;
  
  /* Shadows and Effects */
  --neon-glow: 0 0 20px currentColor;
  --glass-blur: blur(20px);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  background: linear-gradient(135deg, var(--dark-space) 0%, var(--deep-purple) 100%);
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Animated Background Particles */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: float 20s linear infinite;
  box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Navigation */
.navbar {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--neon-cyan);
  box-shadow: 0 4px 30px rgba(0, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--neon-cyan), var(--electric-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--neon-cyan);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}

.nav-link.active {
  background: linear-gradient(45deg, var(--neon-cyan), var(--electric-magenta));
  color: var(--dark-space);
  font-weight: 700;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: var(--neon-cyan);
  color: var(--dark-space);
  box-shadow: var(--neon-glow);
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--neon-cyan), var(--electric-magenta), var(--lime-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 20px var(--neon-cyan)); }
  to { filter: drop-shadow(0 0 40px var(--electric-magenta)); }
}

.hero p {
  font-size: 1.4rem;
  color: #cccccc;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, var(--electric-magenta), var(--sunset-orange));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: var(--transition);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 0, 255, 0.5);
}

/* Glass Card Component */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-cyan);
  box-shadow: 0 25px 50px rgba(0, 255, 255, 0.2);
}

/* Game Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.game-card {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}



.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.game-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.game-title {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.game-description {
  color: #cccccc;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.game-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--lime-green);
}

.play-count {
  color: var(--electric-magenta);
  font-weight: 600;
}

/* Play Button */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, var(--electric-magenta), var(--sunset-orange));
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.4);
  z-index: 3;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 15px 40px rgba(255, 0, 255, 0.6);
}

.play-button::before {
  content: '▶';
  color: white;
  font-size: 1.2rem;
  margin-left: 3px;
}

.game-image-container {
  position: relative;
  overflow: hidden;
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--electric-magenta);
  border-color: var(--electric-magenta);
  box-shadow: 0 0 20px var(--electric-magenta);
  transform: translateY(-2px);
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 2rem;
  position: relative;
}

.search-bar {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition);
}

.search-bar:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Age Verification */
.age-verification {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 2px solid var(--sunset-orange);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 69, 0, 0.3);
}

.age-verification h3 {
  color: var(--sunset-orange);
  font-family: var(--font-primary);
  margin-bottom: 1rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.age-btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.age-btn.confirm {
  background: var(--lime-green);
  color: var(--dark-space);
}

.age-btn.deny {
  background: #ff4444;
  color: white;
}

.age-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(45deg, var(--dark-space), var(--deep-purple));
  border-top: 2px solid var(--neon-cyan);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 1001;
  box-shadow: 0 -10px 30px rgba(0, 255, 255, 0.2);
}

.cookie-banner.show {
  transform: translateY(0);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.cookie-btn.accept {
  background: var(--lime-green);
  color: var(--dark-space);
}

.cookie-btn.decline {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid var(--neon-cyan);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--electric-magenta);
  font-family: var(--font-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-top: 3px solid var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--neon-cyan);
  }

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

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .filters {
    padding: 0 1rem;
  }
  
  .play-button {
    width: 50px;
    height: 50px;
  }
  
  .play-button::before {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .age-buttons {
    flex-direction: column;
  }
  
  .play-button {
    width: 45px;
    height: 45px;
  }
  
  .play-button::before {
    font-size: 0.9rem;
  }
}

/* Special Effects */
.text-glow {
  text-shadow: 0 0 10px currentColor;
}

.border-glow {
  box-shadow: 0 0 20px currentColor;
}

.hover-float:hover {
  animation: float-up 0.3s ease-out forwards;
}

@keyframes float-up {
  to {
    transform: translateY(-5px);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Game Detail Page Specific */
.game-detail-hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-iframe-container {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--neon-cyan);
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.meta-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-label {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.meta-value {
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .game-detail-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
}
