/* FunnyTimeDe.com - Bright & Friendly Casual Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Fredoka:wght@300;400;500;600&display=swap');

/* CSS Variables - Bright & Playful Colors */
:root {
  /* Primary Colors - Bright & Fun */
  --fun-blue: #4A90E2;
  --fun-pink: #FF6B9D;
  --fun-yellow: #FFD93D;
  --fun-mint: #6BCF7F;
  --fun-purple: #A855F7;
  --fun-orange: #FF8A50;
  
  /* Light Variations */
  --fun-blue-light: #7BB3FF;
  --fun-pink-light: #FFB3D1;
  --fun-yellow-light: #FFF176;
  --fun-mint-light: #A8E6CF;
  --fun-purple-light: #C084FC;
  --fun-orange-light: #FFB380;
  
  /* Background Colors */
  --bg-primary: #FEFEFE;
  --bg-secondary: #F8F9FF;
  --bg-card: #FFFFFF;
  --bg-gradient: linear-gradient(135deg, var(--fun-blue-light) 0%, var(--fun-pink-light) 50%, var(--fun-yellow-light) 100%);
  --bg-hero: linear-gradient(135deg, #FF6B9D 0%, #4A90E2 50%, #6BCF7F 100%);
  
  /* Text Colors */
  --text-primary: #2D3748;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --text-white: #FFFFFF;
  
  /* Shadows & Effects */
  --shadow-soft: 0 4px 20px rgba(74, 144, 226, 0.15);
  --shadow-card: 0 8px 32px rgba(74, 144, 226, 0.12);
  --shadow-button: 0 4px 16px rgba(255, 107, 157, 0.3);
  --shadow-hover: 0 12px 40px rgba(74, 144, 226, 0.2);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--fun-pink) 0%, var(--fun-blue) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--fun-yellow) 0%, var(--fun-orange) 100%);
  --gradient-success: linear-gradient(135deg, var(--fun-mint) 0%, var(--fun-blue) 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 255, 0.9) 100%);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 50px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: 'Fredoka', cursive;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--text-white);
  box-shadow: var(--shadow-button);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--text-white);
  box-shadow: var(--shadow-button);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Header */
.header {
  background: var(--bg-card);
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: 'Fredoka', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--fun-pink);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: var(--bg-hero);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: none;
  -webkit-text-fill-color: var(--text-white);
}

.hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

/* Cards */
.card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.game-image {
  height: 200px;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-image::before {
  opacity: 1;
}

.game-content {
  padding: 2rem;
}

.game-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.game-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 18+ Badge */
.age-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Fredoka', cursive;
  z-index: 10;
  box-shadow: var(--shadow-soft);
}

.header-badge {
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Fredoka', cursive;
  margin-left: 1rem;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--bg-secondary);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--text-white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--text-white);
  margin-bottom: 1rem;
  font-family: 'Fredoka', cursive;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--fun-pink-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 1rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 3px solid var(--fun-pink);
  padding: 2rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-hover);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-family: 'Fredoka', cursive;
}

.cookie-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Fredoka', cursive;
  position: relative;
  overflow: hidden;
}

.cookie-btn.accept {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-button);
}

.cookie-btn.accept:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cookie-btn.decline {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 2px solid var(--fun-mint);
}

.cookie-btn.decline:hover {
  background: var(--fun-mint-light);
  color: var(--text-white);
}

/* Form Styles */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Fredoka', cursive;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--fun-mint-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: border-color 0.3s ease;
  background: var(--bg-card);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--fun-pink);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Warning Messages */
.game-warning {
  background: var(--fun-yellow-light);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  font-family: 'Fredoka', cursive;
  margin: 2rem 0;
  border: 2px solid var(--fun-yellow);
}

/* Animations */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -15px, 0);
  }
  70% {
    transform: translate3d(0, -7px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .hero {
    padding: 4rem 2rem;
  }
  
  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-badge {
    margin-left: 0;
  }

  .hero {
    padding: 3rem 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .card {
    padding: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cookie-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .form-container {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .cookie-banner {
    padding: 1rem;
  }

  .cookie-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .age-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .header-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .games-grid {
    gap: 1rem;
  }

  .game-content {
    padding: 1.5rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }
}

/* 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; }
