/* =============== ROOT VARIABLES =============== */
:root {
  --accent-color: #7441cc;
  --accent-color-hover: #a879f9;
  --secondary-bg-color: #000000;
  --tertiary-bg-color: #000000;
  --divider-color: #333333;
  --input-bg-color: #202020;
  --input-text-color: #ffffff;
  --input-border-color: #444444;
  --opposite-color: #ffffff;
  
  /* Additional colors */
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --bg-light: #ffffff;
  --bg-gray: #f8f9fa;
  --bg-dark: #0a0a0a;
  --gradient-start: #7441cc;
  --gradient-end: #a879f9;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --h1-size: 2.5rem;
  --h2-size: 2rem;
  --h3-size: 1.5rem;
  --h4-size: 1.25rem;
  --normal-size: 1rem;
  --small-size: 0.875rem;
  
  /* Spacing */
  --header-height: 4rem;
  --section-padding: 4rem 0;
  --container-padding: 1.5rem;
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

/* =============== BASE STYLES =============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--normal-size);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* =============== REUSABLE CLASSES =============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border-radius: 50px;
  font-size: var(--small-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: var(--h2-size);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--normal-size);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  box-shadow: 0 4px 15px rgba(116, 65, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(116, 65, 204, 0.4);
}

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

.btn-secondary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.125rem 2rem;
  font-size: 1.125rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* =============== HEADER/NAVIGATION =============== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

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

.nav-toggle,
.nav-close {
  display: none;
}

/* =============== HERO SECTION =============== */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(116, 65, 204, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-subtitle {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border-radius: 50px;
  font-size: var(--small-size);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.phone-mockup {
  position: relative;
  max-width: 300px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.mockup-img {
  width: 100%;
  border-radius: 30px;
}

/* =============== ABOUT SECTION =============== */
.about {
  background: white;
}

.about-content {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.about-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: var(--small-size);
}

/* =============== FEATURES SECTION =============== */
.features {
  background: var(--bg-gray);
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.feature-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.feature-icon {
  color: white;
}

.feature-title {
  font-size: var(--h3-size);
  margin-bottom: 0.5rem;
}

.feature-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-gray);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: var(--small-size);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.feature-description h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.25rem;
}

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

.feature-img {
  max-width: 300px;
  border-radius: var(--radius-lg);
}

/* =============== BENEFITS SECTION =============== */
.benefits {
  background: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.benefit-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============== CTA SECTION =============== */
.cta {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

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

.cta .btn-primary:hover {
  background: var(--bg-gray);
}

.cta .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

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

.cta-note {
  font-size: 1.125rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 1rem;
}

/* =============== FOOTER =============== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--small-size);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-color-hover);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--small-size);
}

/* =============== ANIMATIONS =============== */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

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

.fade-in {
  animation: fadeIn 1s ease-out;
}

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

.fade-in-right {
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

/* =============== TABLET STYLES (768px) =============== */
@media screen and (min-width: 768px) {
  :root {
    --h1-size: 3.5rem;
    --h2-size: 2.5rem;
    --h3-size: 1.75rem;
    --container-padding: 2rem;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    text-align: left;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }

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

  .feature-reverse .feature-content {
    direction: rtl;
  }

  .feature-reverse .feature-text {
    direction: ltr;
  }

  .phone-mockup {
    max-width: 350px;
  }

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

/* =============== DESKTOP STYLES (1024px) =============== */
@media screen and (min-width: 1024px) {
  :root {
    --h1-size: 4rem;
    --h2-size: 3rem;
    --section-padding: 6rem 0;
  }

  .section-header {
    margin-bottom: 4rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .phone-mockup {
    max-width: 400px;
  }

  .feature-card {
    padding: 3rem;
  }

  .feature-img {
    max-width: 300px;
  }
}

/* =============== MOBILE NAVIGATION =============== */
@media screen and (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: white;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    flex-direction: column;
    align-items: flex-start;
    z-index: 100;
  }

  .nav-menu.show-menu {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-gray);
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .toggle-line {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: var(--transition);
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
  }

  .hero-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }
}

/* =============== SCROLL ANIMATIONS =============== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* =============== RECIPE SHARE PAGE =============== */
.recipe-header {
  padding-top: 60px;
}

.recipe-share-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.recipe-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.recipe-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  background: var(--bg-gray);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-gray);
  border-radius: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hashtag {
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.85rem;
}

.ingredients-section,
.instructions-section,
.equipment-section {
  margin-bottom: 2.5rem;
}

.ingredients-list {
  list-style: none;
  padding: 0;
}

.ingredient-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--bg-gray);
}

.ingredient-name {
  font-weight: 500;
}

.ingredient-amount {
  color: var(--text-secondary);
}

.instructions-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.instruction-item {
  counter-increment: step-counter;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bg-gray);
  border-radius: 12px;
  position: relative;
  padding-left: 3.5rem;
}

.instruction-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--accent-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.equipment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.equipment-item {
  background: var(--bg-gray);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* =============== ADVERT SHARE PAGE =============== */
.advert-header {
  padding-top: 60px;
}

.advert-share-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.advert-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.advert-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.advert-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.advert-cta {
  margin: 2rem 0;
}

.advert-cta-btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.advert-cta-btn:hover {
  background: var(--accent-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =============== SHARE PAGE CTA =============== */
.app-cta {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-hover));
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 3rem;
}

.app-cta h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: white;
}

.app-cta p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

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

.download-btn {
  background: white;
  color: var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments for share pages */
@media (max-width: 768px) {
  .recipe-title,
  .advert-title {
    font-size: 1.75rem;
  }

  .app-cta h3 {
    font-size: 1.5rem;
  }
}
