/* ============================================
   PLAYGROUND PAGE - DEMO CARDS STYLES
   Author: Alessandro Terracciano
   Project: Whooho.it
   ============================================ */

/* ==================== HERO SECTION ==================== */
.playground-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
  padding: 140px 20px 80px;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(50, 50, 50, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(30, 30, 30, 0.10) 0%, transparent 40%);
  opacity: 1;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.playground-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #111;
  margin-bottom: 30px;
  padding: 10px 20px;
  border: 1px solid #111;
  border-radius: 30px;
  background: transparent;
}

.label-dot {
  width: 8px;
  height: 8px;
  background: #111;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.playground-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  text-transform: uppercase;
  color: #111;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(50px);
}

.title-line.accent {
  color: #111;
}

.playground-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #666;
  margin: 0 0 41.6;
  opacity: 0;
  transform: translateY(30px);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 1.5s forwards, float 3s ease-in-out infinite 2.5s;
}

.scroll-indicator i {
  font-size: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ==================== DEMO SECTION ==================== */
.demo-section {
  padding: 120px 20px;
  background: #fff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-intro {
  text-align: center;
  margin-bottom: 80px;
}

.section-title-small {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #111;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.section-description {
  font-size: 1.25rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================== DEMO CARDS ==================== */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.demo-card {
  position: relative;
  background: #fff;
  border: 2px solid #111;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
}

.demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.demo-card:hover::before {
  opacity: 1;
}

.demo-card:hover {
  color: #fff;
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.demo-card.featured {
  border: 2px solid #111;
  background: #fff;
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 20px;
  z-index: 100;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.demo-card:hover .card-badge {
  background: #fff;
  color: #111;
}

.card-badge.coming-soon {
  background: #666;
  color: #fff;
}

.card-badge i {
  font-size: 12px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 50;
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: all 0.3s ease;
  color: #111;
}

.demo-card:hover .card-icon {
  color: #fff;
}

.card-status {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #22c55e;
  text-transform: uppercase;
  z-index: 100;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-status.inactive {
  color: #999;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.card-status.inactive .status-dot {
  background: #999;
}

.card-body {
  margin-bottom: 25px;
  position: relative;
  z-index: 50;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
  transition: color 0.3s ease;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.demo-card:hover .card-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px;
  transition: color 0.3s ease;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
}

.demo-card:hover .card-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.card-features {
  display: grid;
  gap: 10px;
  text-align: left;
  padding: 0 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #444;
  transition: color 0.3s ease;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
}

.demo-card:hover .feature-item {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.feature-item i {
  color: #111;
  font-size: 12px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.demo-card:hover .feature-item i {
  color: #fff;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  position: relative;
  z-index: 50;
  transition: border-color 0.3s ease;
}

.demo-card:hover .card-footer {
  border-color: rgba(255, 255, 255, 0.2);
}

.demo-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #111;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  color: #111;
  z-index: 60;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.demo-btn:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.demo-card:hover .demo-btn {
  border-color: #fff;
  background: #fff;
  color: #111;
  text-shadow: none;
}

.demo-card:hover .demo-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.demo-btn.disabled {
  background: #ddd;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
}

.demo-btn.disabled:hover {
  transform: none;
  background: #ddd;
  color: #999;
}

.info-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-link:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.05);
}

.demo-card:hover .info-link {
  color: rgba(255, 255, 255, 0.7);
}

.demo-card:hover .info-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== STATS SECTION ==================== */
.stats-section {
  padding: 100px 20px;
  background: #f9f9f9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  background: #fff;
  border: 2px solid #111;
  transition: all 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: #111;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-number {
  color: #fff;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  padding: 120px 20px;
  background: #fff;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 20px;
  line-height: 1.2;
}

.cta-description {
  font-size: 1.25rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 40px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: #111;
  color: #fff;
  border: 2px solid #111;
}

.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
  background: transparent;
  color: #111;
  border: 2px solid #111;
}

.cta-btn.secondary:hover {
  background: #111;
  color: #fff;
  transform: translateY(-3px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .demo-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .playground-hero {
    min-height: 50vh;
    padding: 100px 20px 60px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-card {
    padding: 30px 20px;
  }

  .card-footer {
    flex-direction: column;
    gap: 10px;
  }

  .demo-btn,
  .info-link {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-content {
    padding: 0 20px;
    max-width: 100%;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding: 0;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero-label {
    font-size: 12px;
    padding: 8px 16px;
  }

  .playground-title {
    font-size: 2.5rem;
  }

  .section-title-small {
    font-size: 12px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== ANIMATIONS ==================== */
@media (prefers-reduced-motion: no-preference) {
  .demo-card {
    animation: fadeInUp 0.8s ease-out forwards;
  }

  .demo-card:nth-child(1) { animation-delay: 0.2s; }
  .demo-card:nth-child(2) { animation-delay: 0.4s; }
  .demo-card:nth-child(3) { animation-delay: 0.6s; }
}
