/* public/styles/global.css */

/* 1. Amazon Color Palette */
:root {
  --amz-dark-blue: #131921;   /* Primary Navbar background */
  --amz-light-blue: #232f3e;  /* Secondary Navbar background */
  --amz-blue-hover: #37475a;
  --amz-accent: #febd69;      /* The search icon/button */
  --amz-orange: #ff9900;      /* Star ratings, buttons */
  --amz-btn-border: #f7dfa5;
  --amz-text-dark: #0f1111;
  --amz-link-blue: #007185;   /* Amazon link color */
  --amz-bg-gray: #eaeded;     /* Global background */
}

/* 1.5 Custom Neon Cyan Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 139, 139, 0.8) rgba(0, 255, 255, 0.05);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar:horizontal {
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 139, 139, 0.6);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.8);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* 2. Global Typography */
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif; /* Amazon uses similar font stacks */
  margin: 0;
  background-color: var(--amz-bg-gray);
  color: var(--amz-text-dark);
  font-size: 14px; /* Amazon uses smaller text for density */
}

/* Global Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  padding: 8px 10px;
  border: 1px solid #a6a6a6;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: #008b8b;
  box-shadow: 0 0 6px rgba(0, 139, 139, 0.4);
}

/* 3. Helper Classes */
a { text-decoration: none; color: inherit; transition: all 0.2s; }
a:hover { color: #c45500; text-decoration: underline; } /* Signature link hover */
.amz-link { color: var(--amz-link-blue); font-weight: 500; }
.amz-button-primary {
  background-color: var(--amz-orange);
  border: 1px solid #a88734;
  color: #111;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 1px 2px rgba(0,0,0,.1);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.amz-button-primary:hover { background-color: #f7dfa5; }
.amz-button-primary:active {
  box-shadow: 0 1px 3px rgba(0,0,0,.2) inset;
  background-color: #f0c14b;
}

/* Product Star Rating (Mimics Amazon) */
.amz-rating {
  color: var(--amz-orange);
  font-size: 16px;
}

/* 4. Global Glassmorphism Theme (Overrides inline styles) */
.glass-panel {
  background: rgba(220, 235, 245, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(0, 255, 255, 0.4) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 255, 255, 0.15) !important;
}

/* 5. Global Glass Input Theme (Overrides inline styles) */
.input-glass {
  background: rgba(190, 210, 225, 0.6) !important;
  border: 1px solid rgba(0, 200, 200, 0.5) !important;
}
.input-glass:focus {
  background: rgba(230, 245, 255, 0.9) !important;
  border-color: #008b8b !important;
  box-shadow: 0 0 12px rgba(0, 139, 139, 0.4) !important;
}