/* ============================================================
   Choose Page — Premium book picker (RTL, Hebrew)
   Locked light palette + gold accents + emerald featured badge.
   ============================================================ */

/* Hide the theme's site header & page title on the choose page only —
   the buyer should focus on the two product cards, nothing else.
   Body class .brp-choose-active is added via PHP filter, so this works in every browser. */
body.brp-choose-active #site-header,
body.brp-choose-active .site-header,
body.brp-choose-active .page-header,
body.brp-choose-active .entry-header,
body.brp-choose-active .site-branding,
body.brp-choose-active .site-footer {
  display: none !important;
}

/* Also nuke any default Hello Elementor page-title block */
body.brp-choose-active .entry-title {
  display: none !important;
}

.brp-choose-wrap {
  /* Locked-in light palette — won't flip when the OS is in dark mode */
  --brp-bg:           #faf7f2;
  --brp-bg-soft:      #f4ebd7;
  --brp-surface:      #ffffff;
  --brp-surface-elev: #fbf8f3;
  --brp-text:         #1a1614;
  --brp-text-soft:    #4a4540;
  --brp-text-muted:   #8a8580;
  --brp-border:       #e8dfcf;
  --brp-border-soft:  rgba(232, 223, 207, 0.55);

  /* Gold (recommended option) */
  --brp-gold:         #c9a961;
  --brp-gold-light:   #e5d4a1;
  --brp-gold-dark:    #8c7232;
  --brp-gold-glow:    rgba(201, 169, 97, 0.32);

  /* Emerald (instant-access badge) */
  --brp-emerald:      #2e8b57;
  --brp-emerald-light:#4caf7a;
  --brp-emerald-dark: #1f6b40;
  --brp-emerald-soft: #d4ebe0;

  /* Shadows */
  --brp-shadow-sm:    0 1px 2px rgba(26, 22, 20, 0.04), 0 1px 4px rgba(26, 22, 20, 0.04);
  --brp-shadow-md:    0 4px 12px rgba(26, 22, 20, 0.07), 0 2px 6px rgba(26, 22, 20, 0.05);
  --brp-shadow-lg:    0 14px 36px rgba(26, 22, 20, 0.10), 0 6px 16px rgba(26, 22, 20, 0.06);
  --brp-shadow-xl:    0 26px 64px rgba(26, 22, 20, 0.14), 0 10px 26px rgba(26, 22, 20, 0.08);
  --brp-shadow-gold:  0 10px 28px rgba(201, 169, 97, 0.30);

  min-height: 80vh;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 32px);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,169,97,0.10), transparent 60%),
    linear-gradient(180deg, var(--brp-bg) 0%, var(--brp-bg-soft) 100%);
  color: var(--brp-text);
  position: relative;
  overflow: hidden;
}

.brp-choose-wrap::before,
.brp-choose-wrap::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--brp-gold-glow) 0%, transparent 65%);
  filter: blur(40px);
  opacity: 0.7;
}
.brp-choose-wrap::before { top: -200px; right: -200px; width: 500px; height: 500px; }
.brp-choose-wrap::after  { bottom: -200px; left: -200px; width: 500px; height: 500px; }

.brp-choose-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

/* ============================================================
   Header
   ============================================================ */
.brp-choose-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
  animation: brpChooseEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brp-choose-header h1 {
  margin: 0 0 14px;
  font-family: 'Heebo', 'Assistant', system-ui, sans-serif;
  font-size: clamp(30px, 4.8vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.2px;
  background: linear-gradient(135deg, var(--brp-text) 0%, var(--brp-gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brp-choose-header p {
  margin: 0;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 500;
  color: var(--brp-text-muted);
  letter-spacing: -0.2px;
}

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

/* ============================================================
   Grid
   ============================================================ */
.brp-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

@media (max-width: 820px) {
  .brp-choose-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================================
   Card — base
   ============================================================ */
.brp-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--brp-surface);
  border: 1.5px solid var(--brp-border);
  border-radius: 24px;
  /* Top padding leaves room for the ribbon that sits above the card edge */
  padding: 48px 32px 32px;
  box-shadow: var(--brp-shadow-md);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
  animation: brpChooseEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brp-choice-card:nth-child(1) { animation-delay: 0.08s; }
.brp-choice-card:nth-child(2) { animation-delay: 0.16s; }

.brp-choice-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--brp-shadow-xl);
  border-color: var(--brp-gold-light);
}

/* ============================================================
   Featured (digital) card — premium treatment
   ============================================================ */
.brp-choice-featured {
  background:
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(201,169,97,0.12), transparent 70%),
    linear-gradient(180deg, var(--brp-surface) 0%, var(--brp-surface-elev) 100%);
  border: 2px solid var(--brp-gold);
  box-shadow:
    var(--brp-shadow-lg),
    0 0 0 6px rgba(201, 169, 97, 0.12),
    0 30px 60px -20px rgba(201, 169, 97, 0.35);
}

.brp-choice-featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(201, 169, 97, 0.30) 30%,
    rgba(201, 169, 97, 0.10) 60%,
    transparent 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 2px;
  pointer-events: none;
  opacity: 0.7;
}

.brp-choice-featured:hover {
  border-color: var(--brp-gold-dark);
  box-shadow:
    var(--brp-shadow-xl),
    0 0 0 6px rgba(201, 169, 97, 0.18),
    0 40px 80px -20px rgba(201, 169, 97, 0.45);
}

/* ============================================================
   Top ribbon — "🏆 הכי מומלץ"
   Sits above the card, floating, with subtle bounce on hover
   ============================================================ */
.brp-choice-ribbon {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #1a1614;
  background: linear-gradient(135deg, var(--brp-gold-light) 0%, var(--brp-gold) 50%, var(--brp-gold-dark) 100%);
  border-radius: 999px;
  box-shadow:
    0 6px 16px rgba(140, 114, 50, 0.40),
    0 2px 6px rgba(140, 114, 50, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.brp-choice-ribbon::before,
.brp-choice-ribbon::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--brp-gold-dark);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}
.brp-choice-ribbon::before { right: -14px; box-shadow: 2px 0 4px rgba(0,0,0,0.15); }
.brp-choice-ribbon::after  { left:  -14px; box-shadow: -2px 0 4px rgba(0,0,0,0.15); }

.brp-choice-featured:hover .brp-choice-ribbon {
  transform: translateX(-50%) translateY(-3px) scale(1.03);
}

/* Physical ribbon — darker/woody variant to differentiate from the gold "best" ribbon */
.brp-ribbon-physical {
  background: linear-gradient(135deg, #3d342c 0%, #1a1614 50%, #3d342c 100%) !important;
  color: #faf7f2 !important;
  box-shadow:
    0 6px 16px rgba(26, 22, 20, 0.30),
    0 2px 6px rgba(26, 22, 20, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.brp-ribbon-physical::before,
.brp-ribbon-physical::after {
  background: #1a1614 !important;
}
.brp-choice-physical:hover .brp-choice-ribbon {
  transform: translateX(-50%) translateY(-3px) scale(1.03);
}

/* ============================================================
   Corner badges (small pills)
   ============================================================ */
.brp-choice-badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px; /* RTL-aware: right edge in RTL */
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: var(--brp-surface-elev);
  color: var(--brp-text-soft);
  border: 1px solid var(--brp-border);
  border-radius: 999px;
  white-space: nowrap;
}

.brp-choice-featured .brp-choice-badge {
  top: 60px; /* below ribbon */
}

/* Green emerald variant for "⚡ גישה מיידית" */
.brp-badge-instant {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--brp-emerald-light) 0%, var(--brp-emerald) 60%, var(--brp-emerald-dark) 100%) !important;
  border-color: var(--brp-emerald-dark) !important;
  box-shadow:
    0 4px 12px rgba(46, 139, 87, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

/* ============================================================
   Visual (book mockup) area
   ============================================================ */
.brp-choice-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin-bottom: 28px;
  perspective: 1200px;
}

.brp-choice-cover,
.brp-choice-cover-digital {
  max-width: 180px;
  max-height: 260px;
  width: auto;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 8px 16px rgba(26, 22, 20, 0.18))
    drop-shadow(0 20px 40px rgba(26, 22, 20, 0.22));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.brp-choice-cover {
  transform: rotateY(18deg) rotateX(2deg);
}
.brp-choice-card:hover .brp-choice-cover {
  transform: rotateY(8deg) rotateX(0deg) translateY(-4px);
}

.brp-choice-device {
  position: relative;
  display: inline-block;
}

.brp-choice-cover-digital {
  position: relative;
  z-index: 2;
  transform: rotateY(-12deg) rotateX(2deg);
  filter:
    drop-shadow(0 0 24px var(--brp-gold-glow))
    drop-shadow(0 12px 28px rgba(26, 22, 20, 0.18));
}
.brp-choice-card:hover .brp-choice-cover-digital {
  transform: rotateY(-4deg) rotateX(0deg) translateY(-4px) scale(1.02);
  filter:
    drop-shadow(0 0 36px var(--brp-gold-glow))
    drop-shadow(0 18px 36px rgba(26, 22, 20, 0.22));
}

.brp-choice-glow {
  position: absolute;
  inset: -30px;
  background:
    radial-gradient(circle, var(--brp-gold-glow) 0%, transparent 60%),
    radial-gradient(circle, rgba(46, 139, 87, 0.12) 0%, transparent 70%);
  filter: blur(24px);
  z-index: 1;
  pointer-events: none;
  animation: brpChoosePulse 5s ease-in-out infinite;
}

@keyframes brpChoosePulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.10); }
}

/* ============================================================
   Body content
   ============================================================ */
.brp-choice-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.brp-choice-title {
  margin: 0 0 6px;
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  color: var(--brp-text);
}

.brp-choice-featured .brp-choice-title {
  background: linear-gradient(135deg, var(--brp-text) 0%, var(--brp-gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brp-choice-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--brp-text-muted);
  text-align: center;
  font-weight: 500;
}

/* ============================================================
   Features list
   ============================================================ */
.brp-choice-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brp-choice-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--brp-text);
  background: var(--brp-surface-elev);
  border: 1px solid var(--brp-border-soft);
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.brp-choice-card:hover .brp-choice-features li {
  background: #fffdf8;
}

.brp-choice-features li:hover {
  transform: translateX(-2px); /* RTL: slide right visually means translate -X */
}

.brp-feat-icon {
  font-size: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brp-surface);
  border: 1px solid var(--brp-border-soft);
}

.brp-choice-featured .brp-feat-icon {
  background: linear-gradient(135deg, rgba(201,169,97,0.12) 0%, rgba(201,169,97,0.06) 100%);
  border-color: rgba(201,169,97,0.30);
}

/* ============================================================
   Price
   ============================================================ */
.brp-choice-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 8px 0 24px;
  padding: 20px 0;
  border-top: 1px dashed var(--brp-border);
  border-bottom: 1px dashed var(--brp-border);
}

.brp-price-currency {
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--brp-gold-dark);
}

.brp-price-amount {
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: clamp(48px, 5vw, 60px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--brp-gold) 0%, var(--brp-gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brp-choice-featured .brp-price-amount {
  background: linear-gradient(135deg, var(--brp-gold-light) 0%, var(--brp-gold) 50%, var(--brp-gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   CTA buttons
   ============================================================ */
.brp-choice-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 28px;
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-decoration: none !important;
  border-radius: 999px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  min-height: 56px;
}

.brp-choice-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.brp-choice-cta:hover svg {
  transform: translateX(-5px);
}

.brp-cta-physical {
  background: linear-gradient(135deg, var(--brp-text) 0%, #2c2520 100%);
  color: var(--brp-surface) !important;
  box-shadow: 0 8px 20px rgba(26, 22, 20, 0.20);
}

.brp-cta-physical:hover {
  background: linear-gradient(135deg, #2c2520 0%, var(--brp-gold-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 22, 20, 0.28);
}

.brp-cta-digital {
  background: linear-gradient(135deg, var(--brp-gold-light) 0%, var(--brp-gold) 50%, var(--brp-gold-dark) 100%);
  color: #1a1614 !important;
  box-shadow: var(--brp-shadow-gold);
}

.brp-cta-digital::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.brp-cta-digital:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px var(--brp-gold-glow);
}

.brp-cta-digital:hover::before {
  left: 100%;
}

.brp-choice-cta:active {
  transform: translateY(0) scale(0.98);
}

.brp-choice-cta:focus-visible {
  outline: 3px solid var(--brp-gold);
  outline-offset: 3px;
}

/* ============================================================
   Footer
   ============================================================ */
.brp-choose-footer {
  margin-top: clamp(40px, 5vw, 56px);
  text-align: center;
  font-size: 13px;
  color: var(--brp-text-muted);
  padding-top: 28px;
  border-top: 1px solid var(--brp-border-soft);
  position: relative;
  z-index: 1;
}

/* ============================================================
   Mobile refinements
   ============================================================ */
@media (max-width: 600px) {
  .brp-choice-card {
    padding: 32px 22px 26px;
    border-radius: 20px;
  }
  .brp-choice-featured {
    padding-top: 42px;
  }
  .brp-choice-ribbon {
    font-size: 12px;
    padding: 8px 18px;
    top: -14px;
  }
  .brp-choice-badge {
    font-size: 11px;
    padding: 5px 12px;
  }
  .brp-choice-featured .brp-choice-badge {
    top: 56px;
  }
  .brp-choice-visual {
    min-height: 200px;
  }
  .brp-choice-cover,
  .brp-choice-cover-digital {
    max-width: 150px;
    max-height: 220px;
  }
  .brp-choice-title       { font-size: 24px; }
  .brp-choice-features li { font-size: 14px; padding: 11px 14px; }
  .brp-choice-cta         { padding: 16px 24px; font-size: 15.5px; }
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .brp-choose-header,
  .brp-choice-card { animation: none !important; }

  .brp-choice-card,
  .brp-choice-card:hover,
  .brp-choice-cover,
  .brp-choice-cover-digital,
  .brp-choice-cta,
  .brp-choice-cta:hover,
  .brp-choice-ribbon,
  .brp-feat-icon {
    transition: none !important;
    transform: none !important;
  }
  .brp-choice-glow,
  .brp-cta-digital::before { animation: none !important; }
}
