/* ============================================
   Roz Skin - Enhanced Brand Identity CSS
   تحسينات الهوية البصرية والتصميم
   ============================================ */

:root {
  /* ============================================
     Primary Colors - وردي فاخر وأنيق
     ============================================ */
  --brand-primary: #E91E63;           /* Pink 500 - وردي قوي */
  --brand-primary-light: #F8BBD0;     /* Pink 100 - وردي فاتح */
  --brand-primary-dark: #C2185B;      /* Pink 700 - وردي داكن */
  --brand-primary-hover: #AD1457;      /* Pink 800 - للـ hover */

  /* Secondary Colors - ذهبي فاخر */
  --brand-secondary: #D4AF37;          /* Gold - ذهبي أنيق */
  --brand-secondary-light: #F5E6D3;  /* Gold Light */
  --brand-secondary-dark: #B8941F;    /* Gold Dark */

  /* Accent Colors - لافندر ناعم */
  --brand-accent: #B19CD9;            /* Lavender */
  --brand-accent-light: #E6D9F5;
  --brand-accent-dark: #8B6FB8;

  /* Neutral Colors */
  --brand-text-primary: #2C2C2C;      /* أسود ناعم */
  --brand-text-secondary: #6B7280;   /* رمادي */
  --brand-text-light: #9CA3AF;        /* رمادي فاتح */
  --brand-background: #FFFFFF;
  --brand-background-alt: #FEF7F7;   /* خلفية وردية فاتحة جداً */
  --brand-background-soft: #FFF5F8;   /* خلفية وردية ناعمة */

  /* Status Colors */
  --brand-success: #10B981;           /* Emerald 500 */
  --brand-warning: #F59E0B;          /* Amber 500 */
  --brand-danger: #EF4444;           /* Red 500 */
  --brand-info: #3B82F6;             /* Blue 500 */

  /* Typography */
  --brand-font-primary: 'Tajawal', 'Work Sans', sans-serif;
  --brand-font-secondary: 'Work Sans', sans-serif;

  /* Spacing System */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 3rem;      /* 48px */
  --spacing-2xl: 4rem;     /* 64px */

  /* Border Radius */
  --radius-sm: 0.5rem;     /* 8px */
  --radius-md: 0.75rem;    /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 35px rgba(233, 30, 99, 0.2);
  --shadow-brand: 0 4px 20px rgba(233, 30, 99, 0.25);
}

/* ============================================
   Utility Classes
   ============================================ */

/* Colors */
.bg-brand-primary { background-color: var(--brand-primary); }
.bg-brand-secondary { background-color: var(--brand-secondary); }
.bg-brand-accent { background-color: var(--brand-accent); }
.bg-brand-background-alt { background-color: var(--brand-background-alt); }

.text-brand-primary { color: var(--brand-primary); }
.text-brand-secondary { color: var(--brand-text-secondary); }

/* ============================================
   Enhanced Buttons
   ============================================ */

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--brand-font-primary);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary-hover) 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--brand-font-primary);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Enhanced Product Cards
   ============================================ */

.product-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  background: var(--brand-background-soft);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  z-index: 10;
}

.product-badge-success {
  background: linear-gradient(135deg, var(--brand-success) 0%, #059669 100%);
}

/* ============================================
   Enhanced Navigation
   ============================================ */

.navbar-enhanced {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(233, 30, 99, 0.1);
}

.nav-link {
  position: relative;
  color: var(--brand-text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-dark));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--brand-primary);
}

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

/* ============================================
   Hero Section Enhancements
   ============================================ */

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-background-soft) 0%, var(--brand-background-alt) 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: blob 20s infinite;
}

.hero-blob-1 {
  width: 300px;
  height: 300px;
  background: var(--brand-primary-light);
  top: 20%;
  right: 10%;
}

.hero-blob-2 {
  width: 250px;
  height: 250px;
  background: var(--brand-accent-light);
  bottom: 20%;
  left: 10%;
  animation-delay: -10s;
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* ============================================
   Category Cards
   ============================================ */

.category-card {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.category-card:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}

.category-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
  z-index: 2;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 1;
}

.category-card:hover .category-card-overlay {
  background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   Discount Badge
   ============================================ */

.discount-badge {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================
   Rating Stars
   ============================================ */

.rating-stars {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.rating-star {
  color: #FFD700;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.rating-star:hover {
  transform: scale(1.2);
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #f8f8f8 50%,
    #f0f0f0 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ============================================
   Loading Spinner
   ============================================ */

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--brand-primary-light);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--brand-text-secondary);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  color: var(--brand-primary-light);
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-text-primary);
  margin-bottom: var(--spacing-sm);
}

.empty-state-description {
  font-size: 1rem;
  color: var(--brand-text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   Responsive Enhancements
   ============================================ */

@media (max-width: 768px) {
  .category-card {
    width: 100px;
    height: 100px;
  }
  
  .category-card-content {
    font-size: 0.75rem;
  }
  
  .product-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* ============================================
   Dark Mode Support (Future)
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --brand-background: #1f2937;
    --brand-background-alt: #111827;
    --brand-text-primary: #f9fafb;
    --brand-text-secondary: #d1d5db;
  }
}

