/* ============================================
   SEB & BAYOR — Global Styles
   ============================================ */

/* Corporate Zone */
:root,
[data-zone="corporate"] {
  --color-primary: #2F5D6C;
  --color-primary-fg: #FFFFFF;
  --color-accent: #12EDA9;
  --color-accent-fg: #0A0A0A;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius: 6px;
  --bg-surface: #F4F4F4;
}

/* Shop Zone — AnythingDrugs */
[data-zone="shop"] {
  --color-primary: #12EDA9;
  --color-primary-fg: #0A0A0A;
  --color-accent: #2F5D6C;
  --color-accent-fg: #FFFFFF;
  --font-heading: 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius: 10px;
  --bg-surface: #FFFFFF;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  background-color: var(--color-accent);
  color: var(--color-accent-fg);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.btn-accent:hover { opacity: 0.9; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}

/* Layout */
.section-padding { padding: 4rem 1rem; }
@media (min-width: 768px) { .section-padding { padding: 4rem 2rem; } }
@media (min-width: 1024px) { .section-padding { padding: 4rem 4rem; } }
@media (min-width: 1280px) { .section-padding { padding: 4rem 6rem; } }

.container-max { max-width: 80rem; margin: 0 auto; }

/* Form inputs */
.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: #111827;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: #2F5D6C;
  box-shadow: 0 0 0 1px #2F5D6C;
}
.form-input-icon {
  padding-left: 2.5rem;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-gray { background: #f3f4f6; color: #374151; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-teal { background: #ccfbf1; color: #134e4a; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  animation: spin 1s linear infinite;
  border: 2px solid #e5e7eb;
  border-top-color: #2F5D6C;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
}

/* Hide scrollbar on nav overflow */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

/* Top progress bar */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  z-index: 9999;
  width: 0;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#page-loader.active {
  opacity: 1;
  animation: progress-bar 0.8s ease-out forwards;
}
#page-loader.done {
  width: 100% !important;
  opacity: 0;
  transition: opacity 0.3s 0.1s;
}

@keyframes progress-bar {
  0%   { width: 0; }
  30%  { width: 40%; }
  60%  { width: 65%; }
  80%  { width: 80%; }
  100% { width: 90%; }
}

/* Page content fade-in */
body {
  opacity: 0;
  animation: page-fade-in 0.4s ease-out 0.05s forwards;
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section stagger reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
