/* Pomadil – mobile-first, touch-friendly */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --pomadil-primary: #2563eb;
  --pomadil-primary-dark: #1d4ed8;
  --pomadil-body-bg: #f8fafc;
  --pomadil-hero-bg: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --pomadil-hero-accent: #38bdf8;
  --pomadil-card-bg: #ffffff;
  --pomadil-text-muted: #64748b;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--pomadil-body-bg);
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* ========== Landing (index) ========== */
.landing-hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pomadil-hero-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.landing-hero .hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pomadil-hero-accent);
  margin-bottom: 1rem;
}

.landing-hero .hero-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.landing-hero .hero-lead {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.landing-hero .btn-hero-primary {
  background: var(--pomadil-hero-accent);
  color: #0f172a;
  border: none;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-hero .btn-hero-primary:hover {
  background: #7dd3fc;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

.landing-hero .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.landing-hero .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.landing-features {
  padding: 3rem 0;
  background: var(--pomadil-body-bg);
}

.landing-features .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pomadil-primary) 0%, var(--pomadil-primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.landing-features .feature-title {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.landing-features .feature-text {
  font-size: 0.9rem;
  color: var(--pomadil-text-muted);
}

.navbar-landing {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-landing .navbar-brand {
  color: #fff !important;
  font-weight: 700;
}

.navbar-landing .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}
.navbar-landing .nav-link:hover {
  color: #fff !important;
}

/* ========== Login / Register (aceeași temă ca index) ========== */
.auth-page {
  min-height: calc(100vh - 60px);
  background: var(--pomadil-hero-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 2rem 0 3rem;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page .theme-card {
  background: var(--pomadil-card-bg);
  border: none;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.auth-page .theme-card .card-body {
  padding: 1.75rem;
}
.auth-page .theme-card h1 {
  color: #0f172a;
  font-weight: 700;
  font-size: 1.35rem;
}
.auth-page .theme-card .text-muted {
  color: var(--pomadil-text-muted) !important;
}
.auth-page .theme-card .form-control {
  border-radius: 10px;
  border-color: #e2e8f0;
}
.auth-page .theme-card .form-control:focus {
  border-color: var(--pomadil-hero-accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.auth-page .nav-tabs {
  border-bottom: 1px solid #e2e8f0;
}
.auth-page .nav-tabs .nav-link {
  color: var(--pomadil-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.6rem 1rem;
  font-weight: 500;
}
.auth-page .nav-tabs .nav-link:hover {
  color: #0f172a;
}
.auth-page .nav-tabs .nav-link.active {
  color: var(--pomadil-primary);
  background: transparent;
  border-bottom-color: var(--pomadil-primary);
}
.auth-page .auth-link {
  color: var(--pomadil-hero-accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-page .auth-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
.auth-page .btn-hero-primary {
  background: var(--pomadil-hero-accent);
  color: #0f172a;
  border: none;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.auth-page .btn-hero-primary:hover {
  background: #7dd3fc;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}
.auth-page .btn-hero-secondary {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.auth-page .btn-hero-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.auth-page .alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
  border-radius: 10px;
}
.auth-page .alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  border-radius: 10px;
}

/* ========== Cont (dashboard, setare parolă) – aceeași temă ========== */
.app-page {
  background: var(--pomadil-body-bg);
  min-height: calc(100vh - 56px);
}
.app-page .theme-card {
  background: var(--pomadil-card-bg);
  border: none;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.app-page .theme-card .card-body {
  padding: 1.25rem 1.5rem;
}
.app-page .alert-info {
  background: #eff6ff;
  border: none;
  border-radius: 12px;
  color: #1e40af;
}
.app-page .alert-info .btn-outline-primary {
  border-radius: 10px;
  font-weight: 600;
}
.app-page .text-muted {
  color: var(--pomadil-text-muted) !important;
}
.app-page .h6.text-uppercase {
  color: var(--pomadil-text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.app-page .list-group-item {
  border-color: #f1f5f9;
  border-radius: 0;
}
.app-page .list-group-item:first-child {
  border-top: none;
}
.app-page .puncte-display {
  color: var(--pomadil-primary);
}
.app-page .btn-primary {
  background: linear-gradient(135deg, var(--pomadil-primary) 0%, var(--pomadil-primary-dark) 100%);
  border: none;
  border-radius: 12px;
  font-weight: 600;
}
.app-page .btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.app-page .btn-outline-secondary {
  border-radius: 12px;
  font-weight: 500;
}

/* Navbar fix: conținut nu ascuns sub bară */
body.has-navbar-fixed {
  padding-top: 56px;
}

/* Butoane mari pentru touch */
.btn-lg {
  min-height: 48px;
  font-size: 1.05rem;
}

.form-control,
.form-select {
  min-height: 48px;
}

.form-floating > label {
  padding: 1rem 0.75rem;
}

/* Carduri pe mobil */
.card {
  border-radius: 0.5rem;
}

/* Puncte – evidențiere */
.puncte-display {
  font-variant-numeric: tabular-nums;
}

/* Listă mișcări puncte */
.istoric-list .list-group-item {
  padding: 0.75rem 1rem;
}

@media (min-width: 576px) {
  .container-narrow {
    max-width: 420px;
  }
}
