/* Meal2Shop - Modern Professional Styles */

:root {
  --teal: #20B2AA;
  --teal-dark: #1a938c;
  --teal-light: #5dd4cd;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text-dark: #0d1b1e;
  --text-light: rgba(255, 255, 255, 0.95);
  --radius: 20px;
  --max-width: 1100px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.nav-brand:hover {
  transform: translateY(-2px);
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-bottom: 0rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 500px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 0 0 50% 50%;
  z-index: -1;
}

.hero .app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero .subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--teal-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.cta-button.secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.cta-button.secondary:hover {
  background: var(--white);
  color: var(--teal-dark);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Glass Sections */
.glass-section {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.glass-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.95);
}

.glass-section p {
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.glass-section ul {
  list-style: none;
  padding-left: 0;
}

.glass-section ul li {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0;
  padding-left: 1.8rem;
  position: relative;
}

.glass-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--text-light);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Screenshots Grid */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.screenshot-card {
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-5px);
}

.screenshot-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.screenshot-card img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Expandable Section */
.expandable-section {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease;
}

.expandable-header {
  padding: 1.5rem 2.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  user-select: none;
}

.expandable-header:hover {
  background: rgba(255,255,255,0.05);
}

.expandable-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.expand-icon {
  font-size: 1.5rem;
  color: var(--white);
  transition: transform 0.3s ease;
}

.expandable-section.active .expand-icon {
  transform: rotate(180deg);
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2.5rem;
}

.expandable-section.active .expandable-content {
  max-height: 2000px;
  padding: 0 2.5rem 2rem;
}

.expandable-content p,
.expandable-content ul,
.expandable-content li {
  color: rgba(255,255,255,0.9);
}

.expandable-content ul {
  list-style: none;
  padding-left: 0;
}

.expandable-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.8rem;
  position: relative;
}

.expandable-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal-light);
  font-size: 1.5rem;
  line-height: 1;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.blog-card-category {
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.blog-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.blog-card p {
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* Recipe Pack Cards */
.recipe-pack-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  display: block;
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.recipe-pack-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.recipe-pack-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.recipe-pack-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

.recipe-pack-price {
  font-weight: 600;
  color: var(--teal-light);
  font-size: 1.1rem;
}

/* Recipe Card */
.recipe-card {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.recipe-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.recipe-method {
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  white-space: pre-line;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

footer a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--teal-light);
  text-decoration: underline;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    flex-direction: column;
    background: rgba(255, 255, 255, 1);
    color: var(--teal);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    gap: 1.5rem;
    margin-bottom: 0rem;
  }
  
  .nav-links li a {
      color: var(--teal);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

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

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

  .nav-container {
    padding: 1rem 1.5rem;
  }

  .container {
    padding: 0 1.5rem 3rem;
  }

  .glass-section,
  .expandable-section {
    padding: 1.5rem;
  }

  .expandable-header,
  .expandable-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

h3 {
    margin-top: 4rem;
}

h4 {
    margin-top: 2rem;
}

ul {
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.link-white {
  color: var(--white);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.link-white:hover {
  color: var(--teal-light);
}

/* Number Toggle Inputs WITH spinner arrows restored */
.meal-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 14px;
  width: 75px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  /* REMOVE appearance: none so native arrows return */
}

.meal-toggle:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 12px rgba(32,178,170,0.5);
  transform: translateY(-2px);
}

.meal-toggle-label {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.center-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;     /* <-- Horizontal centering */
    justify-content: center; /* <-- Vertical alignment (optional) */
    text-align: center;
    gap: 0.4rem;
}
