/* CSS Variables */
:root {
  /* Dark Navy Theme based on Morgan Advisors */
  --background: #002b3f;
  --foreground: hsl(210, 20%, 98%);
  --card: hsl(210, 25%, 18%);
  --card-foreground: hsl(210, 20%, 98%);
  --primary: hsl(199, 40%, 65%);
  --primary-foreground: hsl(210, 25%, 15%);
  --secondary: hsl(210, 20%, 25%);
  --secondary-foreground: hsl(210, 20%, 98%);
  --muted: hsl(210, 20%, 25%);
  --muted-foreground: hsl(210, 20%, 80%);
  --accent: hsl(199, 40%, 65%);
  --accent-foreground: hsl(210, 25%, 15%);
  --border: hsl(210, 20%, 25%);
  --input: hsl(210, 20%, 25%);
  --ring: hsl(199, 40%, 65%);
  
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --radius: 0.5rem;
}

.book-template-wrapper * {
  box-sizing: border-box;
}

.book-template-wrapper {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.book-template-wrapper h1, 
.book-template-wrapper h2, 
.book-template-wrapper h3, 
.book-template-wrapper h4, 
.book-template-wrapper h5, 
.book-template-wrapper h6 {
  font-family: var(--font-serif);
}

.book-template-wrapper ::selection {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.book-template-wrapper .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.book-template-wrapper .hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .book-template-wrapper .hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
  }
}

.book-template-wrapper .hero-gradient-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, rgba(199, 40%, 65%, 0.2), transparent);
  z-index: -10;
}

.book-template-wrapper .hero-gradient-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 33.333%;
  height: 50%;
  background: radial-gradient(circle, rgba(199, 40%, 65%, 0.05), transparent);
  border-radius: 50%;
  filter: blur(3rem);
  z-index: -10;
}

.book-template-wrapper .hero-container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .book-template-wrapper .hero-container {
    grid-template-columns: 1fr 1fr;
  }
}

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

.book-template-wrapper .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(199, 40%, 65%, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  width: fit-content;
}

.book-template-wrapper .badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.book-template-wrapper .hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  font-family: var(--font-serif);
}

@media (min-width: 768px) {
  .book-template-wrapper .hero-title {
    font-size: 3.5rem;
  }
}

.book-template-wrapper .hero-title-gradient {
  background: linear-gradient(to right, white, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.book-template-wrapper .hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 38rem;
  line-height: 1.75;
}

.book-template-wrapper .hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .book-template-wrapper .hero-buttons {
    flex-direction: row;
  }
}

.book-template-wrapper .hero-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.book-template-wrapper .avatar-group {
  display: flex;
}

.book-template-wrapper .avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: hsl(210, 20%, 30%);
  border: 2px solid var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  margin-left: -0.5rem;
}

.book-template-wrapper .rating-info {
  display: flex;
  flex-direction: column;
}

.book-template-wrapper .stars {
  display: flex;
  gap: 0.125rem;
  color: #fbbf24;
}

.book-template-wrapper .star {
  width: 12px;
  height: 12px;
}

.book-template-wrapper .hero-image-wrapper {
  position: relative;
  z-index: 10;
  perspective: 1000px;
}

.book-template-wrapper .hero-image-glow {
  position: absolute;
  inset: 0;
  background: rgba(199, 40%, 65%, 0.2);
  filter: blur(3rem);
  border-radius: 50%;
  opacity: 0.2;
  transition: opacity 0.5s;
}

.book-template-wrapper .hero-image-wrapper:hover .hero-image-glow {
  opacity: 0.4;
}

.book-template-wrapper .hero-image {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  display: block;
  border-radius: 0 1rem 1rem 0;
  border-left: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s;
}

.book-template-wrapper .hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

/* About Section */
.book-template-wrapper .about-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* White Section Styles */
.book-template-wrapper .section-white {
  background: #ffffff;
  color: #1a1a1a;
}

.book-template-wrapper .section-white .section-title {
  color: #1a1a1a;
}

.book-template-wrapper .section-white .section-description {
  color: #4a4a4a;
}

.book-template-wrapper .section-white .card {
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.book-template-wrapper .section-white .card:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.book-template-wrapper .section-white .card-title {
  color: #1a1a1a;
}

.book-template-wrapper .section-white .card-description {
  color: #4a4a4a;
}

.book-template-wrapper .section-white .learn-title {
  color: #1a1a1a;
}

.book-template-wrapper .section-white .learn-item {
  color: #1a1a1a;
}

.book-template-wrapper .section-white .learn-item:hover {
  color: #000000;
}

.book-template-wrapper .section-white .testimonial-card {
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.book-template-wrapper .section-white .testimonial-text {
  color: #1a1a1a;
}

.book-template-wrapper .section-white .testimonial-name {
  color: #1a1a1a;
}

.book-template-wrapper .section-white .testimonial-role {
  color: #4a4a4a;
}

.book-template-wrapper .section-white .author-name {
  color: #1a1a1a;
}

.book-template-wrapper .section-white .author-title {
  color: #666666;
}

.book-template-wrapper .section-white .author-text {
  color: #4a4a4a;
}

.book-template-wrapper .section-white .stat {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.book-template-wrapper .section-white .stat-number {
  color: #1a1a1a;
}

.book-template-wrapper .section-white .stat-label {
  color: #4a4a4a;
}

.book-template-wrapper .section-white .author-image-border {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark Section Styles */
.book-template-wrapper .section-dark {
  background: var(--background);
  color: var(--foreground);
}

.book-template-wrapper .section-dark .about-section {
  background: rgba(210, 25%, 18%, 0.5);
}

.book-template-wrapper .section-dark .author-section {
  background: var(--background);
}

.book-template-wrapper .section-dark .learn-section {
  background: rgba(210, 20%, 25%, 0.3);
}

.book-template-wrapper .section-dark .cta-section {
  background: var(--background);
}

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

.book-template-wrapper .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.amazon-link a{
  color: #fff;
  text-decoration: underline;
}
@media (min-width: 768px) {
  .book-template-wrapper .section-title {
    font-size: 2.5rem;
  }
}

.book-template-wrapper .section-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-top: 1rem;
}

.book-template-wrapper .cards-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .book-template-wrapper .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.book-template-wrapper .card {
  background: rgba(210, 25%, 18%, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.2s;
}

.book-template-wrapper .card:hover {
  border-color: rgba(199, 40%, 65%, 0.5);
}

.book-template-wrapper .card-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(199, 40%, 65%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.book-template-wrapper .card:hover .card-icon-wrapper {
  background: var(--primary);
  color: var(--primary-foreground);
}

.book-template-wrapper .card-icon {
  width: 2rem;
  height: 2rem;
}

.book-template-wrapper .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.book-template-wrapper .card-description {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

/* Author Section */
.book-template-wrapper .author-section {
  padding: 6rem 0;
  overflow: hidden;
}

.book-template-wrapper .author-container {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .book-template-wrapper .author-container {
    grid-template-columns: 1fr 1fr;
  }
}

.book-template-wrapper .author-image-wrapper {
  position: relative;
  order: 2;
}

@media (min-width: 768px) {
  .book-template-wrapper .author-image-wrapper {
    order: 1;
  }
}

.book-template-wrapper .author-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(199, 40%, 65%, 0.2), transparent);
  border-radius: 2rem;
  transform: rotate(-3deg) scale(1.05);
}

.book-template-wrapper .author-image-border {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.book-template-wrapper .author-image {
  width: 100%;
  height: auto;
  display: block;
  background: #E5E7EB;
}

.book-template-wrapper .author-content {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .book-template-wrapper .author-content {
    order: 2;
  }
}

.book-template-wrapper .author-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.book-template-wrapper .author-name {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

@media (min-width: 768px) {
  .book-template-wrapper .author-name {
    font-size: 3rem;
  }
}

.book-template-wrapper .author-title {
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.book-template-wrapper .author-text {
  display: flex;
  flex-direction: column;
  color: var(--muted-foreground);
}

.book-template-wrapper .author-stats {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
}

.book-template-wrapper .stat {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 1rem;
}

.book-template-wrapper .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.book-template-wrapper .stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Learn Section */
.book-template-wrapper .learn-section {
  padding: 6rem 0;
  background: rgba(210, 20%, 25%, 0.3);
}

.book-template-wrapper .learn-container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .book-template-wrapper .learn-container {
    grid-template-columns: 1fr 1fr;
  }
}

.book-template-wrapper .learn-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.book-template-wrapper .learn-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

@media (min-width: 768px) {
  .book-template-wrapper .learn-title {
    font-size: 2.5rem;
  }
}

.book-template-wrapper .learn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-template-wrapper .learn-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: color 0.2s;
}

.book-template-wrapper .section-dark .learn-item:hover {
  color: white;
}

.book-template-wrapper .learn-check {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(199, 40%, 65%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.2s;
}

.book-template-wrapper .learn-item:hover .learn-check {
  background: var(--primary);
  color: var(--primary-foreground);
}

.book-template-wrapper .testimonial-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
}

.book-template-wrapper .quote-icon {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  color: rgba(199, 40%, 65%, 0.1);
}

.book-template-wrapper .testimonial-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  padding-top: 3rem;
}

.book-template-wrapper .testimonial-text {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.book-template-wrapper .testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-template-wrapper .testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(210, 20%, 30%);
  border: 2px solid var(--primary);
  margin-bottom: 0.5rem;
}

.book-template-wrapper .testimonial-name {
  display: block;
  font-weight: 700;
  color: white;
}

.book-template-wrapper .testimonial-role {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* CTA Section */
.book-template-wrapper .cta-section {
  padding: 6rem 0;
  text-align: center;
}

.book-template-wrapper .cta-container {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.book-template-wrapper .cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.1;
}

@media (min-width: 768px) {
  .book-template-wrapper .cta-title {
    font-size: 3.75rem;
  }
}

.book-template-wrapper .cta-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

.book-template-wrapper .cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .book-template-wrapper .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.book-template-wrapper .cta-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding-top: 2rem;
}

/* Buttons */
.book-template-wrapper .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  min-height: 2.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.book-template-wrapper .btn-primary {
  background-color: #375B7D;
  color: white;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.book-template-wrapper .btn-primary:hover {
  background-color: rgba(55, 91, 125, 0.9);
}

.book-template-wrapper .btn-hero-primary {
  background-color: white;
  color: var(--background);
  font-weight: 600;
  font-size: 1rem;
  height: 3.5rem;
  padding: 0 2rem;
}

.book-template-wrapper .btn-hero-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.book-template-wrapper .btn-hero-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  height: 3.5rem;
  padding: 0 2rem;
}

.book-template-wrapper .btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

.book-template-wrapper .btn-cta {
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 1.125rem;
  height: 4rem;
  padding: 0 2.5rem;
  box-shadow: 0 0 30px rgba(198, 168, 124, 0.3);
}

.book-template-wrapper .btn-cta:hover {
  background-color: rgba(199, 40%, 55%, 1);
}

.book-template-wrapper .btn-icon {
  width: 16px;
  height: 16px;
}
