/* ============================================================
   Bizim Anılarımız — Shared Web Stylesheet
   Mirrors mobile/src/constants/theme.ts tokens exactly.
   ============================================================ */

:root {
  --bg: #fff8f3;
  --surface: #fffdfb;
  --primary: #d96666;
  --primary-pressed: #c45555;
  --secondary: #29445b;
  --accent: #f5c26b;
  --text: #2a1f1d;
  --muted: #7c6762;
  --border: #f0d9d2;
  --error-light: #fef2f2;
  --error-border: #fecaca;
  --success: #16a34a;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 4px 12px rgba(217, 102, 102, 0.08);

  /* typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

body.page-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 480px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--bg) 0%, #ffe9e0 100%);
  padding: 80px 0 64px;
  text-align: center;
}

.hero-logo {
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 8px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  border: none;
  min-height: 48px;
  line-height: 1.2;
}

.btn:focus-visible {
  outline: 3px solid rgba(217, 102, 102, 0.5);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background-color: var(--primary-pressed);
  box-shadow: 0 6px 20px rgba(217, 102, 102, 0.25);
}

.btn-primary:active {
  background-color: var(--primary-pressed);
  transform: scale(0.97);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--secondary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg);
  border-color: var(--secondary);
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-full {
  width: 100%;
}

.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ── Features section ── */
.features {
  padding: 72px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(217, 102, 102, 0.12);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* ── Auth card ── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
  width: 100%;
}

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

.card-logo {
  text-align: center;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Form ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 102, 102, 0.15);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--error-border);
}

/* ── Status messages ── */
.status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1.5px solid transparent;
}

.status[hidden] {
  display: none;
}

.status[data-kind="error"] {
  background-color: var(--error-light);
  border-color: var(--error-border);
  color: #b42318;
}

.status[data-kind="success"] {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--success);
}

.status[data-kind="info"] {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* ── Open-app link ── */
.open-app-link {
  margin-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hero {
    padding: 56px 0 48px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .card {
    padding: 28px 20px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }
}
