/* JoySpinHub - Modern Geometric Gaming Theme */
/* Typography: Poppins + Inter */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

/* CSS Variables - Romantic Love Theme */
:root {
  /* Primary Colors - Book of Love Theme */
  --primary-dark: #2d1b2e;
  --primary-pink: #8b3a62;
  --accent-rose: #c44569;
  --accent-bright: #ff6b9d;
  --accent-purple: #774f7e;
  --accent-gold: #d4af37;

  /* Neutral Colors */
  --white: #ffffff;
  --light-pink: #fff5f7;
  --medium-gray: #a8798f;
  --dark-gray: #4a2f3e;

  /* Gradient Combinations */
  --gradient-primary: linear-gradient(
    135deg,
    #2d1b2e 0%,
    #8b3a62 50%,
    #c44569 100%
  );
  --gradient-accent: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  --gradient-warm: linear-gradient(135deg, #ff6b9d 0%, #774f7e 100%);
  --gradient-overlay: linear-gradient(
    135deg,
    rgba(255, 107, 157, 0.1) 0%,
    rgba(196, 69, 105, 0.1) 100%
  );

  /* Typography */
  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Layout */
  --container-max: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(196, 69, 105, 0.15);
  --shadow-lg: 0 20px 40px rgba(196, 69, 105, 0.2);
  --shadow-glow: 0 0 30px rgba(255, 107, 157, 0.4);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-gray);
  background: var(--light-pink);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Buttons - Geometric Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--accent-bright);
}

.btn-secondary:hover {
  background: var(--accent-bright);
  color: var(--white);
  transform: translateY(-2px);
}

/* Navigation - Romantic Style */
.navbar {
  background: rgba(45, 27, 46, 0.95);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 107, 157, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-display);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-menu a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover {
  color: var(--accent-bright);
}

.nav-menu a:hover::before {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section - Modern Geometric Layout */
.hero {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 600px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
}

/* General Section Spacing */
section {
  display: block;
  position: relative;
  clear: both;
}

/* Game Section - Card Grid Layout */
.games-section {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.games-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.games-section > .container > p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 107, 157, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-bright);
}

.game-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.game-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.game-card p {
  color: var(--medium-gray);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.game-frame {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: var(--border-radius);
  background: var(--light-gray);
}

.show-more-container {
  text-align: center;
  margin-top: 3rem;
}

/* Game Page Specific */
.game-page {
  padding: 4rem 0;
  background: var(--white);
}

.game-page h1 {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 3rem;
}

.game-container {
  max-width: 1200px;
  margin: 0 auto 4rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.game-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.info-box {
  background: var(--light-pink);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 107, 157, 0.2);
}

.info-box h2 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box ul li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--medium-gray);
}

.info-box ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: bold;
}

/* Reviews Section */
.reviews-section {
  padding: 6rem 0;
  background: var(--light-pink);
}

.reviews-section h2 {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.reviews-section > .container > p {
  text-align: center;
  color: var(--medium-gray);
  margin-bottom: 4rem;
}

.game-reviews {
  margin-bottom: 5rem;
}

.game-reviews h3 {
  color: var(--primary-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-bright);
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 107, 157, 0.2);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.review-author {
  font-weight: 600;
  color: var(--primary-dark);
  font-family: var(--font-display);
}

.review-date {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.review-rating {
  margin-bottom: 1rem;
  color: var(--accent-bright);
  font-size: 1.2rem;
}

.review-text {
  color: var(--medium-gray);
  line-height: 1.6;
}

/* About Section - Split Layout */
.about {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--light-pink) 0%,
    rgba(255, 107, 157, 0.05) 100%
  );
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-dark);
  margin-bottom: 2rem;
}

.about-text p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.about-image-placeholder {
  width: 100%;
  height: 400px;
  background: rgba(255, 107, 157, 0.1);
  border: 2px dashed var(--accent-bright);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  font-size: 1.2rem;
  backdrop-filter: blur(5px);
}

/* Legal Pages */
.legal-page {
  padding: 4rem 0;
  background: var(--white);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  color: var(--primary-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h2 {
  color: var(--primary-dark);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.legal-content h3 {
  color: var(--accent-cyan);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.legal-content ul,
.legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  color: var(--medium-gray);
  margin-bottom: 0.8rem;
}

.legal-content a {
  color: var(--accent-bright);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Footer - Horizontal Layout */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 107, 157, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--accent-bright);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.footer-section ul li a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-disclaimer {
  background: var(--primary-pink);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  border-top: 2px solid var(--accent-bright);
}

/* Age Verification Modal */
.age-verification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 27, 46, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.age-verification.show {
  display: flex;
}

.age-modal {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--accent-bright);
  position: relative;
  overflow: hidden;
}

.age-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.age-modal h2 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.age-modal p {
  color: var(--medium-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
}

.age-accept {
  background: var(--gradient-accent);
  color: var(--white);
}

.age-accept:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.age-decline {
  background: var(--medium-gray);
  color: var(--white);
}

.age-decline:hover {
  background: var(--dark-gray);
  transform: translateY(-2px);
}

.modal-open {
  overflow: hidden;
}

/* Cookies Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(45, 27, 46, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  z-index: 9999;
  border-top: 2px solid var(--accent-bright);
  box-shadow: 0 -4px 20px rgba(196, 69, 105, 0.3);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  color: var(--white);
  flex: 1;
  min-width: 300px;
}

.cookie-text p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.cookie-text a {
  color: var(--accent-bright);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cookie-accept {
  background: var(--gradient-accent);
  color: var(--white);
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cookie-reject {
  background: var(--medium-gray);
  color: var(--white);
}

.cookie-reject:hover {
  background: var(--dark-gray);
}

/* Contact Form Styles */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 107, 157, 0.2);
  max-width: 700px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-dark);
  font-family: var(--font-display);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 107, 157, 0.2);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--light-pink);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}

/* Animation Classes */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.iframe-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.loading-content {
  text-align: center;
  color: var(--primary-dark);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 107, 157, 0.3);
  border-top: 3px solid var(--accent-bright);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 0.6;
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.05);
  }
}

.game-icon {
  animation: heartbeat 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-info {
    grid-template-columns: 1fr;
  }

  .age-modal {
    padding: 2rem;
    margin: 1rem;
  }

  .age-buttons {
    flex-direction: column;
    align-items: center;
  }

  .age-btn {
    width: 100%;
    max-width: 250px;
  }

  .contact-form {
    padding: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .info-box {
    padding: 1.5rem;
  }
}
