﻿@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --navy: #1a365d;
  --navy-dark: #122846;
  --cream: #f9f7f2;
  --paper: #fffcf7;
  --orange: #e68a45;
  --orange-deep: #d47732;
  --green: #3d7a4a;
  --wa: #25d366;
  --muted: #6b7680;
  --border: #e8e2d6;
  --ink: #2a3540;
  --shadow: 0 22px 55px rgba(18, 40, 70, 0.12);
  --shadow-soft: 0 10px 28px rgba(18, 40, 70, 0.08);
  --serif: 'Lora', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --radius: 999px;
  --radius-md: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  max-width: 100vw;
}

a, button, input, select, textarea, summary, label, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }

/* Allow typing / editing in form fields only */
input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.55em;
  font-weight: 600;
}

/* Hide mouse/programmatic focus rings on non-controls (hero title flash on load) */
:focus:not(:focus-visible) {
  outline: none;
}
h1:focus,
h2:focus,
h3:focus,
p:focus,
span:focus,
div:focus {
  outline: none;
}
@media (hover: hover) and (pointer: fine) {
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
  }
}
@media (hover: none), (pointer: coarse) {
  *:focus,
  *:focus-visible {
    outline: none !important;
  }
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0.35em 0 1em; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: 88px 0; }

.section-head {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 640px;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.18);
}

.button:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 54, 93, 0.22);
}

.button-orange {
  background: var(--orange);
  box-shadow: 0 8px 22px rgba(230, 138, 69, 0.35);
}

.button-orange:hover {
  background: var(--orange-deep);
  box-shadow: 0 12px 28px rgba(230, 138, 69, 0.4);
}

.button-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  box-shadow: none;
}

.button-outline:hover {
  background: var(--navy);
  color: #fff;
}

.button-small { padding: 10px 18px; font-size: 0.88rem; }

.text-link {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.text-link:hover { color: var(--orange-deep); }

.tag {
  display: inline-block;
  background: #eaf0f6;
  color: var(--navy);
  padding: 5px 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  font-weight: 600;
}

/* â€”â€”â€” Header â€”â€”â€” */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 247, 242, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 226, 214, 0.85);
}

.navbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
}

.brand-text small {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
  font: 500 0.95rem var(--sans);
  color: var(--navy);
}
.nav-links-desktop a {
  padding: 28px 0 24px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links-desktop a.active,
.nav-links-desktop a:hover { border-color: var(--orange); }

/* Mobile drawer — hidden off-canvas, never expands page width */
.nav-drawer {
  display: none;
}
.nav-mobile-account { display: none; }
.nav-backdrop { display: none; }
.nav-install-btn { display: none; }

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta svg { width: 16px; height: 16px; }

/* Language switcher */
.lang-switch {
  position: relative;
  z-index: 30;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.lang-switch-btn:hover {
  border-color: var(--orange);
}

.lang-caret { font-size: 0.7rem; opacity: 0.7; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  gap: 2px;
}

.lang-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
}

.lang-option strong { font-size: 0.95rem; color: var(--navy); }
.lang-option span { font-size: 0.75rem; color: var(--muted); }
.lang-option:hover,
.lang-option.active { background: #eaf0f6; }

/* Kurdish RTL */
.lang-rtl,
html[dir="rtl"] body {
  direction: rtl;
}

.lang-rtl .navbar,
.lang-rtl .hero-grid,
.lang-rtl .hero-actions,
.lang-rtl .footer-top,
.lang-rtl .footer-bottom,
.lang-rtl .inline-actions,
.lang-rtl .nav-end {
  direction: rtl;
}

.lang-rtl .nav-end { margin-left: 0; margin-right: 0; }
.lang-rtl .nav-links-desktop { margin-left: 8px; margin-right: auto; }
.lang-rtl .lang-menu { right: auto; left: 0; }
.lang-rtl .lang-option { align-items: flex-end; text-align: right; }
.lang-rtl .hero-content { justify-self: end; }
.lang-rtl .text-link { border-bottom-width: 2px; }

.menu-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: var(--orange); }

/* â€”â€”â€” Footer â€”â€”â€” */
.site-footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-wrap img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
}

.footer-brand-wrap strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-links a:hover { color: var(--orange); }

.footer-note {
  font: italic 1.05rem var(--serif);
  color: #f5d9b8;
  margin: 0;
  max-width: 280px;
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #c5d0d9;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* â€”â€”â€” Hero â€”â€”â€” */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}

/* Full background â€” even, calm, readable */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(249, 247, 242, 0.94) 0%,
      rgba(249, 247, 242, 0.88) 42%,
      rgba(249, 247, 242, 0.45) 68%,
      rgba(249, 247, 242, 0.22) 100%
    ),
    var(--site-bg-hero, url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=2000&q=88')) center / cover no-repeat;
}

.hero-media::after {
  display: none;
}

/* Equal left / right columns */
.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 0;
  min-height: min(72vh, 580px);
}

.hero-content {
  max-width: 480px;
  width: 100%;
  justify-self: start;
  padding: 0;
}

.hero h1 {
  max-width: none;
  margin-bottom: 0.4em;
}

.hero-content > p {
  max-width: 420px;
  color: #3d4a56;
  font-size: 1.14rem;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-cover-wrap {
  justify-self: center;
  width: min(380px, 92%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* WebGL 3D magazine model */
.book3d-model-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.book3d-model-stage {
  position: relative;
  width: 100%;
  height: min(440px, 58vh);
  min-height: 340px;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, 0.4), transparent 55%);
  touch-action: none;
  overflow: hidden;
}

.book3d-model-stage canvas {
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
}

.book3d-fallback {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 46%;
  width: min(220px, 58%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transform: translate(-50%, -50%) perspective(900px) rotateY(-18deg) rotateX(6deg);
  border-radius: 3px;
  box-shadow: 18px 24px 40px rgba(18, 40, 70, 0.28);
  border-left: 10px solid #ebe4d6;
  transition: opacity 0.35s ease;
}

.book3d-model-stage[data-ready="1"] .book3d-fallback {
  opacity: 0;
  pointer-events: none;
}

.book3d-model-stage[data-ready="0"] .book3d-fallback {
  opacity: 1;
}

.book3d-model-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.book3d-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ——— Real CSS 3D magazine ——— */
.book3d-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.book3d {
  --book-w: 240px;
  --book-h: 360px;
  --book-d: 38px;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  perspective: 1800px;
}

.book3d-floor {
  position: absolute;
  left: 10%;
  right: 4%;
  bottom: -4%;
  height: 16%;
  background: radial-gradient(ellipse at center, rgba(18, 40, 70, 0.34), transparent 70%);
  filter: blur(7px);
  z-index: 0;
  pointer-events: none;
}

.book3d-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.book3d-body {
  position: relative;
  width: var(--book-w);
  height: var(--book-h);
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-28deg);
  transition: transform 0.35s ease;
  will-change: transform;
}

.book3d-face {
  position: absolute;
  display: block;
}

.book3d-front,
.book3d-back {
  width: var(--book-w);
  height: var(--book-h);
  left: 0;
  top: 0;
  backface-visibility: hidden;
}

.book3d-front {
  background: #1a365d;
  transform: translateZ(calc(var(--book-d) / 2));
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(18, 40, 70, 0.28);
}

.book3d-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book3d-back {
  transform: rotateY(180deg) translateZ(calc(var(--book-d) / 2));
  display: grid;
  place-items: center;
  padding: 18px;
  color: #f5d9b8;
  background: linear-gradient(160deg, #1a365d, #122846);
}

.book3d-back-inner {
  text-align: center;
  font-family: var(--serif);
}

.book3d-back-inner strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.book3d-back-inner span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.book3d-spine {
  width: var(--book-d);
  height: var(--book-h);
  left: calc((var(--book-w) - var(--book-d)) / 2);
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(90deg, #0d1f36, #1a365d 45%, #2a4a72 78%, #122846);
  transform: rotateY(-90deg) translateZ(calc(var(--book-w) / 2));
}

.book3d-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 0.58rem/1.1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5d9b8;
  white-space: nowrap;
}

.book3d-pages {
  width: var(--book-d);
  height: calc(var(--book-h) - 8px);
  left: calc((var(--book-w) - var(--book-d)) / 2);
  top: 4px;
  background: repeating-linear-gradient(
    to right,
    #fffaf2 0 2px,
    #ebe2d4 2px 3px,
    #f4eee4 3px 5px
  );
  transform: rotateY(90deg) translateZ(calc(var(--book-w) / 2));
  box-shadow: inset 2px 0 6px rgba(0, 0, 0, 0.06);
}

.book3d-top,
.book3d-bottom {
  width: var(--book-w);
  height: var(--book-d);
  left: 0;
  background: linear-gradient(90deg, #e8dfd0, #fffaf2 35%, #e8dfd0);
}

.book3d-top {
  top: calc((var(--book-h) - var(--book-d)) / 2);
  transform: rotateX(90deg) translateZ(calc(var(--book-h) / 2));
}

.book3d-bottom {
  top: calc((var(--book-h) - var(--book-d)) / 2);
  transform: rotateX(-90deg) translateZ(calc(var(--book-h) / 2));
  background: linear-gradient(90deg, #d4cbb8, #efe6d8);
}

.book3d-link:hover .book3d-body {
  transform: rotateX(10deg) rotateY(-18deg) translateY(-8px);
}

.hero-cover-caption {
  margin: 28px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ——— Seasons ——— */
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.season-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.season-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.cover-art {
  aspect-ratio: 0.72;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  color: #fff;
}

.cover-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 47, 74, 0.15), transparent 40%, rgba(9, 43, 71, 0.75));
  z-index: 0;
}

.cover-art > * { position: relative; z-index: 1; }

.cover-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cover-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.cover-meta small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 4px;
}

.cover-meta strong {
  font: 700 1.15rem var(--serif);
  display: block;
}

.kind-pill {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--navy);
}

.season-card h3 { font-size: 1.35rem; margin: 0 0 0.25em; }
.season-card .article-meta { font-size: 0.78rem; color: var(--muted); }
.season-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0.5em 0 0.8em;
}

/* â€”â€”â€” Reading preview â€”â€”â€” */
.preview-section { background: #fff; }

.preview-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.book-preview-3d {
  position: relative;
  perspective: 1800px;
  padding: 20px 40px;
}

.book-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(-4deg);
  filter: drop-shadow(0 28px 40px rgba(18, 40, 70, 0.28));
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.book-preview:hover {
  transform: rotateX(2deg) rotateY(0deg);
}

.book-page {
  min-height: 320px;
  padding: 32px 28px;
  background: #fffdf8;
  position: relative;
}

.book-page:first-child {
  box-shadow: inset -20px 0 28px -24px rgba(0, 0, 0, 0.35);
  border-right: 1px solid #e8dfd0;
}

.book-page:last-child {
  background: linear-gradient(90deg, #efe6d6 0%, #fffdf8 10%);
  box-shadow: inset 20px 0 28px -24px rgba(0, 0, 0, 0.35);
  padding: 0;
  overflow: hidden;
}

.book-page h3 { font-size: 1.45rem; }
.book-page img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.book-preview::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 3%;
  bottom: 3%;
  width: 16px;
  margin-left: -8px;
  background: linear-gradient(90deg, rgba(0,0,0,0.22), rgba(255,255,255,0.28), rgba(0,0,0,0.14));
  z-index: 3;
  pointer-events: none;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.preview-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.round-button {
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  color: var(--navy);
  font-size: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s, transform 0.2s;
}

.round-button:hover {
  background: var(--navy);
  color: #fff;
  transform: scale(1.05);
}

.preview-aside { display: flex; flex-direction: column; gap: 18px; }

.plan-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.plan-card.featured {
  border: 1.5px solid rgba(230, 138, 69, 0.45);
  box-shadow: 0 14px 36px rgba(230, 138, 69, 0.12);
}

.plan-badge {
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--orange);
  color: #fff;
  padding: 5px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price {
  font: 600 1.65rem var(--serif);
  color: var(--navy);
}

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 600;
  margin-top: 8px;
}

.wa-link:hover { color: #2d6b3a; }

.print-image {
  height: 140px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--site-bg-print-card, url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=900&q=85')) center / cover;
}

/* â€”â€”â€” Subscribe / print sections â€”â€”â€” */
.subscribe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.print-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #fff;
  gap: 48px;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.print-panel .print-image { height: 280px; margin: 0; }

.about-preview {
  background: linear-gradient(135deg, var(--navy) 0%, #243f66 100%);
  color: #fff;
  padding: 72px 0;
}

.about-preview h2 { color: #fff; }

.about-preview .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  height: 340px;
  border-radius: var(--radius-md);
  background: url('https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&w=1100&q=85') center / cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* â€”â€”â€” Inner pages â€”â€”â€” */
.page-hero {
  padding: 72px 0 56px;
  background:
    linear-gradient(180deg, rgba(249, 247, 242, 0.95), var(--cream)),
    radial-gradient(ellipse at top right, rgba(230, 138, 69, 0.12), transparent 50%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin: 0.15em 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.issue-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.issue-card .cover-art { margin-bottom: 16px; border-radius: 8px; }
.issue-card p { color: var(--muted); font-size: 0.9rem; }

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.filters input,
.filters select,
.field input,
.field textarea,
.field select {
  border: 1.5px solid var(--border);
  background: #fff;
  padding: 13px 15px;
  min-width: 0;
  width: 100%;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filters input:focus,
.filters select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--navy);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .filters input:focus,
  .filters select:focus,
  .field input:focus,
  .field textarea:focus,
  .field select:focus {
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
  }
}

.filters input { flex: 1; min-width: 210px; }
.filters select { width: auto; min-width: 145px; }

.issue-detail {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.issue-detail-cover {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

.issue-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toc-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.toc-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
}

.form-card {
  max-width: 640px;
  margin: auto;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Honeypot: off-screen so humans never see/fill it; bots that autofill get banned */
.hp-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.field { margin: 0 0 16px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--navy);
}

.field textarea { min-height: 110px; resize: vertical; }

.notice {
  background: #f5efe4;
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  font-size: 0.92rem;
  border-radius: 0 12px 12px 0;
}

.form-error { color: #a22; font-size: 0.83rem; }

.confirmation {
  padding: 28px;
  text-align: center;
  background: #eff5ed;
  border: 1px solid #c7dbc4;
  border-radius: var(--radius-md);
}

.auth-shell {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-image {
  background:
    linear-gradient(rgba(18, 40, 70, 0.4), rgba(18, 40, 70, 0.55)),
    var(--site-bg-login, url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1400&q=85')) center / cover;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--cream);
}

.auth-form-wrap .form-card {
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  max-width: 420px;
}

.google-btn {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.google-btn:hover {
  background: #f7f5f0;
  color: var(--ink);
}


.empty-state {
  text-align: center;
  padding: 48px;
  background: #fff;
  border-radius: var(--radius-md);
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  background: var(--navy-dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: translateY(160%);
  transition: transform 0.3s ease;
}

.toast.show { transform: translateY(0); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 31, 46, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open { display: flex; }

.modal-box {
  background: var(--paper);
  padding: 36px;
  width: min(520px, 100%);
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: 0;
  background: #f0f4f7;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}

.locked-panel {
  margin-top: 26px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 18px 0;
  border-radius: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* PWA install banner */
.pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
}
.pwa-install[hidden] { display: none !important; }
.pwa-install-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pwa-install-text strong {
  color: var(--navy);
  font-size: 0.95rem;
}
.pwa-install-text span {
  color: var(--muted);
  font-size: 0.78rem;
}
.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pwa-install-btn {
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.pwa-install-dismiss {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

/* —— Blazor reconnect (always LTR; hide inactive states) —— */
#components-reconnect-modal.hz-reconnect {
  direction: ltr !important;
  unicode-bidi: isolate;
  text-align: center;
  border: none !important;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 32px);
  color: var(--navy);
  font-family: var(--sans);
  box-shadow: none;
}
#components-reconnect-modal.hz-reconnect:not(.components-reconnect-failed):not(.components-reconnect-paused):not(.components-reconnect-resume-failed) {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
#components-reconnect-modal.hz-reconnect:not(.components-reconnect-failed):not(.components-reconnect-paused):not(.components-reconnect-resume-failed)::backdrop {
  display: none !important;
  background: transparent !important;
}

#components-reconnect-modal.hz-reconnect::backdrop {
  background: rgba(18, 40, 70, 0.45);
  backdrop-filter: blur(2px);
}

.hz-reconnect-box {
  direction: ltr !important;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  width: min(320px, 100%);
  margin: 22vh auto;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#components-reconnect-modal .components-reconnect-first-attempt-visible,
#components-reconnect-modal .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal .components-reconnect-failed-visible,
#components-reconnect-modal .components-pause-visible,
#components-reconnect-modal .components-resume-failed-visible,
#components-reconnect-modal .components-rejoining-animation {
  display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
  display: block;
}

#components-reconnect-modal.components-reconnect-failed .hz-reconnect-btn.components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-paused .hz-reconnect-btn.components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .hz-reconnect-btn.components-resume-failed-visible {
  display: inline-flex;
}

#components-reconnect-modal p {
  margin: 0;
  text-align: center;
  direction: ltr;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.hz-reconnect-btn {
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.hz-reconnect-btn:hover {
  background: var(--navy-dark);
}

.components-rejoining-animation {
  position: relative;
  width: 56px;
  height: 56px;
}

.components-rejoining-animation div {
  position: absolute;
  border: 3px solid var(--orange);
  opacity: 1;
  border-radius: 50%;
  animation: hz-reconnect-pulse 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes hz-reconnect-pulse {
  0% {
    top: 28px;
    left: 28px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  5% {
    top: 28px;
    left: 28px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    opacity: 0;
  }
}
