@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Common Colors */
  --primary: #0050A0;
  --primary-light: #00AEEF;
  --accent: #00AEEF;
  --secondary: #0F172A; /* Dark Navy for Footer/Sections */
  
  /* Light Mode Variables */
  --bg-main: #F8FAFC;
  --bg-modal: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Dark Mode Overrides - Matched with AppContext JS */

html[data-theme='dark'] {
  --bg-main: #0B0F19; /* Slightly deeper than before */
  --bg-modal: #1E293B;
  --bg-card: rgba(30, 41, 59, 0.9);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #334155;
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-md: 0 15px 40px rgba(0,0,0,0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

a { text-decoration: none; color: inherit; transition: 0.3s; }

ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-modal);
  border-bottom: 1px solid var(--border);
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 99px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: 0.3s;
}

.btn-premium:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.badge-promo {
  background: #EF4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  position: absolute;
  top: 15px;
  left: 15px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

/* RTL for Arabic */

[dir="rtl"] .badge-promo {
  left: auto;
  right: 15px;
}

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

.page-transition {
  animation: fadeIn 0.4s ease-out;
}
