/* Puzzle Shop Main CSS */

/* Color Variables */
:root {
  --primary-color: #6366f1;
  --primary-light: #a5b4fc;
  --primary-dark: #4338ca;
  --secondary-color: #ec4899;
  --secondary-light: #f9a8d4;
  --secondary-dark: #db2777;
  --accent-color: #10b981;
  --accent-light: #6ee7b7;
  --accent-dark: #059669;
  --warning-color: #f59e0b;
  --warning-light: #fcd34d;
  --warning-dark: #d97706;
  --danger-color: #ef4444;
  --danger-light: #fca5a5;
  --danger-dark: #dc2626;
  --light-bg: #f8fafc;
  --dark-bg: #1e293b;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
}

/* Base Styles */
body {
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.navbar-brand {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  margin: 0 0.5rem;
  border-radius: 6px;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: var(--primary-color);
  color: white !important;
  transform: translateY(-1px);
}

/* Reviews/Testimonials */
.reviews-swiper {
  padding: 2rem 0;
}

.swiper-slide {
  height: auto;
}

.swiper-pagination-bullet {
  background-color: var(--primary-color);
}

/* FAQ Section */
.accordion-button {
  background-color: var(--light-bg);
  border: none;
  font-weight: 500;
  color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: white;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #334155 100%);
  color: #e2e8f0;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-light) !important;
}

/* Form Styles */
.form-control {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
