/* Custom CSS for Oofa Luffa */

/* Custom Color Palette */
:root {
  --luffa-cream: #FEF7E0;
  --luffa-pink: #F8BBD9;
  --luffa-purple: #9B59B6;
  --luffa-purple-dark: #8E44AD;
  --luffa-green: #58D68D;
  --luffa-orange: #F39C12;
  --luffa-yellow: #F7DC6F;
  --luffa-dark: #2C3E50;
  --luffa-gray: #7F8C8D;
}

/* Tailwind Custom Colors */
.bg-luffa-cream { background-color: var(--luffa-cream); }
.bg-luffa-pink { background-color: var(--luffa-pink); }
.bg-luffa-purple { background-color: var(--luffa-purple); }
.bg-luffa-purple-dark { background-color: var(--luffa-purple-dark); }
.bg-luffa-green { background-color: var(--luffa-green); }
.bg-luffa-orange { background-color: var(--luffa-orange); }
.bg-luffa-yellow { background-color: var(--luffa-yellow); }
.bg-luffa-dark { background-color: var(--luffa-dark); }
.bg-luffa-gray { background-color: var(--luffa-gray); }

.text-luffa-cream { color: var(--luffa-cream); }
.text-luffa-pink { color: var(--luffa-pink); }
.text-luffa-purple { color: var(--luffa-purple); }
.text-luffa-purple-dark { color: var(--luffa-purple-dark); }
.text-luffa-green { color: var(--luffa-green); }
.text-luffa-orange { color: var(--luffa-orange); }
.text-luffa-yellow { color: var(--luffa-yellow); }
.text-luffa-dark { color: var(--luffa-dark); }
.text-luffa-gray { color: var(--luffa-gray); }

.border-luffa-purple { border-color: var(--luffa-purple); }
.border-luffa-green { border-color: var(--luffa-green); }
.border-luffa-orange { border-color: var(--luffa-orange); }

/* Custom Fonts */
.font-poppins { font-family: 'Poppins', sans-serif; }
.font-dancing { font-family: 'Dancing Script', cursive; }

/* Custom Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(155, 89, 182, 0.3); }
  50% { box-shadow: 0 0 20px rgba(155, 89, 182, 0.6); }
}

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

.glow-animation {
  animation: glow 2s ease-in-out infinite;
}

/* Custom Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--luffa-purple), var(--luffa-pink));
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--luffa-purple);
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid var(--luffa-purple);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--luffa-purple);
  color: white;
  transform: translateY(-2px);
}

/* Custom Card Styles */
.product-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-card img {
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

/* Custom Gradient Backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, var(--luffa-cream) 0%, var(--luffa-pink) 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, var(--luffa-purple) 0%, var(--luffa-pink) 100%);
}

.gradient-green {
  background: linear-gradient(135deg, var(--luffa-green) 0%, var(--luffa-orange) 100%);
}

/* Custom Form Styles */
.form-input {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--luffa-purple);
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

/* Custom Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: var(--luffa-green);
  color: white;
}

.badge-bestseller {
  background: var(--luffa-orange);
  color: white;
}

.badge-sale {
  background: var(--luffa-pink);
  color: white;
}

/* Custom Navigation Styles */
.nav-link {
  position: relative;
  color: var(--luffa-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--luffa-purple);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--luffa-purple);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Custom Hero Section */
.hero-bg {
  background: linear-gradient(135deg, var(--luffa-cream) 0%, var(--luffa-pink) 50%, var(--luffa-yellow) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

/* Custom Footer Styles */
.footer-bg {
  background: linear-gradient(135deg, var(--luffa-dark) 0%, #34495e 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--luffa-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--luffa-purple-dark);
}

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--luffa-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

/* Custom Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-weight: 500;
}

.alert-success {
  background: rgba(88, 214, 141, 0.1);
  color: var(--luffa-green);
  border: 1px solid var(--luffa-green);
}

.alert-error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.alert-info {
  background: rgba(155, 89, 182, 0.1);
  color: var(--luffa-purple);
  border: 1px solid var(--luffa-purple);
}

/* Logo Styles */
.logo-svg {
  transition: all 0.3s ease;
}

.logo-svg:hover {
  transform: scale(1.05);
}

/* Footer logo - ensure visibility on dark background */
footer .logo-svg {
  filter: brightness(0) invert(1);
}

footer .logo-svg:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(155, 89, 182, 0.5));
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
