/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ========================================
   Marketing Platform Styles
   ======================================== */

/* Typography & Fonts */
.font-display {
  font-family: 'DM Sans', sans-serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Fred Brand Colors */
.text-fred-green {
  color: #10B981;
}

.bg-fred-green {
  background-color: #10B981;
}

.bg-fred-green-light {
  background-color: #D1FAE5;
}

.text-fred-blue {
  color: #3B82F6;
}

.bg-fred-blue {
  background-color: #3B82F6;
}

.bg-fred-blue-light {
  background-color: #DBEAFE;
}

.text-fred-purple {
  color: #A78BFA;
}

.bg-fred-purple {
  background-color: #A78BFA;
}

.bg-fred-purple-light {
  background-color: #E9D5FF;
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, #E0F2F1 0%, #E1F5FE 50%, #F3E5F5 100%);
}

/* Checkout Mockup */
.checkout-mockup {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgb(243, 244, 246);
}

.product-image {
  width: 100% !important;
  height: 200px !important;
  min-height: 200px !important;
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
  border-radius: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  margin-bottom: 24px;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-up.delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.animate-fade-in-up.delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-fade-in-up.delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}

.animate-fade-in-up.delay-4 {
  animation-delay: 0.4s;
  opacity: 0;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-slide-in-right.delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Buttons */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Cards */
.card-float {
  transition: all 0.3s ease;
}

.card-float:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hero-gradient {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .checkout-mockup {
    padding: 24px;
  }

  .product-image {
    height: 150px;
    font-size: 60px;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Focus States (Accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .hero-gradient,
  .animate-float,
  .animate-fade-in-up,
  .animate-slide-in-right {
    animation: none !important;
  }
}
