/* ============================================
   RushSocial - Dark Gaming Theme
   ============================================ */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-cyan: #00ffff;
  --accent-purple: #8e2de2;
  --accent-yellow: #ffd700;
  --accent-green: #00ff88;
  --accent-pink: #ff00ff;
  --neon-glow: 0 0 20px rgba(0, 255, 255, 0.5);
  --card-border: rgba(0, 255, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-tertiary) 100%
  );
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent-cyan);
  text-decoration: none;
  text-shadow: 0 0 10px var(--accent-cyan);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--bg-primary);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Burger Menu Button */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 255, 255, 0.5);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #000033 100%);
  padding: 6rem 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 50% 50%,
    rgba(142, 45, 226, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-purple),
    var(--accent-pink)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.2);
  }
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero .description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(0, 255, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.75rem 2rem;
  border: 2px solid var(--accent-cyan);
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* ============================================
   Games Section
   ============================================ */

.games-section {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.game-card {
  background: var(--bg-tertiary);
  border: 2px solid var(--card-border);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1),
    rgba(142, 45, 226, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3);
}

.game-card:hover::before {
  opacity: 1;
}

.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-primary);
}

.game-info {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.game-card .btn-primary {
  width: 100%;
  text-align: center;
}

.show-more {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   Testimonial Section
   ============================================ */

.testimonial-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #000033 100%);
  position: relative;
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-tertiary);
  border: 2px solid var(--card-border);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.testimonial-name {
  font-weight: bold;
  font-size: 1.2rem;
}

.testimonial-rating {
  color: var(--accent-yellow);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background: var(--bg-primary);
  border-top: 2px solid var(--card-border);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-cyan);
}

.responsible-gaming {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.responsible-gaming img {
  width: 120px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.responsible-gaming img:hover {
  opacity: 1;
}

.responsible-gaming img[alt="18+"] {
  width: 80px;
  height: 80px !important;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   Game Page
   ============================================ */

.game-page {
  padding: 2rem;
}

.game-header {
  text-align: center;
  margin-bottom: 2rem;
}

.game-header h1 {
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.game-iframe-container {
  background: var(--bg-secondary);
  border: 2px solid var(--card-border);
  border-radius: 15px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  background: var(--bg-primary);
}

.game-info-section {
  background: var(--bg-tertiary);
  border: 2px solid var(--card-border);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.game-info-section h2 {
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.game-info-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.game-info-section ul {
  color: var(--text-secondary);
  margin-left: 2rem;
  line-height: 1.8;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-link:hover {
  text-shadow: 0 0 10px var(--accent-cyan);
}

/* ============================================
   Policy Pages
   ============================================ */

.policy-page {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.policy-page h1 {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.policy-page h2 {
  color: var(--accent-cyan);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.policy-page p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.policy-page ul,
.policy-page ol {
  color: var(--text-secondary);
  margin-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.policy-page li {
  margin-bottom: 0.5rem;
}

/* ============================================
   Popups & Modals
   ============================================ */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.popup-content {
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-cyan);
  border-radius: 15px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 60px rgba(0, 255, 255, 0.3);
  animation: popupSlide 0.3s ease;
}

@keyframes popupSlide {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-content h2 {
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.8rem;
}

.popup-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.age-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.age-selector label {
  color: var(--text-primary);
  font-weight: 500;
}

.age-selector select {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.age-selector select:hover,
.age-selector select:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

.popup-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-tertiary);
  border-top: 2px solid var(--accent-cyan);
  padding: 1.5rem 2rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner p {
  color: var(--text-secondary);
  flex: 1;
  min-width: 250px;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
}

.hidden {
  display: none !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .header-container {
    position: relative;
  }

  .burger-menu {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(
      135deg,
      var(--bg-secondary) 0%,
      var(--bg-tertiary) 100%
    );
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 2px solid var(--card-border);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  nav a {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    text-align: left;
  }

  nav a.btn-primary {
    margin-top: 1rem;
    text-align: center;
    border: none;
  }

  nav a::after {
    display: none;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.2rem;
  }

  .hero .description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .games-section {
    padding: 3rem 1rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-card {
    margin: 0 auto;
    max-width: 400px;
  }

  .game-iframe {
    height: 400px;
  }

  .game-page {
    padding: 2rem 1rem;
  }

  .game-iframe-container {
    padding: 0.5rem;
  }

  .testimonial-section {
    padding: 3rem 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .policy-page {
    padding: 3rem 1rem;
  }

  .policy-page h1 {
    font-size: 2rem;
  }

  .policy-page h2 {
    font-size: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section {
    text-align: center;
  }

  .responsible-gaming {
    justify-content: center;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .cookie-banner p {
    min-width: 100%;
    margin-bottom: 1rem;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }

  .cookie-banner-buttons button {
    width: 100%;
  }

  .popup-content {
    width: 95%;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }

  .logo img {
    height: 30px !important;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .hero .description {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .game-header h1 {
    font-size: 1.8rem;
  }

  .game-iframe {
    height: 300px;
  }

  .game-info-section {
    padding: 1.5rem;
  }

  .game-info-section h2 {
    font-size: 1.5rem;
  }

  .policy-page h1 {
    font-size: 1.8rem;
  }

  .policy-page h2 {
    font-size: 1.3rem;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
  }

  footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }

  .popup-content {
    padding: 1rem;
  }

  .popup-content h2 {
    font-size: 1.5rem;
  }

  nav {
    width: 100%;
    right: -100%;
  }

  nav.active {
    right: 0;
  }
}

/* Overlay for mobile menu */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(3px);
}

.menu-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .menu-overlay {
    display: none;
  }

  .menu-overlay.active {
    display: block;
  }
}
