@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap");

:root {
  --bg: #f6f1eb;
  --surface: #fffdfb;
  --text: #2a1f18;
  --muted: #7a695b;
  --line: #eadfce;
  --brand: #b05024;
  --brand-strong: #833a17;
  --accent: #bf2f42;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  background: radial-gradient(circle at 80% -8%, #fff2dc 0, var(--bg) 36%, #f3ece4 100%);
  color: var(--text);
}

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(145deg, #fff4e6, #f5e5d4 56%, #f0e5d8);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding: 30px 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: 0.01em;
}

.hero p {
  margin: 12px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
}

.page-wrap {
  padding: 24px 0 36px;
}

.error-box {
  padding: 14px;
  border-radius: 14px;
  background: #fff4f3;
  color: #b91c1c;
  border: 1px solid #f6c1be;
  margin-bottom: 16px;
}

.ads-banner {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: 24px;
  border: 1px solid rgba(234, 213, 195, 0.9);
  background: linear-gradient(180deg, #fff9f2 0%, #f8e4d5 100%);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(215, 176, 145, 0.18);
}

.ad-card {
  width: 100%;
  max-width: 940px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #fff;
}

.ad-card img,
.ad-card video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ads-banner a {
  display: block;
  width: 100%;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.offer-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 320px;
  background: #fff;
  border: 1px solid rgba(234, 213, 195, 0.95);
}

.offer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 15, 12, 0.15), rgba(21, 15, 12, 0.84));
}

.offer-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 24px;
  color: #fff;
}

.offer-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #991f31);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.offer-discount {
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  line-height: 1;
}

.offer-name {
  margin: 12px 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.offer-price {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(255, 239, 220, 0.95);
}

.offer-cta {
  text-decoration: none;
  background: #fff;
  color: #0f172a;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(18, 25, 30, 0.1);
}

.empty-state {
  text-align: center;
  padding: 40px 18px;
  color: var(--muted);
}

.empty-state a {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand-strong);
  font-weight: 700;
}

@media (max-width: 980px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 24px 0;
  }

  .hero h1 {
    font-size: 32px;
  }
}

/* Make the offers side-menu button look premium on the offers page */
.side-menu-panel a[href="/offers"].active {
  background: linear-gradient(135deg, #d6f7d3 0%, #cfe7b4 52%, #bf9a68 100%);
  border-color: #8b7a42;
  color: #2f3a1f;
  box-shadow: 0 12px 22px rgba(95, 70, 30, 0.14);
}

.section-title {
  margin: 32px 0 20px;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-strong);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--line), transparent);
}

#dailyOffersSection .section-title {
  color: var(--accent);
}

#dailyOffersSection .offer-no {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.offer-category {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}
