/* ══════════════════════════════════════════════════════════════
   FOODSQAN - Site Vitrine
   Styles CSS
   ══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   CSS Variables
   ───────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-secondary: #059669;
  --color-secondary-dark: #047857;

  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-text-muted: #9ca3af;

  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-bg-dark: #111827;

  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Font */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ─────────────────────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ─────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-disabled {
  background-color: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   Header
   ───────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-img {
  width: 2rem;
  height: 2rem;
}

.logo-text {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
}

.nav {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-light);
}

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

.lang-selector {
  display: flex;
  gap: var(--space-xs);
}

.lang-btn {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--color-text);
  background-color: var(--color-bg-alt);
}

.lang-btn.active {
  color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.1);
  border-color: var(--color-primary);
}

/* ─────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────── */
.hero {
  padding: calc(4rem + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f0fdf4 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  padding: var(--space-md);
  background: linear-gradient(145deg, #1f2937 0%, #374151 100%);
  border-radius: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.phone-mockup .screenshot {
  width: 100%;
  border-radius: 1.5rem;
  background-color: var(--color-bg-alt);
  min-height: 400px;
}

/* ─────────────────────────────────────────────────────────────
   Features Section
   ───────────────────────────────────────────────────────────── */
.features {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.feature-card {
  padding: var(--space-xl);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
}

.feature-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.5;
}

.features-more {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────
   Download Section
   ───────────────────────────────────────────────────────────── */
.download {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg-alt);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.download .section-title {
  text-align: left;
}

.download .section-subtitle {
  text-align: left;
  margin: 0 0 var(--space-xl);
}

.download-card {
  padding: var(--space-xl);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
}

.download-card-disabled {
  opacity: 0.6;
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.android-icon,
.ios-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-secondary);
}

.download-card-disabled .ios-icon {
  color: var(--color-text-muted);
}

.download-card-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.download-card-header p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.download-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-md);
}

.download-instructions h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.install-steps {
  counter-reset: step;
}

.install-steps li {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.install-steps strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.install-steps p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ─────────────────────────────────────────────────────────────
   Changelog Section
   ───────────────────────────────────────────────────────────── */
.changelog {
  padding: var(--space-3xl) 0;
}

.changelog-list {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.changelog-version {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.version-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-primary);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  width: fit-content;
}

.version-date {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.changelog-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.changelog-content ul {
  list-style: disc;
  padding-left: var(--space-lg);
}

.changelog-content li {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

/* ─────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────── */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background-color: var(--color-bg-dark);
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
}

.footer-brand .logo-text {
  color: white;
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-3xl);
}

.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer-bottom a {
  color: var(--color-primary-light);
}

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-content {
    grid-template-columns: 1fr;
  }

  .download .section-title,
  .download .section-subtitle {
    text-align: center;
  }

  .download .section-subtitle {
    max-width: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 1.875rem;
    --font-size-3xl: 1.5rem;
  }

  .nav {
    display: none;
  }

  .lang-selector {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .changelog-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .install-steps li {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .phone-mockup {
    width: 200px;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-xl);
  }
}
