/* ============================================
   SAHUR STORE - BASE STYLES
   Variables, reset, utilities, animations
   ============================================ */

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

:root {
  --color-primary: #00d4ff;
  --color-primary-dark: #0099ff;
  --color-accent: #bf00ff;
  --color-accent-hot: #ff0080;
  --color-bg-dark: #08091a;
  --color-bg-body: #06080f;
  --color-bg-card: #0d1224;
  --color-bg-card-hover: #141935;
  --color-bg-glass: rgba(0, 212, 255, 0.04);
  --color-text: #e0e0e0;
  --color-danger: #ff3366;
  --color-success: #00ff88;
  --radius: 8px;
  --radius-pill: 25px;
  --transition: 0.3s ease;
  --glow: 0 0 25px rgba(0, 212, 255, 0.45);
  --glow-strong: 0 0 50px rgba(0, 212, 255, 0.7), 0 0 100px rgba(0, 212, 255, 0.2);
  --glow-accent: 0 0 30px rgba(191, 0, 255, 0.5);
  --glow-hot: 0 0 25px rgba(255, 0, 128, 0.5);
  --gradient-primary: linear-gradient(135deg, #00d4ff, #0099ff);
  --gradient-accent: linear-gradient(135deg, #bf00ff, #ff0080);
  --gradient-hero: linear-gradient(135deg, #00d4ff 0%, #bf00ff 50%, #ff0080 100%);
  --gradient-card: linear-gradient(145deg, #0d1224 0%, #06080f 100%);
  --font-display: 'Orbitron', 'Segoe UI', sans-serif;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-body); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-primary), var(--color-accent));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%; left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-bg-dark);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

/* Focus styles */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary); outline-offset: 2px;
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow text utility */
.glow-text { text-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }

/* Card base style */
.card {
  background: var(--gradient-card);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
  box-shadow: var(--glow);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow var(--transition), background var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--glow-strong);
}

/* Button base */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.95rem; font-weight: 600;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-transform: uppercase; letter-spacing: 0.5px;
  font-family: var(--font-main);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-bg-dark);
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary); box-shadow: none;
}
.btn-outline:hover { background: rgba(0, 212, 255, 0.1); box-shadow: var(--glow); }

.btn-large { padding: 1rem 3rem; font-size: 1.05rem; }

.btn-danger {
  background: rgba(255, 51, 102, 0.15);
  border: 2px solid var(--color-danger);
  color: var(--color-danger);
}
.btn-danger:hover { background: rgba(255, 51, 102, 0.3); box-shadow: 0 0 15px rgba(255, 51, 102, 0.4); }

/* Section base */
.section { padding: 5rem 2rem; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 0.5rem; font-family: var(--font-display); }
.section-subtitle { text-align: center; color: var(--color-text); margin-bottom: 3rem; opacity: 0.75; font-size: 1.1rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* Form elements */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; position: relative; }
.form-label {
  font-size: 0.82rem; font-weight: 600; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.5rem; display: block;
}
.form-hint { color: var(--color-text); opacity: 0.6; font-size: 0.8rem; }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 212, 255, 0.05);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-text); font-size: 0.95rem; font-family: var(--font-main);
  transition: background var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  outline: none;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--glow);
}
.form-input::placeholder { color: rgba(224, 224, 224, 0.35); }

/* Shimmer button animation */
@keyframes shimmerBtn {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes neonFlicker {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 212, 255, 0.7), 0 0 20px rgba(0, 212, 255, 0.5); }
  50%      { text-shadow: 0 0 5px rgba(0, 212, 255, 0.3), 0 0 10px rgba(0, 212, 255, 0.15); }
}
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.8)); }
  50% { filter: drop-shadow(0 0 24px rgba(0, 212, 255, 1)) drop-shadow(0 0 40px rgba(191, 0, 255, 0.4)); }
}
@keyframes particleFloat {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  10%  { opacity: 1; transform: scale(1); }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}
@keyframes ctaRing {
  from { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 0.6; }
  50%  { opacity: 1; transform: translate(-50%, -50%) rotate(180deg) scale(1.05); }
  to   { transform: translate(-50%, -50%) rotate(360deg) scale(1); opacity: 0.6; }
}

/* 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;
  }
}

/* Shared modal overlay */
.modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(6px);
}
.modal.show { display: flex; justify-content: center; align-items: center; animation: fadeIn 0.3s ease; }
.modal__content {
  background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-body));
  border: 2px solid var(--color-primary); border-radius: 16px;
  box-shadow: var(--glow-strong); padding: 2.5rem; max-width: 440px; width: 92%;
  animation: slideUp 0.3s ease;
}
.modal__close { float: right; font-size: 1.75rem; font-weight: 700; color: var(--color-primary); background: none; border: none; cursor: pointer; padding: 0 0.25rem; line-height: 1; transition: color var(--transition); }
.modal__close:hover { color: var(--color-danger); }

/* Toast notification */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column-reverse; gap: 0.75rem; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 0.75rem; min-width: 300px; max-width: 420px; padding: 1rem 1.25rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-body)); border: 2px solid var(--color-primary); box-shadow: var(--glow-strong); color: var(--color-text); font-weight: 500; pointer-events: auto; animation: slideUp 0.3s ease; }
.toast--success { border-color: var(--color-success); box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
.toast--error { border-color: var(--color-danger); box-shadow: 0 0 20px rgba(255, 51, 102, 0.4); }
.toast--warning { border-color: #ffaa00; box-shadow: 0 0 20px rgba(255, 170, 0, 0.4); }
.toast__icon { font-size: 1.3rem; flex-shrink: 0; }
.toast__message { flex: 1; font-size: 0.9rem; }
.toast__close { background: none; border: none; color: var(--color-text); cursor: pointer; font-size: 1.2rem; padding: 0.25rem; opacity: 0.6; transition: opacity var(--transition); flex-shrink: 0; }
.toast__close:hover { opacity: 1; }
