@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dark Theme Base */
  --background: hsl(222 47% 11%);
  --foreground: hsl(210 40% 98%);

  /* Primary: Electric Blue / Cyan */
  --primary: hsl(190 90% 50%);
  --primary-foreground: hsl(222 47% 11%);

  /* Secondary: Deep Slate */
  --secondary: hsl(217 33% 17%);
  --secondary-foreground: hsl(210 40% 98%);

  /* Accent: Emerald Green */
  --accent: hsl(142 71% 45%);
  --accent-foreground: hsl(210 40% 98%);

  /* Muted */
  --muted: hsl(217 33% 17%);
  --muted-foreground: hsl(215 20% 65%);

  /* Card */
  --card: hsl(224 45% 14%);
  --card-foreground: hsl(210 40% 98%);

  /* Border */
  --border: hsl(217 33% 20%);

  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: hsla(190, 90%, 50%, 0.3);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

code {
  font-family: var(--font-mono);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utilities */
.text-glow {
  text-shadow: 0 0 20px hsla(190, 90%, 50%, 0.5);
}

.glass-panel {
  background: hsla(224, 45%, 14%, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cyber-grid {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, hsla(190, 90%, 50%, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, hsla(190, 90%, 50%, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s;
  background: hsla(222, 47%, 11%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
  text-decoration: none;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--foreground);
  stroke: var(--foreground);
}

.logo-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-family: 'Crimson Text', serif;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

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

.nav-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger-line {
  width: 1.5rem;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 99;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero .cyber-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  top: 25%;
  right: -5rem;
  width: 500px;
  height: 500px;
  max-width: 80vw;
  max-height: 80vw;
  background: hsla(190, 90%, 50%, 0.1);
  border-radius: 50%;
  filter: blur(100px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  max-width: 80vw;
  max-height: 80vw;
  background: hsla(142, 71%, 45%, 0.05);
  border-radius: 50%;
  filter: blur(100px);
}

.hero .container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsla(190, 90%, 50%, 0.2);
  background: hsla(190, 90%, 50%, 0.05);
  font-size: 0.75rem;
  color: var(--primary);
  width: fit-content;
}

.hero-badge .pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
}

.hero-badge .pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge .pulse::after {
  content: '';
  position: relative;
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 .gradient {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-feature svg {
  color: var(--primary);
}

/* Book Mockup */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.book-mockup {
  position: relative;
  width: 300px;
  height: 450px;
  border-radius: 0 0.5rem 0.5rem 0.25rem;
  box-shadow: 20px 20px 60px -15px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s;
  overflow: hidden;
}

.book-mockup:hover {
  transform: translateY(-8px) rotate(1deg);
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.75rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.15), transparent);
  z-index: 20;
}

.book-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0 0.5rem 0.5rem 0.25rem;
}

.book-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  z-index: 30;
  pointer-events: none;
}

.book-orbit-1, .book-orbit-2 {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.book-orbit-1 {
  width: 100%;
  height: 100%;
  border: 1px solid hsla(190, 90%, 50%, 0.2);
  animation: spin 10s linear infinite;
}

.book-orbit-2 {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  border: 1px dashed hsla(190, 90%, 50%, 0.1);
  animation: spin 20s linear infinite reverse;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* About Section */
.about-section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  background: hsla(217, 33%, 17%, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: hsla(190, 90%, 50%, 0.5);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  background: hsla(190, 90%, 50%, 0.1);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Author Section */
.author-section {
  padding: 6rem 0;
  background: hsla(224, 45%, 14%, 0.3);
  position: relative;
  overflow: hidden;
}

.author-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  background: linear-gradient(to left, hsla(190, 90%, 50%, 0.05), transparent);
}

.author-grid {
  display: flex;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.author-image-wrapper {
  flex-shrink: 0;
  width: 300px;
  max-width: 100%;
  position: relative;
}

.author-image-glow {
  position: absolute;
  inset: 0;
  background: hsla(190, 90%, 50%, 0.2);
  border-radius: 1rem;
  transform: rotate(6deg);
  filter: blur(12px);
}

.author-image-wrapper img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: grayscale(1);
  transition: filter 0.5s;
}

.author-image-wrapper:hover img {
  filter: grayscale(0);
}

.author-content {
  flex: 1;
}

.author-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.author-title {
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.author-bio {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.author-bio p {
  margin-bottom: 1rem;
}

.author-links {
  display: flex;
  gap: 1rem;
}

.author-link {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all 0.2s;
}

.author-link:hover {
  background: var(--primary);
  color: white;
}

/* Takeaways Section */
.takeaways-section {
  padding: 6rem 0;
}

.takeaways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.takeaways-list {
  list-style: none;
}

.takeaways-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.takeaway-check {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.publisher-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
}

.publisher-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.publisher-divider {
  width: 4rem;
  height: 3px;
  background: var(--primary);
  margin: 1rem auto;
}

.publisher-card p {
  color: var(--muted-foreground);
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: hsla(217, 33%, 8%, 0.5);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-info > p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: hsla(190, 90%, 50%, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
  color: var(--muted-foreground);
}

.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--primary);
}

.newsletter-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid hsla(190, 90%, 50%, 0.2);
  position: relative;
  overflow: hidden;
}

.newsletter-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 10;
}

.newsletter-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 10;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(190, 90%, 50%, 0.1);
}

.newsletter-input::placeholder {
  color: var(--muted-foreground);
}

.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

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

/* Footer */
.footer {
  background: hsl(222 50% 6%);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

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

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-description {
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
    height: 500px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .author-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .author-links {
    justify-content: center;
  }
  
  .takeaways-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .navbar .container {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--card);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--foreground);
  }

  .nav-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
  }

  .logo-text {
    font-size: 1.125rem;
  }

  .logo-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .logo-emoji {
    font-size: 1.5rem;
  }

  #contact .container > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .hero {
    padding-top: 4rem;
    min-height: auto;
  }

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

  .hero-description {
    font-size: 1.125rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .author-content h2 {
    font-size: 2rem;
  }

  .author-bio {
    font-size: 1rem;
  }

  .takeaways-list li {
    font-size: 1rem;
  }

  .contact-info h2 {
    font-size: 2rem;
  }

  .contact-info > p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .navbar {
    padding: 0.625rem 0;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .logo-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .logo-emoji {
    font-size: 1.25rem;
  }

  .nav-links {
    width: 80%;
    max-width: 280px;
    padding: 4rem 1.5rem 2rem;
  }

  .nav-links a {
    font-size: 0.9375rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero .container {
    gap: 2rem;
  }

  .hero h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.625rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
    font-size: 0.8125rem;
  }

  .hero-visual {
    height: 400px;
    min-height: 350px;
    width: 100%;
  }

  .book-mockup {
    width: 200px;
    height: 300px;
    max-width: 80%;
  }

  .hero-glow-1,
  .hero-glow-2 {
    width: 300px;
    height: 300px;
  }

  .section-header h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 0.9375rem;
  }

  .about-section,
  .author-section,
  .takeaways-section,
  .contact-section {
    padding: 3rem 0;
  }

  .books-page,
  .authors-page {
    padding: 5rem 0 3rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }

  .feature-card p {
    font-size: 0.875rem;
  }

  .author-content h2 {
    font-size: 1.75rem;
  }

  .author-title {
    font-size: 0.875rem;
  }

  .author-bio {
    font-size: 0.9375rem;
  }

  .author-link {
    width: 2.25rem;
    height: 2.25rem;
  }

  .author-link .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .takeaways-list li {
    font-size: 0.9375rem;
  }

  .publisher-card {
    padding: 2rem 1.5rem;
  }

  .publisher-card h3 {
    font-size: 1.5rem;
  }

  .contact-info h2 {
    font-size: 1.75rem;
  }

  .contact-info > p {
    font-size: 0.9375rem;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-card h3 {
    font-size: 1.5rem;
  }

  .newsletter-card {
    padding: 1.25rem;
  }

  .newsletter-card h3 {
    font-size: 1.125rem;
  }

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

  .newsletter-input {
    width: 100%;
  }

  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
  }

  .footer {
    padding: 2rem 0;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-brand h3 {
    font-size: 1.25rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Books Page */
.books-page {
  padding: 8rem 0 4rem;
  min-height: calc(100vh - 200px);
}

.books-page .section-header {
  margin-bottom: 3rem;
}

.books-page .section-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.books-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.book-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.book-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.book-card-image {
  flex-shrink: 0;
  width: 180px;
}

.book-card-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.book-card-content {
  flex: 1;
}

.book-card-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.book-subtitle {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.book-author {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.book-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.book-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: hsla(190, 90%, 50%, 0.1);
  border: 1px solid hsla(190, 90%, 50%, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--primary);
  font-family: var(--font-mono);
}

.book-badges {
  margin-bottom: 1rem;
}

.book-website-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, hsl(190 90% 45%) 0%, hsl(190 90% 35%) 100%);
  border: none;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-mono);
  text-decoration: none;
  box-shadow: 0 4px 20px hsla(190, 90%, 50%, 0.4), 0 0 40px hsla(190, 90%, 50%, 0.2);
  transition: all 0.3s;
}

.book-website-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px hsla(190, 90%, 50%, 0.5), 0 0 60px hsla(190, 90%, 50%, 0.3);
}

.book-website-pill .icon-sm {
  width: 1.25rem;
  height: 1.25rem;
}

.books-cta {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted-foreground);
}

.books-cta a {
  color: var(--primary);
  text-decoration: none;
}

.books-cta a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .book-card-image {
    width: 150px;
  }
}

/* Authors Page */
.authors-page {
  padding: 8rem 0 4rem;
  min-height: calc(100vh - 200px);
}

.authors-page .section-header {
  margin-bottom: 3rem;
}

.authors-page .section-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.authors-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.author-card {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.author-card-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
}

.author-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.author-card-content {
  flex: 1;
}

.author-card-content h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.author-card-title {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.author-card-bio {
  margin-bottom: 1.5rem;
}

.author-card-bio p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.author-card-bio p:last-child {
  margin-bottom: 0;
}

.author-card-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.author-card-books {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.author-books-label {
  color: var(--muted-foreground);
}

.author-book-link {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-mono);
}

.author-book-link:hover {
  text-decoration: underline;
}

.authors-cta {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted-foreground);
}

.authors-cta a {
  color: var(--primary);
  text-decoration: none;
}

.authors-cta a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .author-card-image {
    width: 150px;
    height: 150px;
  }

  .author-card-links {
    justify-content: center;
  }

  .author-card-books {
    justify-content: center;
  }
}

/* Icons */
.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-sm {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}
