﻿/* ==========================================================================
   bosq — Kalori və Qida İzləyicisi
   Typography: 'Marck Script' for branding & titles, 'Plus Jakarta Sans' for UI
   ========================================================================== */

:root {
  /* Şriftlər */
  --font-title: 'Marck Script', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Rənglər (Gecə rejimi - Default) */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-hover: rgba(24, 35, 58, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-primary: #10b981; /* Emerald Green - Health & Nutrition */
  --accent-secondary: #3b82f6; /* Blue */
  --accent-warm: #f59e0b; /* Amber */
  --accent-protein: #8b5cf6; /* Violet */
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #34d399 50%, #38bdf8 100%);
  --accent-glow: rgba(16, 185, 129, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px var(--accent-glow);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gündüz rejimi */
[data-theme="light"] {
  --bg-primary: #f8faf9;
  --bg-secondary: #eef2ef;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.4);

  --text-main: #13241d;
  --text-muted: #4a6358;
  --text-dim: #8ba196;

  --accent-primary: #059669;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #0284c7 100%);
  --accent-glow: rgba(5, 150, 105, 0.2);

  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.08);
}

/* Əsas Sıfırlama */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Şriftlər & Köməkçilər */
.font-script {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Arxa Fon İşıqları */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.glow-1 {
  top: -100px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%);
}

.glow-2 {
  bottom: 10%;
  left: -150px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #0284c7 0%, rgba(2, 132, 199, 0) 70%);
}

/* Başlıq / Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 13, 22, 0.75);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-smooth);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 249, 0.85);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-symbol {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}

.brand-logo:hover .logo-symbol {
  transform: rotate(20deg);
}

.brand-name {
  font-size: 2.3rem;
  color: var(--text-main);
  line-height: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-primary);
  border: 1px solid var(--border-highlight);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--text-main);
  border-color: var(--text-dim);
}

.moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Əsas Bölmə (Hero) */
.hero-section {
  padding: 5rem 0 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-highlight);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Email Xəbərdarlıq Qutusu */
.notify-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.notify-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.notify-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.email-form {
  width: 100%;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-glow);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

.input-group input::placeholder {
  color: var(--text-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  filter: brightness(1.08);
}

.form-feedback {
  font-size: 0.85rem;
  margin-top: 0.65rem;
  min-height: 20px;
}

.form-feedback.success { color: #10b981; }
.form-feedback.error { color: #ef4444; }

.platform-tags {
  display: flex;
  gap: 1.25rem;
}

.platform-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* İnteraktiv Qida Skaneri Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.scan-preview-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px var(--accent-glow);
  transition: transform var(--transition-smooth);
}

.scan-preview-card:hover {
  transform: translateY(-6px);
}

.scan-header {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  gap: 6px;
}

.scan-dot-red, .scan-dot-yellow, .scan-dot-green {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.scan-dot-red { background: #ef4444; }
.scan-dot-yellow { background: #f59e0b; }
.scan-dot-green { background: #10b981; }

.scan-title {
  margin-left: 0.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.scan-photo-area {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0.4) 100%);
  padding: 2.2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.food-illustration {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.plate-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  border: 4px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.food-emoji {
  font-size: 2.8rem;
  letter-spacing: -6px;
}

/* Skan Lazer Effekti */
.scan-laser {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent-primary);
  animation: laserScan 2.8s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 10%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 90%; opacity: 0.3; }
}

.scan-tag-overlay {
  position: absolute;
  bottom: -15px;
  background: var(--bg-primary);
  border: 1px solid var(--border-highlight);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
}

.scan-spinner {
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scan-details {
  padding: 1.5rem;
}

.dish-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.dish-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.dish-portion {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.calorie-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-highlight);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.cal-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.cal-unit {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Makrolar */
.macros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.macro-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.macro-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.macro-value {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.4rem;
}

.macro-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.macro-protein .bar-fill { background: var(--accent-protein); }
.macro-fat .bar-fill { background: var(--accent-warm); }
.macro-carbs .bar-fill { background: var(--accent-primary); }

.daily-progress-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.daily-progress-pill strong {
  color: var(--text-main);
}

.daily-progress-pill .percent {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Xüsusiyyətlər Bölməsi */
.features-section {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border-color);
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  transition: all var(--transition-smooth);
}

.feature-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background: var(--bg-secondary);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-size: 1.8rem;
  color: var(--accent-primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.domain-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-highlight);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .badge-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .platform-tags {
    justify-content: center;
  }

  .notify-card {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 540px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .input-group {
    flex-direction: column;
    padding: 0.5rem;
    border-radius: var(--radius-md);
  }

  .input-group input {
    padding: 0.4rem;
  }

  .input-group .btn {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 0.35rem;
  }
}
