/* ============================================
   Foodzy Website Styles
   Plain CSS with semantic classes
   ============================================ */

/* ============================================
   Base Styles & Reset
   ============================================ */

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

html {
  font-family: "Nunito", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

/* ============================================
   Typography
   ============================================ */

h1 {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
}

p {
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
}

strong {
  font-weight: 700;
}

a {
  color: #3b82f6;
  text-decoration: underline;
  transition: color 0.3s;
}

a:hover {
  color: #2563eb;
}

.no-underline,
.no-dec {
  text-decoration: none;
}

/* ============================================
   Layout Components
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   Landing Page Styles
   ============================================ */

.landing-page {
  background: linear-gradient(135deg, #1a5f5f 0%, #0d3d3d 100%);
  color: white;
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Extend height on mobile Safari to cover bottom UI bar */
@media (max-width: 768px) {
  .landing-page {
    min-height: 110vh;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  padding-left: max(1.25rem, env(safe-area-inset-left, 1.25rem));
  padding-right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
  position: relative;
  flex-grow: 1;
  padding-top: max(0.5rem, env(safe-area-inset-top, 0.5rem));
  padding-bottom: 0.5rem;
  z-index: 10;
}

.hero-content {
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
}

.logo-container {
  width: 9rem;
  height: 9rem;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.logo-container img {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.landing-title {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: white;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.landing-title .highlight {
  color: #7ed9c5;
}

.tagline {
  font-size: 1.125rem;
  color: #b8e6d9;
  margin-bottom: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  gap: 0.72rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.badge-link {
  display: inline-block;
  transition: opacity 0.3s;
}

.badge-link:hover {
  opacity: 0.85;
}

.badge-link img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

/* Decorative circles for landing page */
.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(126, 217, 197, 0.08);
  z-index: 5;
}

.circle1 {
  width: 400px;
  height: 400px;
  top: 5%;
  left: -5%;
}

.circle2 {
  width: 300px;
  height: 300px;
  top: 50%;
  right: -5%;
}

.circle3 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: 10%;
}

/* Float animation for logo */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ============================================
   Footer
   ============================================ */

footer {
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, calc(env(safe-area-inset-bottom, 0) + 0.75rem));
  margin-top: auto;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
}

.landing-page footer {
  padding-bottom: max(1rem, calc(env(safe-area-inset-bottom, 0) + 1rem));
}

/* Extra bottom padding on mobile to extend background behind Safari UI */
@media (max-width: 768px) {
  .landing-page footer {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
  }
}

.footer-text {
  color: rgba(184, 230, 217, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0.375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(184, 230, 217, 0.6);
  transition: color 0.3s;
  text-decoration: none;
}

.footer-link:hover {
  color: #b8e6d9;
}

.footer-contact {
  font-size: 0.9rem;
  color: rgba(184, 230, 217, 0.6);
}

.footer-contact a {
  color: #b8e6d9;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #7ed9c5;
}

/* ============================================
   Content Pages (Privacy Policy, Terms)
   ============================================ */

.page-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 1rem;
  width: fit-content;
}

.page-header img {
  width: 4rem;
  height: auto;
}

.page-header h1 {
  margin: 0 auto;
  font-size: 3rem;
}

.content-page {
  font-family: 'Roboto', sans-serif;
}

.content-page p {
  padding: 1rem;
}

.content-page .nested {
  padding-left: 2rem;
}

.copyright {
  text-align: center;
  padding: 1rem;
}

.copyright p {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
}

/* ============================================
   Tables
   ============================================ */

table {
  margin: 1rem;
  width: calc(100% - 2rem);
  border-collapse: collapse;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

table thead tr {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

table thead tr th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
  text-transform: uppercase;
}

table thead tr th:first-child {
  border-top-left-radius: 0.5rem;
}

table thead tr th:last-child {
  border-top-right-radius: 0.5rem;
}

table tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

table tbody tr td {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  color: #111827;
}

table tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (min-width: 768px) {
  .landing-page footer {
    padding-bottom: 1rem;
  }

  .logo-container {
    width: 11rem;
    height: 11rem;
    margin: 2.16rem auto 1.8rem;
  }

  .landing-title {
    font-size: 3.75rem;
  }

  .tagline {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
  }

  .badge-link img {
    height: 4rem;
  }
}

@media (max-width: 768px) {
  .circle1 {
    width: 250px;
    height: 250px;
  }

  .circle2 {
    width: 200px;
    height: 200px;
  }

  .circle3 {
    width: 150px;
    height: 150px;
  }
}
