/* =============================================
   DAWARTLK — OFFER DETAILS PAGE
   Inherits global tokens from style.css and the
   product-card system from products.css
============================================= */

.ofr-main {
  direction: rtl;
  padding-top: 10px;
  padding-bottom: 25px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 24%),
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 22%),
    linear-gradient(180deg, #f7faf8 0%, #eef3f8 100%);
  min-height: calc(100vh - 80px);
}

.ofr-main:has(.app-footer-custom) {
  padding-bottom: 0;
}

.ofr-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 14px;
}

/* ── Hero ─────────────────────────────────── */
.ofr-hero {
  position: relative;
  margin-top: 14px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  isolation: isolate;
}

.ofr-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ofr-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.05);
}

.ofr-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(275deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.94) 100%);
}

.ofr-hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px;
  min-height: 250px;
  justify-content: center;
  max-width: 660px;
  color: #fff;
}

.ofr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ofr-eyebrow i {
  color: var(--yellow);
}

.ofr-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.ofr-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ofr-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

a.ofr-chip:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.ofr-chip i {
  font-size: 0.8rem;
  opacity: 0.85;
}

.ofr-chip-accent {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #1a1a1a;
}

/* ── Stats strip ──────────────────────────── */
.ofr-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
  padding: 0 18px;
}

.ofr-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid rgba(209, 219, 231, 0.9);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.ofr-stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 1rem;
}

.ofr-stat:nth-child(2) .ofr-stat-icon { background: #e0f2fe; color: #0284c7; }
.ofr-stat:nth-child(3) .ofr-stat-icon { background: #f3e8ff; color: #7c3aed; }
.ofr-stat:nth-child(4) .ofr-stat-icon { background: var(--yellow-bg); color: var(--yellow-dark); }

.ofr-stat-copy {
  min-width: 0;
}

.ofr-stat-value {
  display: block;
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.ofr-stat-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Section heading ──────────────────────── */
.ofr-section {
  margin-top: 26px;
}

.ofr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ofr-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ofr-section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
}

.ofr-section-badge {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--green-bg);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.ofr-section-hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Empty state ──────────────────────────── */
.ofr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  text-align: center;
  background: var(--card-bg);
  border: 1px dashed #cbd5e1;
  border-radius: var(--r-xl);
}

.ofr-empty i {
  font-size: 2rem;
  color: #cbd5e1;
}

.ofr-empty h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.ofr-empty p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.ofr-empty-btn {
  margin-top: 6px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

/* ── Banner strip (full artwork, uncropped) ── */
.ofr-artwork {
  margin-top: 26px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(209, 219, 231, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.ofr-artwork img {
  width: 100%;
  height: auto;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .ofr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofr-hero-body { padding: 28px 24px; min-height: 220px; }
}

@media (max-width: 768px) {
  .ofr-hero { border-radius: var(--r-lg); }
  .ofr-hero-body { max-width: none; min-height: 200px; padding: 24px 18px; }
  .ofr-hero-media::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.88) 100%);
  }
  .ofr-stats { margin-top: -20px; padding: 0 10px; gap: 10px; }
  .ofr-stat { padding: 12px; gap: 10px; }
  .ofr-stat-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 0.88rem; }
  .ofr-stat-value { font-size: 1.05rem; }
  .ofr-section-head { flex-wrap: wrap; }
  .ofr-section-hint { display: none; }
}

@media (max-width: 480px) {
  .ofr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofr-title { font-size: 1.4rem; }
}
