:root {
  --primary: #FF6B6B;
  --primary-light: #FF8E8E;
  --primary-dark: #E84A4A;
  --secondary: #FFD166;
  --secondary-light: #FFE08E;
  --secondary-dark: #E8B94A;
  --accent: #06D6A0;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg: #FFF9F2;
  --card: #FFFFFF;
  --border: #EEEEEE;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-lg: 20px;
}

/* Reset and Base Styles */
@font-face {
  font-family: 'IRANSans';
  src: url('/fonts/IRANSansWeb.woff2') format('woff2'),
       url('/fonts/IRANSansWeb.woff') format('woff'),
       url('/fonts/IRANSansWeb.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'IRANSans', sans-serif;
        }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IRANSans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: 'IRANSans', sans-serif;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.ingredient-search {
  margin-bottom: 1rem;
  text-align: center;
}

.ingredient-search input {
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
}

.ingredients-grid.collapsed .ingredient-item:nth-child(n+13) {
  display: none;
}

.show-all-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  min-height: 200px;
  margin-top: 1rem;
}

.suggest-recipes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.suggest-recipe {
  background-color: #fffaf7;
  border-radius: 1.2rem;
  box-shadow: 0 8px 20px -5px rgba(255, 100, 100, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #fce5e5;
}

.suggest-recipe:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(255, 100, 100, 0.2);
}

.recipe-match {
  position: relative;
  background: #ffe8e8;
  border-radius: 6px;
  overflow: hidden;
  height: 14px;
  margin-bottom: 1rem;
}

.match-bar {
  background-color: #ff6464;
  height: 100%;
  transition: width 0.4s ease;
}

.recipe-match span {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
  text-align: right;
  font-weight: 500;
}

.suggest-recipe h4 {
  font-size: 1.2rem;
  color: #333;
  margin: 0.5rem 0;
  text-align: right;
}

.suggest-recipe p {
  font-size: 0.95rem;
  color: #666;
  margin: 0.2rem 0;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggest-recipe .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

.suggest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap-reverse;
  border-bottom: 1px dashed #ffdede;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.suggest-header .btn {
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}

.suggest-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.section {
  padding: 5rem 0;
}

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

.section-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Notification Bar */
.notification-bar {
  background-color: var(--secondary);
  color: var(--text);
  text-align: center;
  padding: 0.75rem;
  font-weight: 500;
}

/* Header Styles */
.main-header {
  background-color: var(--card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo i {
  font-size: 1.8rem;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

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

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active:after,
.main-nav a:hover:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.user-actions {
  display: flex;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #FFE5D4 0%, #FFE3EA 100%);
  padding: 4rem 0;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero h1 span {
  color: var(--primary);
  position: relative;
}

.hero h1 span:after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 0;
  width: 100%;
  height: 10px;
  background-color: var(--secondary-light);
  z-index: -1;
  border-radius: 5px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(5px);
}

.stat-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Quick Suggest Section */
.ingredients-selector {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.ingredient-categories {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ingredient-categories button {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background-color: var(--bg);
  border: none;
  color: var(--text-light);
  font-family: 'IRANSans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.ingredient-categories button.active,
.ingredient-categories button:hover {
  background-color: var(--primary);
  color: white;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  min-height: 200px;
}

.ingredient-item {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.ingredient-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.ingredient-item.selected {
  background-color: var(--secondary-light);
  border-color: var(--secondary);
}

.ingredient-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.ingredient-item span {
  font-size: 0.9rem;
  text-align: center;
}

.suggest-result {
  padding: 1.5rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.result-placeholder {
  text-align: center;
  color: var(--text-lighter);
}

.result-placeholder i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading-spinner i {
  font-size: 2rem;
  color: var(--primary);
  animation: spin 1s linear infinite;
}

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

/* Featured Recipe */
.featured-recipe {
  display: flex;
  gap: 3rem;
  background-color: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.recipe-image {
  flex: 1;
  position: relative;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--secondary);
  color: var(--text);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
}

.recipe-details {
  flex: 1;
  padding: 2rem;
}

.recipe-details h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.recipe-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.recipe-description {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

.recipe-ingredients h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.recipe-ingredients ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.recipe-ingredients li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.recipe-ingredients li:before {
  content: '•';
  color: var(--primary);
}

.recipe-actions {
  display: flex;
  gap: 1rem;
}

/* Categories Section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.category-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Recipes Grid */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.recipe-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.recipe-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.recipe-card .recipe-image {
  height: 200px;
  position: relative;
}

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

.recipe-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  min-height: 3.5rem;
}

.recipe-card .recipe-meta {
  margin-bottom: 1.5rem;
  justify-content: space-between;
}

.recipe-card .recipe-actions {
  justify-content: space-between;
}

/* Chefs Grid */
.chefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.chef-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.chef-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.chef-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.chef-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chef-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary);
  color: var(--text);
  text-align: center;
  padding: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.chef-info {
  flex: 1;
}

.chef-info h3 {
  margin-bottom: 0.25rem;
}

.chef-title {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.chef-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.chef-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chef-stats i {
  color: var(--primary);
}

/* Users Grid */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.user-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.user-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
}

.user-info h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.user-title {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.user-stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.user-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.user-stats i {
  color: var(--primary);
  font-size: 0.7rem;
}

.user-actions {
  margin-top: 0.5rem;
}

/* How It Works Section */
.steps {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.step:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary);
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-10px);
}

.step:hover:after {
  height: 10px;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.step h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.step p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contribute Section */
.contribute {
  background: linear-gradient(135deg, #FFE5D4 0%, #FFE3EA 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contribute .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.contribute-content {
  flex: 1;
}

.contribute-image {
  flex: 1;
}
.contribute-image img {
  max-width: 50% !important;
  margin-bottom: -100px;
  margin-right: 200px;
}
.contribute h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contribute p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 500px;
}

/* Footer Styles */
.main-footer {
  background-color: #2D2D2D;
  color: white;
  padding: 4rem 0 0;
}

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

.footer-about {
  grid-column: 1 / -1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-logo i {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

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

.footer-links a {
  color: #CCCCCC;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-right: 0.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-family: 'IRANSans', sans-serif;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #999999;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: #CCCCCC;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container,
  .contribute .container {
    flex-direction: column;
  }
  
  .hero-image,
  .contribute-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .featured-recipe {
    flex-direction: column;
  }
  
  .recipe-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: var(--card);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 2rem;
    overflow-y: auto;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
  }
  
  .recipe-actions {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}