/* ============================================================
   Artizanki — styles.css
   Palette: warm stone / charcoal / terracotta / amber
   Fonts:   Inter (Latin) + Cairo (Arabic)
   ============================================================ */

:root {
  --stone-50:  #faf9f7;
  --stone-100: #f2efe9;
  --stone-200: #e5e0d6;
  --stone-400: #a89e8e;
  --stone-600: #6b6357;
  --charcoal:  #1c1917;
  --ink:       #292524;
  --terracotta:#c1592f;
  --terracotta-dark:#a44722;
  --amber:     #d99a3d;
  --radius:    14px;
  --font-latin: 'Inter', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-latin);
  /* Site-wide wallpaper background */
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--stone-100);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Arabic text always renders in Cairo */
[lang="ar"] { font-family: var(--font-arabic); font-weight: 600; }

img, svg { display: block; }
a { color: inherit; }

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--charcoal);
}

.brand-mark { border-radius: 8px; }

.brand-ar {
  font-size: .95rem;
  color: var(--terracotta);
  margin-inline-start: .35rem;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
}

.site-nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: var(--stone-600);
  transition: color .2s;
}

.site-nav a span {
  font-size: .8rem;
  color: var(--terracotta);
  margin-inline-start: .3rem;
}

.site-nav a:hover { color: var(--charcoal); }

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .4rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  background: transparent; /* site wallpaper shows through */
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(250, 249, 247, .35),
    rgba(250, 249, 247, .15) 55%,
    rgba(242, 239, 233, .55));
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

/* Circular host photo at top of hero */
.hero-avatar {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 28px -10px rgba(28, 25, 23, .5);
}

.hero-kicker {
  display: inline-block;
  color: var(--terracotta);
  font-size: 1.05rem;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.hero-sep {
  color: var(--terracotta);
  margin: 0 .4em;
  font-weight: 400;
}

.hero-tagline {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
}

.tagline-ar {
  display: block;
  color: var(--stone-600);
  font-size: .95em;
  margin-top: .15rem;
}

.hero-sub {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  color: var(--stone-600);
  font-size: 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 2.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover { background: var(--terracotta-dark); }

.btn-ghost {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-ghost:hover { background: var(--charcoal); color: var(--stone-50); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

/* Section dividers: subtle repeatable wallpaper texture */
.section-alt { position: relative; }

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('pattern-tile.jpg');
  background-repeat: repeat;
  background-size: 460px;
  opacity: .08;
  pointer-events: none;
}

.section-alt > .container { position: relative; }

.section-kicker {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .3rem;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.01em;
}

.section-sub {
  color: var(--stone-600);
  margin-top: .5rem;
  max-width: 38rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.about-photo {
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 16px 36px -14px rgba(28, 25, 23, .4);
}

.about-frame { display: none; }

.about-copy h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.about-copy p { margin-bottom: 1rem; color: var(--ink); }

.about-list {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  gap: .55rem;
}

.about-list li {
  padding-inline-start: 1.6rem;
  position: relative;
  color: var(--stone-600);
}

.about-list li::before {
  content: "✦";
  position: absolute;
  inset-inline-start: 0;
  color: var(--amber);
}

/* ---------- Episode cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -18px rgba(28, 25, 23, .3);
}

.card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
}

.thumb-ph {
  background:
    radial-gradient(20rem 10rem at 70% 20%, rgba(217, 154, 61, .18), transparent 65%),
    repeating-linear-gradient(135deg, var(--stone-200) 0 12px, var(--stone-100) 12px 24px);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px -4px rgba(193, 89, 47, .55);
  transition: transform .2s;
}

.card:hover .play-badge { transform: translate(-50%, -50%) scale(1.12); }

.thumb-label {
  position: absolute;
  bottom: .7rem;
  inset-inline-end: .7rem;
  background: rgba(28, 25, 23, .75);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .4px;
  padding: .25rem .6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.card-body { padding: 1.1rem 1.2rem 1.3rem; }

.card-craft {
  color: var(--terracotta);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: .35rem 0 .2rem;
}

.card-meta {
  font-size: .88rem;
  color: var(--stone-600);
}

/* ---------- Art / wallpapers section ---------- */
.section-art {
  background:
    url('screensaver-bg.jpg') center / cover no-repeat fixed;
  position: relative;
}

.section-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 247, .88);
}

.section-art .container { position: relative; }

.art-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-width: 640px; }

.art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.art-thumb:hover img { transform: scale(1.05); }

/* ---------- Nominate form ---------- */
.nominate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.nominate-copy p { color: var(--ink); margin-top: 1rem; max-width: 30rem; }

.nominate-note {
  color: var(--stone-600);
  font-weight: 600;
}

.form {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 14px 34px -20px rgba(28, 25, 23, .25);
}

.field { display: grid; gap: .35rem; }

.field span {
  font-size: .88rem;
  font-weight: 600;
  color: var(--charcoal);
}

.field em {
  font-style: normal;
  font-weight: 600;
  color: var(--terracotta);
  margin-inline-start: .35rem;
  font-size: .82rem;
}

.field input {
  font: inherit;
  padding: .7rem .9rem;
  border: 1.5px solid var(--stone-200);
  border-radius: 10px;
  background: var(--stone-50);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}

.field input:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
}

.form-status {
  font-size: .9rem;
  color: var(--terracotta);
  text-align: center;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--stone-200);
  padding: 3rem 0 1.6rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand .brand-text { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-brand .brand-ar { color: var(--amber); }

.footer-tag { font-size: .9rem; color: var(--stone-400); margin-top: .3rem; }

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--stone-200);
  transition: background .2s, color .2s, transform .2s;
}

.footer-social a:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
  color: var(--stone-400);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  /* iOS doesn't support fixed backgrounds reliably */
  body { background-attachment: scroll; }

  .about-media { max-width: 240px; margin: 0 auto; }


  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    background: var(--stone-50);
    border-bottom: 1px solid var(--stone-200);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }

  .site-nav.open { max-height: 220px; padding: .8rem 1.25rem; }

  .site-nav a { padding: .55rem 0; font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-avatar { width: 104px; height: 104px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .footer-base { justify-content: center; text-align: center; }
}

/* Small screens: reduce decorative rotation */
@media (hover: none) {
  .about-frame { transform: none; }
}
