@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');


/* navbar */

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

body,
html {
  direction: rtl;
  background-color: #f8f6f6;
  font-family: 'Sultan', 'Almarai', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.95) 100%);
  border-bottom: 1px solid #e7eaf3;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  color: #ff6200;
}

.main-nav {
  display: flex;
  gap: 18px;
}

.main-nav a {
  color: #515a6e;
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover {
  color: #ff6200;
}

.top-search {
  position: relative;
  width: min(400px, 100%);
  flex: 1;
  max-width: 500px;
}

.top-search input {
  width: 100%;
  border: 2px solid #e8ecf4;
  border-radius: 50px;
  padding: 10px 45px 10px 16px;
  font-size: 14px;
  background: linear-gradient(145deg, #f8faff, #ffffff);
  transition: all 0.3s ease;
  color: #33475b;
  font-weight: 500;
}

.top-search input:focus {
  background: white;
  border-color: #ff6200;
  box-shadow: 0 0 0 3px rgba(255, 98, 0, .15);
  outline: none;
}

.top-search input::placeholder {
  color: #8b9dc3;
}

.top-search .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff6200;
  font-size: 17px;
  transition: all 0.3s ease;
}

.top-search input:focus+.search-icon {
  transform: translateY(-50%) scale(1.1);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-right a {
  color: #33475b;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: linear-gradient(145deg, #ffffff, #f0f4ff);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 14px;
}

.topbar-right a.active {
  color: #ff6200;
  background: #ffffff;
  border-color: #ff6200;
  box-shadow: 0 4px 15px rgba(255, 98, 0, 0.2);
}

.topbar-right a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 98, 0, 0.08), transparent);
  transition: left 0.5s ease;
}

.topbar-right a:hover::before {
  left: 100%;
}

.topbar-right a:hover {
  color: #ff6200;
  background: #ffffff;
  border-color: #ff6200;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 98, 0, 0.15);
}

.topbar-right a.active:hover {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(255, 98, 0, 0.2);
}

.avatar-btn,
.notif-btn {
  border: none;
  background: linear-gradient(145deg, #ffffff, #f0f4ff);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.avatar-btn:hover,
.notif-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 25px rgba(255, 98, 0, 0.3);
  background: linear-gradient(145deg, #ff6200, #ff8533);
  color: white;
}

.notif-btn::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: #ff4757;
  border-radius: 50%;
  border: 1px solid white;
}

.my-recipes {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #2a2a2a;
}

.recipes-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ff6200;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(255, 98, 0, .35);
}

.recipes-text {
  font-size: 16px;
}

/* hero */
.hero {
  height: 450px;
  margin: 30px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,90,14,0.3), transparent);
  pointer-events: none;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 40px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent);
  color: white;
}

.badge {
  background: #ff5a0e;
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
  font-size: 14px;
}

.hero-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.hero button {
  width: 160px;
  padding: 12px;
  border: none;
  background: linear-gradient(45deg, #ff5a0e, #ff8c42);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(255, 90, 14, 0.4);
}

.hero button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 90, 14, 0.6);
}

h2 {
  background: linear-gradient(45deg, #ff6200, #ff9a3c);
  -webkit-background-clip: text;
  color: transparent;
}

/* categories section */
.categories {
  margin: 30px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
}


.categories-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}


.categories-grid::-webkit-scrollbar {
  display: none;
}

.categories-grid {
  scrollbar-width: none;
}

/* category card */
.cat {
  background: linear-gradient(135deg, #fff, #f7f7f7);
  border: 1px solid #eee;
  padding: 25px 20px;
  border-radius: 15px;
  text-align: center;
  min-width: 140px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background: #fff7ef;
  border-color: #ff914d;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 145, 77, 0.9);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
}

.scroll-left {
  left: 10px;
}

.scroll-right {
  right: 10px;
}

/* popular section */
.popular {
  margin: 30px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* responsive grid */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* recipe card */
.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "عرض سريع";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-size: 18px;
  transition: 0.3s;
}

.card:hover::after {
  opacity: 1;
}
/* image */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* card body */
.card-body {
  padding: 18px;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

/* button */
.card-body button {
  background: #ff914d;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.card-body button:hover {
  background: #ff7a26;
}

/* subscribe */
.subscribe {
  padding: 80px 20px;
  background: #fff5f0;
  display: flex;
  justify-content: center;
}

.subscribe-container {
  background: #EC5B13;
  border-radius: 25px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.subscribe .image img {
  width: 450px;
  border-radius: 25px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.subscribe .image img:hover {
  transform: scale(1.05);
}

.subscribe .content {
  color: white;
  max-width: 500px;
}

.subscribe h2 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
}

.subscribe p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  outline: none;
}

.form input::placeholder {
  color: #888;
}

.form button {
  background: #0c1a3c;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.form button:hover {
  background: #061029;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .subscribe-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .subscribe .image img {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
  }

  .form {
    flex-direction: column;
  }

  .form button {
    width: 100%;
  }

  .form input {
    width: 100%;
  }
}

/* footer */

footer {
  background: #081a3a;
  color: white;
  padding: 70px 60px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h3 {
  margin-bottom: 20px;
}

.footer-col p {
  line-height: 1.8;
  color: #cbd5e1;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
  color: #cbd5e1;
}

.social {
  margin-top: 20px;
}

.social span {
  margin-left: 10px;
  font-size: 22px;
}

.apps {
  margin-top: 20px;
}

.app-btn {
  background: #1e2f57;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  width: 150px;
  text-align: center;
}

.copyright {
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid #1e2f57;
  padding-top: 20px;
  color: #cbd5e1;
}