/* NdA — Namoro por temporada · Global Styles */

/* ── Brand palette (NdA) ──────────────────────────────────────────────────────
   Soft, romantic, rounded. Cream background, warm rose-red accent, deep maroon
   ink. Tokens are the single source of truth — retune here and the whole app
   re-skins through the cascade.
   bg #FBEDE9 · accent #C0314A · ink #2A1418 · muted #8A646D
*/

:root {
  /* Primary rose-red palette */
  --color-primary-900: #6E1B2B;  /* deep rose — pressed / headers */
  --color-primary-600: #A8283C;  /* rich rose — hover */
  --color-primary-500: #C0314A;  /* brand rose-red — CTAs, hearts */
  --color-primary-400: #D85A70;  /* coral rose — highlights, prices */
  --color-primary-50:  #FBEDE9;  /* warm cream — app background */

  /* Accent */
  --color-accent-gold: #E6A532;  /* warm gold — stars, badges */
  --color-accent-dark: #2A1418;  /* deep maroon — primary text */
  --color-muted:       #8A646D;  /* muted mauve — secondary text */

  /* Neutral (warm-tinted) */
  --color-neutral-50: #FFFFFF;
  --color-neutral-100: #FBF4F1;
  --color-neutral-200: #F0E2DC;
  --color-neutral-300: #DEC9C2;
  --color-neutral-500: #8A646D;
  --color-neutral-700: #4A2C32;
  --color-neutral-900: #2A1418;

  /* Semantic */
  --color-success: #4CAF50;
  --color-warning: #E6A532;
  --color-error: #C0314A;
  --color-info: #5A86C0;

  /* Typography — Baloo 2 (rounded, friendly) */
  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;  /* headings + brand */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing (8px base unit) */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */

  /* Shadows — soft rose-tinted */
  --shadow-sm: 0 2px 8px rgba(192, 49, 74, 0.06);
  --shadow-md: 0 6px 18px rgba(192, 49, 74, 0.09);
  --shadow-lg: 0 12px 36px rgba(192, 49, 74, 0.12);
  --shadow-xl: 0 20px 56px rgba(192, 49, 74, 0.16);

  /* Border radius — generously rounded */
  --radius-sm: 0.5rem;     /* 8px */
  --radius-md: 0.875rem;   /* 14px */
  --radius-lg: 1.5rem;     /* 24px */
  --radius-pill: 999px;    /* pill buttons */

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 300ms ease-out;
  --transition-slow: 500ms ease-out;
}

/* ── Global Reset ────────────────────────────────────────────────────────────*/

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-accent-dark);
  background-color: var(--color-primary-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ──────────────────────────────────────────────────────────────*/

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-accent-dark);
}

h1 {
  font-size: 3rem;
  margin: var(--spacing-lg) 0 var(--spacing-md);
}

h2 {
  font-size: 2rem;
  margin: var(--spacing-lg) 0 var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

p {
  margin: var(--spacing-md) 0;
}

a {
  color: var(--color-primary-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
}

/* ── Form Elements ───────────────────────────────────────────────────────────*/

input,
textarea,
select,
button {
  font-family: var(--font-body);
  font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background-color: var(--color-neutral-50);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(192, 49, 74, 0.1);
}

button {
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-500);
  color: var(--color-neutral-50);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

button:hover {
  background-color: var(--color-primary-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Utility Classes ─────────────────────────────────────────────────────────*/

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-md {
  gap: var(--spacing-md);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.text-center {
  text-align: center;
}

/* ── Loading Shimmer Animation ──────────────────────────────────────────────*/

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    90deg,
    var(--color-neutral-200) 25%,
    var(--color-neutral-100) 50%,
    var(--color-neutral-200) 75%
  );
  background-size: 1000px 100%;
}

/* ── Responsive ──────────────────────────────────────────────────────────────*/

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  body {
    font-size: 0.9375rem;
  }
}

/* ── Toast Notifications ─────────────────────────────────────────────────── */

.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  pointer-events: all;
  animation: toast-in 0.2s ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.toast--success { background: #E8F5E9; color: #1B5E20; border-left: 4px solid var(--color-success); }
.toast--error   { background: #FFEBEE; color: #B71C1C; border-left: 4px solid var(--color-error); }
.toast--info    { background: #E3F2FD; color: #0D47A1; border-left: 4px solid var(--color-info); }

.toast__msg  { flex: 1; }
.toast__close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
  padding: 0 2px;
}
.toast__close:hover { opacity: 1; }

@media (max-width: 480px) {
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: unset; }
}

/* ── KYC Banner ──────────────────────────────────────────────────────────── */

.kyc-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFF8E1;
  border: 1px solid #FFB300;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #5D4037;
}

.kyc-banner__link {
  color: var(--color-primary-600);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

/* ── Email OTP ────────────────────────────────────────────────────────────── */
.email-otp {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-otp__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 0;
}

.email-otp__desc {
  font-size: 0.95rem;
  color: var(--color-accent-dark);
  opacity: 0.75;
  margin: 0;
}

.email-otp__error {
  color: var(--color-primary-500);
  font-size: 0.9rem;
  margin: 0;
}

.email-otp__success {
  color: #2e7d32;
  font-size: 0.9rem;
  margin: 0;
}

.email-otp__verify {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-otp__code-input {
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-align: center;
  font-family: monospace;
  max-width: 200px;
}

.email-otp__resend {
  font-size: 0.85rem;
  background: none;
  border: none;
  color: var(--color-primary-600);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  align-self: flex-start;
}

.email-otp__resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Notification Bell ───────────────────────────────────────────────────── */
.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-bell__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  position: relative;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 8px;
  transition: background 0.15s;
}

.notif-bell__btn:hover {
  background: rgba(192, 49, 74, 0.08);
}

.notif-bell__icon {
  font-size: 1.2rem;
}

.notif-bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-primary-500);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid rgba(192, 49, 74, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(192, 49, 74, 0.12);
  z-index: 200;
  overflow: hidden;
}

.notif-dropdown__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(192, 49, 74, 0.08);
}

.notif-dropdown__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-accent-dark);
}

.notif-dropdown__mark-read {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary-600);
  font-size: 0.8rem;
  text-decoration: underline;
}

.notif-dropdown__mark-read:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.notif-dropdown__empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-accent-dark);
  opacity: 0.5;
  font-size: 0.9rem;
  margin: 0;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(192, 49, 74, 0.05);
  transition: background 0.15s;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: var(--color-primary-50, #FBEDE9);
}

.notif-item--unread {
  background: rgba(216, 90, 112, 0.05);
  border-left: 3px solid var(--color-primary-500);
}

.notif-item--unread:hover {
  background: rgba(216, 90, 112, 0.1);
}

.notif-item__text {
  font-size: 0.88rem;
  color: var(--color-accent-dark);
  text-decoration: none;
  display: block;
}

.notif-item__text:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
}

/* ── Minha Conta (/minha-conta) — tab bar ────────────────────────────────────*/

.page-account {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.page-account__title {
  font-family: var(--font-display);
  color: var(--color-accent-dark);
}

.account-tabs {
  display: flex;
  gap: var(--spacing-xs);
  border-bottom: 2px solid var(--color-neutral-200);
  margin-bottom: var(--spacing-xl);
}

.account-tab {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-muted);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.account-tab:hover {
  color: var(--color-primary-600);
  background: var(--color-primary-50);
}

.account-tab--active {
  color: var(--color-primary-500);
  border-bottom-color: var(--color-primary-500);
}

/* ── Admin Control Panel (super-admin hub) ───────────────────────────────────*/

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.admin-panel__header {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-900));
  color: var(--color-neutral-50);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.admin-panel__title {
  font-family: var(--font-display);
  color: var(--color-neutral-50);
  margin: 0;
}

.admin-panel__subtitle {
  margin: var(--spacing-xs) 0 0;
  opacity: 0.92;
  font-size: 1rem;
}

.admin-panel__section-head {
  margin-bottom: var(--spacing-md);
}

.admin-panel__section-title {
  font-family: var(--font-display);
  color: var(--color-accent-dark);
  margin: 0;
}

.admin-panel__section-hint {
  margin: var(--spacing-xs) 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.admin-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-md);
}

.admin-panel__card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.admin-panel__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-400);
}

.admin-panel__card--orphan {
  background: var(--color-neutral-100);
  border-style: dashed;
}

.admin-panel__card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.admin-panel__card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-width: 0;
}

.admin-panel__card-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent-dark);
}

.admin-panel__card-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.admin-panel__tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary-600);
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-400);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}
