:root {
  --bg: #f4ede3;
  --surface: rgba(255, 248, 240, 0.72);
  --surface-strong: #fffaf4;
  --ink: #1f1a17;
  --muted: #6f6257;
  --accent: #b65a3a;
  --accent-dark: #96492d;
  --line: rgba(64, 41, 28, 0.12);
  --shadow: 0 24px 60px rgba(63, 34, 20, 0.12);
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Assistant", sans-serif;
  direction: rtl;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(182, 90, 58, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(112, 137, 130, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f1e7 0%, #f2e7d8 45%, #efe3d5 100%);
}

h1, h2, h3, .navbar-brand {
  font-family: "Heebo", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  padding: 1rem 0;
  background: transparent;
}

.navbar-brand {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
}

.navbar-nav {
  gap: 1rem;
}

.btn-nav,
.btn-accent,
.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-nav,
.btn-accent {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary-outline {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(31, 26, 23, 0.18);
}

.btn-nav:hover,
.btn-accent:hover,
.btn-secondary-outline:hover {
  transform: translateY(-1px);
}

.btn-nav:hover,
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.site-shell {
  flex: 1 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
}

.site-main {
  flex: 1 0 auto;
}

.cinema-hero {
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: center;
  padding: 1rem 0 2rem;
}

.cinema-frame {
  background: rgba(18, 17, 21, 0.84);
  border-radius: 36px;
  padding: 1.5rem;
  box-shadow: 0 32px 90px rgba(14, 11, 11, 0.35);
}

.video-shell {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15, 12, 18, 0.2), rgba(15, 12, 18, 0.72)),
    linear-gradient(135deg, #20212b 0%, #38495e 48%, #9b533d 100%);
}

.hero-video {
  width: 100%;
  height: 76vh;
  display: block;
  object-fit: cover;
  background: #131217;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
  color: #fff7ef;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.08), rgba(10, 10, 12, 0.45) 65%, rgba(10, 10, 12, 0.75) 100%);
}

.video-overlay span {
  font-family: "Heebo", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
}

.landing-section {
  margin-top: 2rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h1,
.section-heading h2,
.contact-section h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  margin: 0;
}

.book-grid,
.site-links-grid {
  display: grid;
  gap: 1.5rem;
}

.book-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-book-card,
.site-link-card,
.contact-section,
.admin-menu-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: 28px;
}

.store-book-card {
  padding: 1.5rem;
}

.store-book-cover {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1rem;
  color: #fff7ef;
  background:
    linear-gradient(180deg, rgba(17, 14, 20, 0.18), rgba(17, 14, 20, 0.82)),
    linear-gradient(140deg, #2d4055 0%, #6b786b 44%, #b55f44 100%);
}

.alt-cover {
  background:
    linear-gradient(180deg, rgba(17, 14, 20, 0.18), rgba(17, 14, 20, 0.82)),
    linear-gradient(140deg, #49374c 0%, #646b8a 44%, #d38e56 100%);
}

.store-book-cover h2 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin: 0;
}

.site-links-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-link-card {
  display: flex;
  align-items: center;
  min-height: 150px;
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.site-link-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 248, 240, 0.92);
}

.contact-section {
  padding: 2rem;
}

.contact-lines {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-lines p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.eyebrow,
.section-tag {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-text,
.story-panel p,
.detail-item p,
.author-section p,
.preorder-intro p,
.simple-page p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: right;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid var(--line);
}

.book-card,
.story-panel,
.details-panel,
.author-section,
.preorder-section,
.confirmation-banner,
.simple-page,
.bonus-card,
.admin-shell {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.book-card {
  border-radius: 32px;
  padding: 1.5rem;
}

.book-cover {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border-radius: 24px;
  color: #fff7f0;
  text-align: right;
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.1), rgba(16, 20, 28, 0.74)),
    linear-gradient(135deg, #355c66, #1f3040 42%, #c16f49 100%);
}

.book-kicker {
  margin-bottom: auto;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-cover h2 {
  font-size: 4rem;
  line-height: 0.9;
  margin-bottom: 1rem;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.story-panel,
.details-panel,
.author-section,
.preorder-section,
.simple-page,
.confirmation-banner,
.bonus-card {
  border-radius: 28px;
  padding: 2rem;
}

.details-panel {
  display: grid;
  gap: 1rem;
}

.detail-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.detail-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-item h3,
.author-section h2,
.preorder-intro h2,
.story-panel h2,
.simple-page h1 {
  font-size: 2.3rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.author-section,
.preorder-section {
  margin-top: 1.5rem;
}

.preorder-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.preorder-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.preorder-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.preorder-form .full-width {
  grid-column: 1 / -1;
}

.form-control {
  border-radius: 18px;
  border: 1px solid rgba(31, 26, 23, 0.12);
  background: rgba(255, 250, 244, 0.92);
  padding: 0.85rem 1rem;
  text-align: right;
}

.form-control:focus {
  border-color: rgba(182, 90, 58, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(182, 90, 58, 0.12);
}

.text-danger {
  font-size: 0.92rem;
}

.confirmation-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: right;
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1.25rem 0 0.75rem;
  border-top: 1px solid rgba(64, 41, 28, 0.12);
  gap: 1rem;
  color: var(--muted);
}

.bonus-list,
.admin-grid,
.podcast-list,
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.bonus-card h2,
.admin-editor h2,
.admin-list h2,
.admin-toolbar h1,
.podcast-card h2,
.admin-menu-card h2 {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.bonus-summary {
  color: var(--accent-dark);
  font-weight: 700;
}

.bonus-body {
  white-space: pre-wrap;
  line-height: 1.9;
  color: var(--ink);
}

.podcast-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 2rem;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: 28px;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: rgba(31, 26, 23, 0.08);
}

.gallery-card-body {
  padding: 1.2rem 1.4rem 1.5rem;
}

.gallery-card-body h2 {
  margin: 0;
  font-size: 1.5rem;
}

.podcast-player {
  width: 100%;
}

.admin-shell {
  border-radius: 32px;
  padding: 2rem;
}

.admin-toolbar,
.admin-actions,
.admin-item,
.admin-item-actions,
.checkbox-row {
  display: flex;
  align-items: center;
}

.admin-toolbar,
.admin-item {
  justify-content: space-between;
  gap: 1rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-body-input {
  min-height: 18rem;
}

.admin-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-item h3 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.admin-gallery-item {
  align-items: flex-start;
}

.admin-gallery-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-gallery-thumb {
  width: 110px;
  height: 140px;
  object-fit: cover;
  flex: 0 0 auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(31, 26, 23, 0.08);
}

.admin-item p,
.admin-meta {
  color: var(--muted);
}

.admin-item-actions,
.admin-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.checkbox-row {
  gap: 0.6rem;
  justify-content: flex-start;
}

.admin-file-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-menu-card {
  display: block;
  padding: 2rem;
}

.admin-menu-card p {
  margin: 0;
  color: var(--muted);
}

.btn-danger-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  color: #8d2d2d;
  background: rgba(166, 45, 45, 0.08);
  border: 1px solid rgba(166, 45, 45, 0.18);
}

@media (max-width: 991.98px) {
  .admin-menu-grid,
  .book-grid,
  .site-links-grid,
  .gallery-grid,
  .hero,
  .content-grid,
  .preorder-section,
  .preorder-form {
    grid-template-columns: 1fr;
  }

  .book-cover {
    min-height: 340px;
  }

  .store-book-cover {
    min-height: 320px;
  }

  .confirmation-banner,
  .footer,
  .admin-toolbar,
  .admin-item,
  .admin-gallery-summary {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .cinema-frame {
    padding: 1rem;
  }

  .video-shell,
  .hero-video {
    min-height: 60vh;
    height: 60vh;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .book-cover h2,
  .detail-item h3,
  .author-section h2,
  .preorder-intro h2,
  .story-panel h2,
  .simple-page h1 {
    font-size: 2.4rem;
  }
}
