/* src/styles/theme.css */
:root {
  /* --- THEME PALETTE (Change these to switch themes) --- */
  
  /* Primary Colors */
  --color-primary: #635bff;       /* Main Brand Color (Buttons, Links) */
  --color-primary-hover: #4a3fd6; /* Darker shade for hover */
  
  /* Backgrounds */
  --color-bg-body: #f9fafb;       /* Page Background */
  --color-bg-card: #ffffff;       /* Product Card Background */
  
  /* Text Colors */
  --color-text-main: #111827;     /* Headings, Prices */
  --color-text-muted: #6b7280;    /* Descriptions, Badges */
  
  /* Borders & Accents */
  --color-border: #e5e7eb;        /* Card borders */
  --color-accent: #f3f4f6;        /* Badge backgrounds */
  
  /* Spacing & Radius */
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  
  /* Fonts */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- PRESET THEMES (Uncomment to test) --- */

/* Ocean Theme */
/*
:root {
  --color-primary: #0ea5e9;
  --color-primary-hover: #0284c7;
  --color-bg-body: #f0f9ff;
  --color-bg-card: #ffffff;
  --color-text-main: #0c4a6e;
  --color-text-muted: #64748b;
  --color-border: #bae6fd;
  --color-accent: #e0f2fe;
}
*/

/* Sunset Theme */
/*
:root {
  --color-primary: #f97316;
  --color-primary-hover: #ea580c;
  --color-bg-body: #fff7ed;
  --color-bg-card: #ffffff;
  --color-text-main: #7c2d12;
  --color-text-muted: #9ca3af;
  --color-border: #fed7aa;
  --color-accent: #ffedd5;
}
*/

/* Global Resets */
body {
  font-family: var(--font-main);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Navigation Bar */
.navbar {
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Cards */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: calc(var(--radius-card) - 4px);
  background-color: var(--color-accent);
  margin-bottom: 1rem;
}

/* Typography */
h1, h2, h3 {
  color: var(--color-text-main);
  margin-top: 0;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0.5rem 0;
}

.badge {
  background-color: var(--color-accent);
  color: var(--color-text-muted);
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- CYBERPUNK GLOW EFFECTS --- */

/* Neon glow on buttons */
.btn {
  text-shadow: none;
}

/* Cyberpunk card hover glow */
.card:hover {
  box-shadow: 0 0 20px rgba(0, 255, 245, 0.15);
}

/* Neon underline on nav links */
.nav-link:hover {
  text-shadow: 0 0 8px currentColor;
}

/* Cyberpunk logo glow */
.nav-logo {
  text-shadow: 0 0 10px currentColor;
}

/* Scanline overlay (subtle CRT effect) */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0;
  transition: opacity 0.3s;
}

/* --- VAPORWAVE GRADIENT ACCENTS --- */

/* Gradient on navbar */
.navbar {
  background-image: none;
}

/* Vaporwave card shimmer */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 113, 206, 0.05),
    transparent
  );
  transition: none;
}

/* Vaporwave logo gradient */
.nav-logo {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}


body { font-family: sans-serif; margin: 0; padding: 0; }
header { background: #333; color: white; padding: 1rem; }
nav a { color: white; margin-right: 15px; text-decoration: none; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; padding: 1rem; }
.product-card { border: 1px solid #ddd; padding: 1rem; text-align: center; }
.admin-layout { display: flex; }
aside { width: 200px; background: #f4f4f4; padding: 1rem; }
main { flex: 1; padding: 1rem; }