/* ============================================================
   «وسط گلزار باشم» — دک پرامپت‌نویسی هوش مصنوعی تصویری
   حال‌وهوا: آرام، گرم، مسالمت‌آمیز — الهام از گلزار و نور طلایی
   ============================================================ */

@font-face {
  font-family: 'Vazirmatn';
  src: local('Vazirmatn');
}

:root {
  --rose-50:  #fdf6f3;
  --rose-100: #f7e8e2;
  --rose-200: #edd0c4;
  --rose-300: #dfae9c;
  --rose-400: #c88a72;
  --rose-500: #b06a51;
  --terracotta: #a8543a;
  --terracotta-deep: #7d3d29;
  --sage: #8a9a7e;
  --sage-deep: #5f6f54;
  --ink: #3a2c26;
  --ink-soft: #6b564c;
  --cream: #fbf4ee;
  --gold: #c9a15a;

  --deck-font: 'Vazirmatn', 'Estedad', 'Noto Sans Arabic', sans-serif;
}

* { box-sizing: border-box; }

.reveal { font-family: var(--deck-font); color: var(--ink); direction: rtl; }
.reveal .slides section {
  text-align: right;
  background: var(--cream);
  overflow: hidden;
  font-family: var(--deck-font);
}

.reveal .slides section > * { position: relative; z-index: 2; }

/* ---------- بستر عمومی گلزار ---------- */
.garden-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(200,138,114,.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 95%, rgba(138,154,126,.16), transparent 60%),
    var(--cream);
}
.garden-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('./images/floral-texture.png');
  background-size: cover;
  background-position: center;
  opacity: .1;
  mix-blend-mode: multiply;
}
.petal-line {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-300), transparent);
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: var(--deck-text-step--1);
  color: var(--terracotta-deep);
  background: var(--rose-100);
  border: 1px solid var(--rose-200);
  padding: .35em 1em;
  border-radius: 999px;
  font-weight: 700;
}
.eyebrow::before { content: ''; color: var(--rose-400); }

h1, h2, h3 { font-family: var(--deck-font); font-weight: 800; color: var(--terracotta-deep); line-height: 1.35; margin: 0; }
p, li { line-height: 1.85; color: var(--ink-soft); }

/* ---------- کارت‌ها ---------- */
.card {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--rose-200);
  border-radius: 22px;
  padding: var(--deck-space-5);
  box-shadow: 0 12px 30px -18px rgba(125,61,41,.35);
  backdrop-filter: blur(2px);
}

.tag-neg {
  display: inline-block;
  font-size: var(--deck-text-step--1);
  color: #7a2e22;
  background: #fbe4dd;
  border: 1px solid #edb7a8;
  padding: .15em .8em;
  border-radius: 8px;
  font-weight: 700;
}
.tag-pos {
  display: inline-block;
  font-size: var(--deck-text-step--1);
  color: var(--sage-deep);
  background: #eaf0e5;
  border: 1px solid #c7d6bb;
  padding: .15em .8em;
  border-radius: 8px;
  font-weight: 700;
}

code, .prompt-box {
  font-family: 'Vazirmatn', monospace;
  direction: ltr;
  text-align: left;
  display: block;
  background: #2f2420;
  color: #f3e6da;
  border-radius: 16px;
  padding: var(--deck-space-4) var(--deck-space-5);
  font-size: var(--deck-text-step--1);
  line-height: 1.9;
  border: 1px solid #4a382f;
  overflow-wrap: anywhere;
}
.prompt-box .lbl { color: var(--gold); font-weight: 700; }

.pill-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2em; height: 2.2em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-400), var(--terracotta));
  color: #fff;
  font-weight: 800;
  font-size: var(--deck-text-step-0);
  flex-shrink: 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--deck-space-6); align-items: stretch; }
.stack { display: flex; flex-direction: column; gap: var(--deck-space-4); }
.row { display: flex; align-items: flex-start; gap: var(--deck-space-3); }

.img-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 50px -20px rgba(125,61,41,.45);
  border: 6px solid #fff;
}
.img-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58,44,38,.55), transparent 45%);
}
.img-cap {
  position: absolute; inset-inline-start: 0; inset-block-end: 0;
  z-index: 3;
  padding: var(--deck-space-4);
  color: #fff;
  font-weight: 700;
  font-size: var(--deck-text-step--1);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: linear-gradient(135deg, var(--terracotta), var(--rose-500));
  color: #fff;
  font-weight: 800;
  padding: .8em 1.8em;
  border-radius: 999px;
  font-size: var(--deck-text-step-0);
  box-shadow: 0 14px 30px -12px rgba(168,84,58,.6);
}

.footer-mark {
  position: absolute;
  inset-inline-end: 6%;
  inset-block-end: 5%;
  z-index: 3;
  font-size: var(--deck-text-step--1);
  color: var(--rose-400);
  font-weight: 700;
  opacity: .8;
}
.slide-kicker {
  position: absolute;
  inset-inline-start: 6%;
  inset-block-start: 6%;
  z-index: 3;
  font-size: var(--deck-text-step--1);
  color: var(--sage-deep);
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- انیمیشن ورود ملایم ---------- */
.reveal .slides section.present .fade-up {
  animation: fadeUp .7s var(--deck-ease-out) both;
}
.reveal .slides section.present .fade-up.d1 { animation-delay: .1s; }
.reveal .slides section.present .fade-up.d2 { animation-delay: .22s; }
.reveal .slides section.present .fade-up.d3 { animation-delay: .34s; }
.reveal .slides section.present .fade-up.d4 { animation-delay: .46s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal .slides section.present .grow-line {
  animation: growLine 1.1s var(--deck-ease-out) both .3s;
}
@keyframes growLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
