/* ============================================
   SİMETRİK KİTAP — Futuristic Islamic Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --accent-primary: #00d4aa;
  --accent-secondary: #00ffcc;
  --accent-gold: #c9a84c;
  --accent-gold-dim: rgba(201, 168, 76, 0.3);
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 212, 170, 0.3);
  --glow-primary: 0 0 30px rgba(0, 212, 170, 0.15);
  --glow-strong: 0 0 60px rgba(0, 212, 170, 0.2);
  --font-heading: 'Amiri', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1100px;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Galaxy nebula overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(0, 80, 120, 0.15), transparent),
    radial-gradient(ellipse 500px 350px at 80% 70%, rgba(60, 0, 100, 0.12), transparent),
    radial-gradient(ellipse 700px 300px at 50% 50%, rgba(0, 60, 80, 0.08), transparent),
    radial-gradient(ellipse 400px 400px at 70% 20%, rgba(100, 0, 60, 0.1), transparent);
  pointer-events: none;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.top-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  padding: 16px 24px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.top-nav.scrolled {
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: auto;
  width: 128px;
  filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.2));
  transition: width 0.4s ease;
}

.top-nav.scrolled .logo-img {
  width: 80px;
}

/* --- Language Toggle --- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.lang-icon {
  font-size: 16px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:'';
}

/* Decorative corner stars */
.hero::before,
.hero::after {
  content: '✦';
  position: absolute;
  font-size: 24px;
  color: var(--accent-primary);
  opacity: 0.15;
  z-index: 1;
}

.hero::before {
  top: 40px;
  left: 40px;
}

.hero::after {
  bottom: 40px;
  right: 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.bismillah {
  margin-bottom: 32px;
}

.bismillah-img {
  max-height: 40px;
  width: auto;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* Verse block */
.verse-block {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold-dim);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.verse-ornament {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: var(--accent-gold);
  opacity: 0.6;
}

.verse-ornament--top {
  top: -12px;
  background: var(--bg-primary);
  padding: 0 16px;
}

.verse-ornament--bottom {
  bottom: -12px;
  background: var(--bg-primary);
  padding: 0 16px;
}

.verse-text {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.9;
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0;
}

.verse-text .yellow {
  color: var(--accent-gold);
}

.verse-ref {
  display: block;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-style: normal;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
  color: var(--accent-primary);
  font-size: 24px;
  opacity: 0.5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Book Sections --- */
.book-section {
  padding: 80px 0;
  position: relative;
}

.book-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
  opacity: 0.3;
}

.book-section[data-book="2"] { background: var(--bg-secondary); }
.book-section[data-book="4"] { background: var(--bg-secondary); }

.book-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.book-grid--reverse {
  direction: rtl;
}

.book-grid--reverse > * {
  direction: ltr;
}

/* Book number badge */
.book-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
  box-shadow: var(--glow-primary);
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 212, 170, 0.15); }
  50% { box-shadow: 0 0 30px rgba(0, 212, 170, 0.3); }
}

.book-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* Topic list */
.topic-list {
  list-style: none;
}

.topic-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.topic-list li.visible {
  opacity: 1;
  transform: translateY(0);
}

.topic-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.6;
  transition: all var(--transition);
}

.topic-list li:hover::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--accent-primary);
}

.topic-list a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition);
  padding-right: 20px;
}

.topic-list a::after {
  content: ' →';
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--accent-primary);
}

.topic-list li:hover a {
  color: var(--text-primary);
}

.topic-list li:hover a::after {
  opacity: 1;
}

.topic-list li:hover {
  border-bottom-color: var(--border-glow);
}

/* Book cover */
.book-cover {
  position: sticky;
  top: 40px;
}

.book-cover img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-primary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.book-cover img:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), var(--glow-strong);
}

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

.footer-ornament {
  color: var(--accent-gold);
  opacity: 0.4;
  font-size: 14px;
  letter-spacing: 12px;
  margin-bottom: 20px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

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

/* --- Scroll Reveal Animation --- */
.book-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.book-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: 1fr 200px;
    gap: 32px;
  }

  .book-grid--reverse {
    direction: ltr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .top-nav {
    padding: 12px 16px;
  }

  .logo-img {
    width: 80px;
  }

  .top-nav.scrolled .logo-img {
    width: 50px;
  }

  .lang-toggle {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 100px 20px 40px;
  }

  .hero-subtitle {
    letter-spacing: 2px;
    font-size: 0.85rem;
  }

  .verse-block {
    padding: 24px 16px;
  }

  .book-section {
    padding: 60px 0;
  }

  .book-grid,
  .book-grid--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .book-cover {
    position: static;
    max-width: 200px;
    margin: 0 auto;
  }

  .book-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .topic-list li {
    padding: 10px 0 10px 20px;
  }

  .topic-list a {
    font-size: 0.88rem;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .book-grid {
    grid-template-columns: 1fr 320px;
    gap: 60px;
  }
}
