/* Wantable Create — Global Styles */

/* x-cloak removed — Alpine.js fully replaced with Stimulus */

/* ── Layout ── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}

.nav-link.active {
  background: rgba(14,165,233,0.1);
  color: #f1f5f9;
  border-left-color: #0ea5e9;
}

.nav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.65;
}

.nav-link.active .nav-icon { opacity: 1; }

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #475569;
  padding: 3px 6px;
  margin-top: 12px;
  margin-bottom: 2px;
}

/* ── Collapsible nav section buttons (production parity) ── */
.nav-section-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 3px 6px;
  margin-top: 8px;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #475569;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: color 0.15s;
}
.nav-section-btn:hover { color: #64748b; }
.nav-section-btn .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-section-btn.collapsed .chevron { transform: rotate(-90deg); }

/* ── Nav badge pills ── */
.nav-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 9999px;
  padding: 1px 5px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
}
.nav-badge-red   { background: #ef4444; color: white; }
.nav-badge-amber { background: #f59e0b; color: white; }
.nav-badge-slate { background: #475569; color: #cbd5e1; }

/* ── Cards ── */
.card {
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card-sm { padding: 16px; }

.stat-card {
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-xs { font-size: 10px; padding: 1px 5px; }

.badge-pending     { background: #fef9c3; color: #854d0e; }
.badge-generating  { background: #fff7ed; color: #c2410c; }
.badge-review      { background: #fef3c7; color: #92400e; }
.badge-approved    { background: #dcfce7; color: #166534; }
.badge-published   { background: #dbeafe; color: #1e40af; }
.badge-declined    { background: #fee2e2; color: #991b1b; }
.badge-uploaded    { background: #ede9fe; color: #5b21b6; }
.badge-default     { background: #f1f5f9; color: #475569; }

.badge-seas        { background: #e0f2fe; color: #0369a1; }
.badge-interval    { background: #ede9fe; color: #6d28d9; }
.badge-wantable    { background: #fef3c7; color: #92400e; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-sm   { padding: 5px 10px; font-size: 12px; }
.btn-xs   { padding: 3px 8px; font-size: 11.5px; }

.btn-primary   { background: #0ea5e9; color: white; }
.btn-primary:hover { background: #0284c7; }

.btn-warning   { background: #f59e0b; color: white; }
.btn-warning:hover { background: #d97706; }

.btn-secondary { background: #f1f5f9; color: #374151; border-color: #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; }

.btn-ghost     { background: transparent; color: #64748b; }
.btn-ghost:hover { background: #f8fafc; }

.btn-purple    { background: #8b5cf6; color: white; }
.btn-purple:hover { background: #7c3aed; }

.btn-danger    { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }

/* ── Form inputs ── */
.input {
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 13px;
  background: white;
  transition: border-color 0.15s;
  width: 100%;
}

.input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

.input-sm { padding: 5px 8px; font-size: 12px; }

.select {
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 13px;
  background: white;
}

.select-sm { padding: 5px 8px; font-size: 12px; }

/* ── Utilities ── */
.fade-in {
  animation: fadeIn 0.2s ease;
}

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

/* ── Affiliate Portal ── */
.affiliate-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ══════════════════════════════════════════════════════════════
   Split-Screen Auth Layout — merch.wantable.com inspired
   ══════════════════════════════════════════════════════════════ */

/* Accent color */
:root {
  --accent: #e8845f;
  --accent-dark: #d0683f;
}

.auth-body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

/* Full-screen split */
.auth-split-layout {
  display: flex;
  min-height: 100vh;
}

/* ── LEFT panel: lifestyle image ── */
.auth-split-left {
  flex: 0 0 60%;
  position: relative;
  background-color: #1a1a1a;
  background-image:
    url("/images/auth-hero.jpg"),
    linear-gradient(160deg, #1a1412 0%, #2d1f18 30%, #1e1a2e 70%, #0f1520 100%);
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

/* Dark gradient overlay — bottom-left emphasis */
.auth-split-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.50) 100%
  );
}

/* Text at bottom-left of image */
.auth-split-text {
  position: absolute;
  bottom: 48px;
  left: 48px;
  right: 48px;
  z-index: 10;
}

.auth-brand-mark {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.brand-wantable {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.brand-create {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.auth-brand-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.80);
  line-height: 1.55;
  max-width: 440px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ── RIGHT panel: form ── */
.auth-split-right {
  flex: 0 0 40%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.auth-form-container {
  width: 100%;
  max-width: 380px;
}

/* ── Form heading ── */
.auth-heading {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.3px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.auth-heading .brand-create { font-size: 24px; }

.auth-subtext {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ── Auth form inputs ── */
.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.auth-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #111;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 132, 95, 0.12);
  background: #fff;
}

/* ── Primary submit button ── */
.auth-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.auth-btn-primary:hover {
  background: #222;
  transform: translateY(-1px);
}

/* ── Google SSO button ── */
.auth-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.auth-btn-google:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #d1d5db;
  font-size: 12px;
  color: #9ca3af;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ── Flash messages ── */
.auth-flash {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
}

.auth-flash--notice, .auth-flash--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.auth-flash--alert, .auth-flash--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Auxiliary links ── */
.auth-aux-link {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-top: 20px;
}

.auth-aux-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-aux-link a:hover { text-decoration: underline; }

.auth-note {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 12px;
}

.auth-field-group { margin-bottom: 16px; }

/* ── Responsive: stack on mobile ── */
@media (max-width: 768px) {
  .auth-split-layout { flex-direction: column; }
  .auth-split-left { flex: 0 0 240px; min-height: 240px; }
  .auth-split-right { flex: 1; padding: 32px 24px; }
  .auth-split-text { bottom: 24px; left: 24px; right: 24px; }
  .brand-wantable, .brand-create { font-size: 22px; }
  .auth-brand-sub { font-size: 13px; }
}

/* ── Mine/All toggle ── */
.filter-toggle {
  display: inline-flex;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
}

.filter-toggle a {
  padding: 5px 12px;
  color: #64748b;
  text-decoration: none;
  background: white;
  transition: all 0.12s;
}

.filter-toggle a:hover { background: #f8fafc; }

.filter-toggle a.active {
  background: #0ea5e9;
  color: white;
}

/* ── Activity log ── */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.activity-icon--created  { background: #dcfce7; }
.activity-icon--approved { background: #dbeafe; }
.activity-icon--declined { background: #fee2e2; }
.activity-icon--edited   { background: #fef9c3; }
.activity-icon--deleted  { background: #f3f4f6; }

/* ── Table utilities ── */
.tbl-header {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tbl-cell { padding: 11px 14px; font-size: 13px; color: #374151; }
.tbl-row:hover { background: #f9fafb; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Flash messages ── */
.flash-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.flash-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.flash-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Image card ── */
.img-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
}
.img-card img { width: 100%; height: 100%; object-fit: contain; }
.img-card.approved  { border-color: #86efac; }
.img-card.declined  { border-color: #fca5a5; }
.img-card.generating { border-color: #fcd34d; }

/* ── Pipeline job card ── */
.job-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.job-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }
.job-card.selected { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }

/* ── Badge extra variants ── */
.badge-failed   { background: #fce7f3; color: #9d174d; }
.badge-flat-lay { background: #fef3c7; color: #92400e; }
.badge-ghost    { background: #f3e8ff; color: #6b21a8; }
.badge-lg { padding: 4px 10px; font-size: 12.5px; }

/* ── Btn extra variants ── */
.btn-success        { background: #16a34a; color: white; border: 1px solid #15803d; }
.btn-success:hover  { background: #15803d; }
