/* public/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Premium Light Theme */
  --bg-color: #f4fcf7;
  --bg-gradient: linear-gradient(135deg, #f4fcf7 0%, #e2f2e9 100%);
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-solid: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;

  --primary-color: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.3);
  --accent-color: #f59e0b;

  --border-color: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px var(--primary-glow);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-color: #0f172a;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-solid: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --primary-color: #10b981;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  transition: background var(--transition-normal), color var(--transition-normal);
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAVBAR & GLASSMORPHISM */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-normal);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

/* PREMIUM BUTTONS */
.btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px var(--primary-glow);
}

.btn:active {
  transform: translateY(0);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: var(--text-main);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: rotate(15deg);
  background: var(--bg-card-solid);
}

/* INPUT CONSTANTS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card-solid);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background: var(--bg-card);
}

/* Hero Section */
.hero {
  padding: 6rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 85vh;
}

.hero-content {
  flex: 1;
  animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content h1 span {
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 400;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
  border: 8px solid var(--bg-card-solid);
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* SEARCH BAR */
.search-container {
  display: flex;
  margin-bottom: 3rem;
  background: var(--bg-card-solid);
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.search-container:focus-within {
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-color);
}

.search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 0.5rem 1.5rem !important;
  box-shadow: none !important;
}

/* FOOD GRID */
.food-section {
  padding: 5rem 5%;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.food-card {
  background-color: var(--bg-card-solid);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.food-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.food-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.food-card:hover .food-img {
  transform: scale(1.05);
}

.food-info {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.food-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.food-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

.food-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* TOAST / ALERTS */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card-solid);
  color: var(--text-main);
  padding: 1.2rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--primary-color);
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Universal Card Layouts */
.dash-card {
  background: var(--bg-card-solid);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card-solid);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  /* Make sure buttons take full width on mobile nav */
  .nav-links .btn {
    width: 100%;
    justify-content: center;
  }

  .food-section {
    padding: 2rem 5%;
  }

  .food-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .dash-card {
    padding: 1.5rem;
  }

  .active-pack-pill {
    width: 90vw !important;
    border-radius: 20px !important;
    justify-content: space-between;
  }
}