/* ── Fonts ──────────────────────────────────────────────── */
@font-face {
  font-family: ExpoArabicBook;
  src: url(./resources/fonts/ExpoArabic-Book.ttf);
  font-display: swap;
}

@font-face {
  font-family: ExpoArabicLight;
  src: url(./resources/fonts/ExpoArabic-Light.ttf);
  font-display: swap;
}

/* ── Variables ──────────────────────────────────────────── */
:root {
  --color-gold: #8d6928;
  --color-orange: #c65c2a;
  --color-teal: #395855;
  --color-border: #dddcca;
  --color-bg: #faf8f3;
  --color-white: #ffffff;
  --color-text-muted: #6b6b6b;
  --font-primary: ExpoArabicBook, Arial, sans-serif;
  --font-light: ExpoArabicLight, Arial, sans-serif;
  --card-width: 800px;
  --panel-radius: 10px;
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1rem 4rem;
  min-height: 100vh;
}

/* ── Control Panel ──────────────────────────────────────── */
#interaction {
  width: 90%;
  max-width: var(--card-width);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--panel-radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  direction: rtl;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.field label {
  font-family: var(--font-primary);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

#nameInput {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #333;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 100%;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#nameInput:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(141, 105, 40, 0.15);
}

/* ── Download Button ────────────────────────────────────── */
#download {
  font-family: var(--font-);
  font-size: 0.95rem;
  color: var(--color-white);
  background-color: var(--color-gold);
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

#download:hover {
  background-color: var(--color-orange);
}
#download:active {
  opacity: 0.8;
}

#download[data-state="loading"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Card ───────────────────────────────────────────────── */
.banner-card {
  position: relative;
  width: var(--card-width);
  text-align: center;
}

.banner-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--panel-radius);
}

.banner-text {
  position: absolute;
  bottom: 22%; /* measured: gold banner centre is at 20.2% from bottom of Bg.jpg */
  left: 0;
  right: 0;
  text-align: center;
  direction: rtl;
  pointer-events: none;
}

.banner-text h3 {
  font-family: var(--font-primary); /* Expo */
  font-size: 1.5rem;
  color: var(--color-white);
  text-shadow: 0 1px 2px var(--color-teal);
  direction: rtl;
}
