/* ============================================
   SINZIK.COM — Author Platform
   Dark cinematic aesthetic, teal + amber accents
   Mobile-first responsive design
   ============================================ */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-elevated: #1c1c28;
  --text-primary: #e8e6e1;
  --text-secondary: #9a9890;
  --text-muted: #6b6860;
  --accent-teal: #00a693;
  --accent-teal-dim: #007a6c;
  --accent-amber: #ffb432;
  --accent-amber-dim: #cc8f28;
  --accent-red: #e84040;
  --border: #2a2a35;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-amber); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--text-primary); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--text-primary); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); color: var(--text-secondary); }

p { margin-bottom: 1rem; }

.label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-teal);
  font-weight: 600;
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

nav .logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

nav .logo span { color: var(--accent-amber); }

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

nav ul a:hover { color: var(--text-primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 166, 147, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 180, 50, 0.05) 0%, transparent 50%),
    var(--bg-primary);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text { text-align: center; }

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--accent-amber);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-cover {
  display: flex;
  justify-content: center;
}

.hero-cover img {
  width: 280px;
  border-radius: 4px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 166, 147, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-cover img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(0, 166, 147, 0.15);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-teal-dim);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 166, 147, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber-dim);
}

.btn-secondary:hover {
  background: rgba(255, 180, 50, 0.1);
  color: var(--accent-amber);
  transform: translateY(-2px);
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* --- Book Section --- */
.book-section { background: var(--bg-secondary); }

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.book-cover-large {
  display: flex;
  justify-content: center;
}

.book-cover-large img {
  width: 300px;
  border-radius: 4px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.blurb {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.blurb p:first-child {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
}

.comp-titles {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.comp-titles p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.comp-titles em { color: var(--text-secondary); }

/* --- About Section --- */
.about-section { position: relative; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ai-badge .icon { font-size: 1.2rem; }

/* --- Newsletter Section --- */
.newsletter-section {
  background:
    linear-gradient(135deg, rgba(0, 166, 147, 0.06) 0%, rgba(255, 180, 50, 0.04) 100%),
    var(--bg-secondary);
  text-align: center;
}

.newsletter-section h2 { margin-bottom: 0.75rem; }

.newsletter-section p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent-teal);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 0.85rem 1.8rem;
  background: var(--accent-amber);
  color: var(--bg-primary);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-amber-dim);
  transform: translateY(-1px);
}

.newsletter-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --- Footer --- */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Newsletter Popup --- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.popup-overlay.active { display: flex; }

.popup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition);
}

.popup-close:hover { color: var(--text-primary); }

.popup h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.popup p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.popup .newsletter-form { max-width: 100%; }

/* --- Responsive: Tablet --- */
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-text { text-align: left; order: 1; }
  .hero-cover { order: 2; }

  .hero-description { margin: 0 0 2rem; }
  .btn-group { justify-content: flex-start; }

  .book-grid { grid-template-columns: auto 1fr; }

  .about-grid { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: row; }

  nav ul { display: flex; }
}

/* --- Responsive: Desktop --- */
@media (min-width: 1024px) {
  .hero-cover img { width: 340px; }
  .book-cover-large img { width: 340px; }
  section { padding: 6rem 0; }
}

/* --- Responsive: Mobile --- */
@media (max-width: 767px) {
  nav ul {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  nav ul.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-cover img { width: 220px; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }

  .book-cover-large img { width: 240px; }
}

/* --- Page-specific: Privacy --- */
.page-content {
  padding-top: 100px;
  min-height: 80vh;
}

.page-content h1 { margin-bottom: 2rem; }
.page-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.4rem; }
.page-content p, .page-content li { color: var(--text-secondary); line-height: 1.8; }
.page-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.5rem; }

/* --- Page-specific: Book Page --- */
.book-page-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.book-page-cover { display: flex; justify-content: center; }

.book-page-cover img {
  width: 280px;
  border-radius: 4px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.book-page-author {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.book-page-blurb {
  max-width: 700px;
}

.book-page-blurb p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.book-page-blurb p:first-of-type {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
}

.book-page-details { margin-top: 3rem; }

.book-details-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 400px;
}

.book-details-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.book-details-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 120px;
}

@media (min-width: 768px) {
  .book-page-hero {
    grid-template-columns: auto 1fr;
  }
  .book-page-cover img { width: 320px; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.6s ease forwards; }
.fade-in-delay { animation: fadeInUp 0.6s ease 0.2s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeInUp 0.6s ease 0.4s forwards; opacity: 0; }
