/* ============================================================
   SULAYMAN COFFEE — guide.css
   دليل القهوة التفاعلي — خلفية نيلية داكنة
   ============================================================ */

/* ══ LOADING ══ */
.guide-loading {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

.guide-spin {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(249, 230, 192, 0.15);
  border-top-color: var(--org);
  border-radius: 50%;
  animation: guideSpin 0.7s linear infinite;
}

@keyframes guideSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ══ SECTION ══ */
.guide-sec {
  background: var(--dark);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.guide-sec::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(237, 97, 59, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.guide-sec::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(237, 97, 59, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ══ HEADER — مثل باقي الأقسام RTL ══ */
.guide-hdr {
  padding: 0 5%;
  margin-bottom: 4rem;
  direction: rtl;
  position: relative;
  z-index: 2;
}

.guide-lbl-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.guide-lbl {
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--org);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.guide-lbl::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--org);
}

.guide-title {
  font-family: 'Handicrafts', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.guide-sub {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.45;
  line-height: 1.8;
}

/* ══ WIZARD WRAPPER ══ */
.guide-wizard {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

/* ══ PROGRESS BAR ══ */
.guide-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
}

.gp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.gp-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(249, 230, 192, 0.2);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.7rem;
  color: rgba(249, 230, 192, 0.35);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.gp-dot svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.gp-lbl {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.6rem;
  color: rgba(249, 230, 192, 0.35);
  transition: color 0.3s;
  white-space: nowrap;
}

.gp-line {
  width: 80px;
  height: 1px;
  background: rgba(249, 230, 192, 0.1);
  margin-bottom: 1.4rem;
  position: relative;
  overflow: hidden;
}

.gp-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--org);
  transition: width 0.6s ease;
}

.gp-step.active .gp-dot {
  border-color: var(--org);
  background: var(--org);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(237, 97, 59, 0.4);
}
.gp-step.active .gp-lbl {
  color: var(--org);
}

.gp-step.done .gp-dot {
  border-color: var(--org);
  background: var(--org);
  color: white;
}
.gp-step.done .gp-dot span {
  display: none;
}
.gp-step.done .gp-dot svg {
  display: block;
}
.gp-step.done .gp-lbl {
  color: var(--cream);
  opacity: 0.45;
}

.gp-line.filled::after {
  width: 100%;
}

/* ══ STEP ══ */
.guide-step {
  display: none;
  animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.guide-step.active {
  display: block;
}

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

.guide-q {
  font-family: 'Handicrafts', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--cream);
  text-align: center;
  margin-bottom: 0.5rem;
}

.guide-hint {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.78rem;
  color: var(--cream);
  opacity: 0.35;
  text-align: center;
  margin-bottom: 2.2rem;
}

/* ══ OPTIONS GRID ══ */
.guide-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ══ OPTION CARD ══ */
.guide-opt {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(249, 230, 192, 0.1);
  border-radius: 2px;
  padding: 1.6rem 1rem 1.4rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.guide-opt:hover {
  border-color: var(--org);
  background: rgba(237, 97, 59, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.guide-opt.selected {
  border-color: var(--org);
  background: var(--org);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(237, 97, 59, 0.3);
}

.guide-opt-icon {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.guide-opt:hover .guide-opt-icon {
  transform: scale(1.15);
}
.guide-opt.selected .guide-opt-icon {
  transform: scale(1.2);
}

.guide-opt-title {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.88rem;
  color: var(--cream);
  font-weight: bold;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
  transition: color 0.25s;
}

.guide-opt-desc {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.68rem;
  color: var(--cream);
  opacity: 0.38;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  transition: color 0.25s, opacity 0.25s;
}

.guide-opt.selected .guide-opt-title {
  color: white;
}
.guide-opt.selected .guide-opt-desc {
  color: white;
  opacity: 0.85;
}

/* ══ RESULT ══ */
.guide-result {
  display: none;
  animation: stepIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.guide-result.active {
  display: block;
}

.guide-result-hdr {
  text-align: center;
  margin-bottom: 2.5rem;
}

.guide-result-tag {
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--org);
  margin-bottom: 0.6rem;
}

.guide-result-title {
  font-family: 'Handicrafts', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.guide-result-sub {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.82rem;
  color: var(--cream);
  opacity: 0.4;
}

/* ══ RESULT CARDS ══ */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
}

.guide-rcard {
  background: #1a2028;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guide-rcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.guide-rcard-rank {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 24px;
  height: 24px;
  background: var(--org);
  color: white;
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-rcard-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #131920;
  position: relative;
}
.guide-rcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.guide-rcard:hover .guide-rcard-img img {
  transform: scale(1.08);
}

.guide-rcard-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.guide-rcard-cat {
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--org);
  opacity: 0.8;
}

.guide-rcard-name {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.88rem;
  color: var(--cream);
  font-weight: bold;
  flex: 1;
  line-height: 1.4;
}

.guide-rcard-why {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.7rem;
  color: var(--cream);
  opacity: 0.38;
  line-height: 1.6;
  margin: 0.3rem 0 0.6rem;
}

/* ══ WEIGHT BUTTONS — أزرار الأوزان ══ */
.guide-rcard-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.4rem 0 0.5rem;
}

.guide-rcard-wbtn {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.62rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(249, 230, 192, 0.22);
  background: transparent;
  color: rgba(249, 230, 192, 0.55);
  cursor: pointer;
  transition: all 0.18s;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
}

.guide-rcard-wbtn:hover {
  border-color: var(--org);
  color: var(--cream);
}

.guide-rcard-wbtn.active {
  background: var(--org);
  border-color: var(--org);
  color: white;
}

.guide-rcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.guide-rcard-price {
  font-family: 'Handicrafts', serif;
  font-size: 1rem;
  color: white;
}
.guide-rcard-price small {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.52rem;
  opacity: 0.4;
}

.guide-rcard-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--org);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.guide-rcard-add:hover {
  background: var(--org2);
  transform: scale(1.12);
}
.guide-rcard-add svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══ MATCH BAR ══ */
.guide-match {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.guide-match-bar {
  flex: 1;
  height: 3px;
  background: rgba(249, 230, 192, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.guide-match-fill {
  height: 100%;
  background: var(--org);
  border-radius: 2px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.guide-match-pct {
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.6rem;
  color: var(--org);
  min-width: 28px;
  text-align: left;
}

/* ══ واتساب ══ */
.guide-wa-wrap {
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.guide-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25d366;
  color: white;
  text-decoration: none;
  font-family: 'IranSansX', sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.guide-wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.guide-wa-hint {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.72rem;
  color: var(--cream);
  opacity: 0.35;
  margin-top: 0.7rem;
}

/* ══ CHIP — الاختيار السابق ══ */
.guide-chip-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(237, 97, 59, 0.15);
  border: 1px solid rgba(237, 97, 59, 0.4);
  color: var(--org);
  font-family: 'IranSansX', sans-serif;
  font-size: 0.82rem;
  font-weight: bold;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  border-radius: 50px;
}

.guide-chip-x {
  background: none;
  border: none;
  color: var(--org);
  opacity: 0.6;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0 0.1rem;
  line-height: 1;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.guide-chip-x:hover {
  opacity: 1;
}

/* ══ زر التراجع ══ */
.guide-back-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.guide-back-btn {
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: var(--org);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  transition: opacity 0.2s;
}
.guide-back-btn:hover {
  opacity: 0.75;
}

/* ══ ACTIONS ══ */
.guide-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.guide-btn-retry {
  font-family: 'IranSansX', sans-serif;
  background: transparent;
  border: 1px solid rgba(249, 230, 192, 0.2);
  color: var(--cream);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.6;
  white-space: nowrap;
}
.guide-btn-retry:hover {
  border-color: var(--cream);
  opacity: 1;
}

.guide-btn-all {
  font-family: 'IranSansX', sans-serif;
  background: var(--org);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  white-space: nowrap;
}
.guide-btn-all:hover {
  background: var(--org2);
}

@media (max-width: 768px) {
  .guide-actions {
    flex-direction: row;
    justify-content: center;
    gap: 0.6rem;
  }
  .guide-btn-retry,
  .guide-btn-all,
  .guide-actions .guide-back-btn {
    font-size: 0.78rem;
    padding: 0.65rem 1rem;
  }
}

/* ══ MOBILE ══ */
@media (max-width: 768px) {
  .guide-sec {
    padding: 4rem 0;
  }
  .guide-opts {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
  .guide-opt {
    padding: 1.2rem 0.7rem 1rem;
  }
  .guide-opt-icon {
    font-size: 1.6rem;
  }
  .guide-opt-desc {
    display: none;
  }
  .gp-lbl {
    display: none;
  }
  .gp-line {
    width: 44px;
  }
  .guide-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
  .guide-rcard-img {
    aspect-ratio: 1;
  }
  .guide-rcard-body {
    padding: 0.7rem;
  }
  .guide-rcard-name {
    font-size: 0.75rem;
  }
  .guide-rcard-price {
    font-size: 0.85rem;
  }
}
