/* Main Stylesheet for Dreamcrest Publishing */

:root {
  --primary-rose: #ff6b9d;
  --primary-purple: #c471ed;
  --primary-gold: #ffd700;
  --dark-bg: #1a1a2e;
  --card-bg: #16213e;
  --text-light: #f5f5f5;
  --text-muted: #a8a8a8;
  --gradient-romantic: linear-gradient(135deg, #ff6b9d, #c471ed, #12c2e9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Floating Hearts Animation */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-hearts::before,
.floating-hearts::after {
  content: '♥';
  position: absolute;
  font-size: 20px;
  color: rgba(255, 107, 157, 0.3);
  animation: float-up 15s infinite ease-in;
}

.floating-hearts::before {
  left: 20%;
  animation-delay: 0s;
}

.floating-hearts::after {
  left: 60%;
  animation-delay: 7s;
}

@keyframes float-up {
  0% {
    bottom: -10%;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateX(100px) rotate(360deg);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 107, 157, 0.2);
  z-index: 1000;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-family: 'Playfair Display', serif;
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-romantic);
  transition: width 0.3s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(196, 113, 237, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  background: var(--gradient-romantic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.5)); }
  50% { filter: drop-shadow(0 0 40px rgba(196, 113, 237, 0.8)); }
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: var(--text-light);
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient-romantic);
  color: white;
  border: none;
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary-rose);
}

.btn-secondary:hover {
  background: var(--primary-rose);
  color: white;
  transform: translateY(-3px);
}

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

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 15px;
  background: var(--gradient-romantic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* Authors Section */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.author-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-romantic);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.author-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-rose);
}

.author-card:hover::before {
  opacity: 0.1;
}

.author-badge {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(255, 107, 157, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  color: var(--primary-rose);
  font-weight: 600;
}

.author-logo {
  width: 120px;
  height: auto;
  margin: 20px auto;
  display: block;
}

.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.author-genre {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.author-tagline {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 20px;
}

.author-cta {
  text-align: center;
  color: var(--primary-rose);
  font-weight: 600;
  margin-top: 20px;
}

/* Books Section */
.books-showcase {
  max-width: 1000px;
  margin: 50px auto;
}

.book-feature {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  align-items: start;
}

.book-cover-large {
  width: 100%;
}

.book-cover-large img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.book-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary-rose);
}

.book-author {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.book-tropes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.trope-tag {
  padding: 8px 16px;
  background: rgba(255, 107, 157, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary-rose);
  font-weight: 600;
}

.book-description {
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--text-light);
}

.book-quote {
  border-left: 4px solid var(--primary-purple);
  padding-left: 20px;
  margin: 25px 0;
  font-style: italic;
  color: var(--text-muted);
}

.book-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 113, 237, 0.1));
}

.newsletter-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-bg);
  padding: 50px;
  border-radius: 20px;
  border: 2px solid rgba(255, 107, 157, 0.3);
}

.newsletter-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--gradient-romantic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 15px 20px;
  border-radius: 50px;
  border: 2px solid var(--primary-rose);
  background: rgba(26, 26, 46, 0.8);
  color: var(--text-light);
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 20px rgba(196, 113, 237, 0.3);
}

.newsletter-form button {
  cursor: pointer;
  white-space: nowrap;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.contact-info,
.contact-social {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 20px;
  border: 2px solid rgba(255, 107, 157, 0.2);
}

.contact-info h3,
.contact-social h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-rose);
}

.contact-info p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.contact-info a,
.contact-social a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover,
.contact-social a:hover {
  color: var(--primary-rose);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  padding: 12px 20px;
  background: rgba(255, 107, 157, 0.2);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 600;
}

.social-btn:hover {
  background: var(--primary-rose);
  color: white;
  transform: translateX(5px);
}

/* Footer */
.footer {
  background: rgba(12, 12, 20, 0.9);
  padding: 50px 0 20px;
  border-top: 2px solid rgba(255, 107, 157, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  height: 60px;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-rose);
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-legal {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal p {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .book-feature {
    grid-template-columns: 1fr;
  }
  
  .nav {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}