@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Oswald&family=Petit+Formal+Script&display=swap');

/*!
 * Custom styles for Jeanetta Britt Books
 * Built on Start Bootstrap - Blog Home v5.0.2
 */

/* ==========================================================================
   Color Palette (CSS Custom Properties)
   ========================================================================== */

:root {
  /* Purple - Brand Primary */
  --purple-light: #ded4ed;
  --purple: #563681;
  --purple-dark: #3d2659;

  /* Cream - Warm Neutral */
  --cream-light: #fffbeb;
  --cream: #fff9d6;
  --cream-dark: #f5ecc0;

  /* Blue - Novels (Secondary Button) */
  --blue-light: #d1dff0;
  --blue: #32619A;
  --blue-dark: #264a75;

  /* Orange/Coral - Poetry (Primary Button) */
  --orange-light: #FFCFAD;
  --orange: #FF9447;
  --orange-dark: #e67a2e;

  /* Wine/Maroon - Accent */
  --wine-light: #a84c5e;
  --wine: #6c0e23;
  --wine-dark: #4a0a18;

  /* Neutrals */
  --black: #000000;
  --gray-dark: #212529;
  --gray: #6a6a6a;
  --white: #ffffff;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

html,
body {
  height: 100%;
}

body {
  background-color: var(--purple-light);
  overscroll-behavior: none;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ==========================================================================
   Typography & Font Styles
   ========================================================================== */

.fs-script {
  font-family: "Petit Formal Script", cursive !important;
}

.fs-montserrat {
  font-family: "Montserrat", sans-serif !important;
}

.fs-oswald {
  font-family: 'Oswald', sans-serif;
}

.fs-ti {
  text-indent: 2em;
}

.td-none {
  text-decoration: none !important;
}

.fc-black {
  color: var(--black) !important;
}

.fc-white {
  color: var(--white) !important;
}

/* ==========================================================================
   Button Overrides (Custom Colors)
   ========================================================================== */

/* Primary Button - Orange/Coral (Poetry) */
.btn-primary {
  color: var(--white);
  background-color: var(--orange);
  border-color: var(--orange);
}

.btn-primary:hover {
  color: var(--white);
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-check:focus+.btn-primary,
.btn-primary:focus {
  color: var(--white);
  background-color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 0.25rem rgba(255, 148, 71, 0.5);
}

.btn-check:checked+.btn-primary,
.btn-check:active+.btn-primary,
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
  color: var(--white);
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-check:checked+.btn-primary:focus,
.btn-check:active+.btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus,
.show>.btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 148, 71, 0.5);
}

.btn-primary:disabled,
.btn-primary.disabled {
  color: var(--white);
  background-color: var(--orange-light);
  border-color: var(--orange-light);
}

/* Secondary Button - Blue (Novels) */
.btn-secondary {
  color: var(--white);
  background-color: var(--blue);
  border-color: var(--blue);
  min-height: 2.375rem;
}

.btn-secondary:hover {
  color: var(--white);
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-check:focus+.btn-secondary,
.btn-secondary:focus {
  color: var(--white);
  background-color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 0.25rem rgba(50, 97, 154, 0.5);
}

.btn-check:checked+.btn-secondary,
.btn-check:active+.btn-secondary,
.btn-secondary:active,
.btn-secondary.active,
.show>.btn-secondary.dropdown-toggle {
  color: var(--white);
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-check:checked+.btn-secondary:focus,
.btn-check:active+.btn-secondary:focus,
.btn-secondary:active:focus,
.btn-secondary.active:focus,
.show>.btn-secondary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(50, 97, 154, 0.5);
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  color: var(--white);
  background-color: var(--blue-light);
  border-color: var(--blue-light);
}

/* Custom Button Styles */
.contact-btn {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
}

.contact-btn:hover {
  text-shadow: 0.15rem 0.15rem rgba(0, 0, 0, 0.15) !important;
  color: var(--gray);
}

.fb-btn {
  max-height: 2.375rem !important;
}

#headerbtn:hover {
  background-color: transparent !important;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
}

/* ==========================================================================
   Background & Color Utilities
   ========================================================================== */

.bg-primary {
  background-color: var(--purple-light) !important;
}

.bg-secondary {
  background-color: var(--cream) !important;
}

.bg-image {
  display: flex;
  align-items: center;
  background-image: url("background.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
}

.bg-dark-trans {
  background-color: rgba(33, 37, 41, 0.75) !important;
}

.bg-purple {
  background-color: var(--purple-light) !important;
}

.bg-purple-trans {
  background-color: rgba(86, 54, 129, 0.75) !important;
}

.bg-red {
  background-color: var(--wine) !important;
}

.bg-red-trans {
  background-color: rgba(108, 14, 35, 0.5) !important;
}

.bg-red-light {
  background-color: var(--orange-light) !important;
}

.bg-cream {
  background-color: var(--cream) !important;
}

.bg-blue {
  background-color: var(--blue-light) !important;
}

/* ==========================================================================
   Header Component System
   ========================================================================== */

.banner {
  display: none;
}

/* ==========================================================================
   Card Component System
   ========================================================================== */

.card-con {
  /* min-height: 95vh; */
  display: flex;
  align-items: center;
}

/* Card Header Primary - Main title header row */
.card-header {
  max-width: 95%;
}

/* Card Series Selector - Button row for book series */
.card-series-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

/* Card Content - Row containing image and text columns */
.card-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-grow: 1;
}

/* Card Image - The book cover image column (33% on large screens) */
.card-image {
  display: flex;
  justify-content: center;
  align-self: flex-start;
  padding: 0.5rem;
  width: 100%;
}

/* Card Text - The text content column (66% on large screens) */
.card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 0.25rem;
  width: 100%;
}

/* Card Header Secondary - Poem/tagline header (purple background) */
.card-header-secondary {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}

.card-header-secondary-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: var(--purple-light);
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

/* Card Body - The poem/excerpt text container */
.card-body-text {
  text-align: center;
  line-height: 1.6;
}

/* Constrain text height on mobile to keep buttons visible */
.book-text-body {
  max-height: 8em;
  max-width: 75%;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

.text-container {
  display: flex !important;
  justify-content: center !important;
}

/* Card Body with fixed height (for uniform card sizing) */
.card-body-text--fixed {
  /* Mobile: no fixed height to keep buttons visible */
  min-height: auto;
}

/* Author card - Constrain to viewport height on all screen sizes */
.author-card {
  /* max-height: calc(100vh - 110px); */
  display: flex;
  flex-direction: column;
  background: white;
  padding: 1em;
  margin-bottom: 0.5em;
}

/* Profile image - Constrain height and allow flexbox shrinking */
.author-card #profileImg {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Author bio text - Scrollable if content exceeds available space */
.author-card>div:last-child {
  flex-grow: 0.5;
}

/* Author card - Desktop: maintain viewport constraint */

/* ==========================================================================
   Clickable Image Styles
   ========================================================================== */

.clickable-image {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Card Actions - Button row at bottom of card */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  gap: 0.5rem;
  margin-top: auto;
}

/* ==========================================================================
   Image & Layout Utilities
   ========================================================================== */
.img-fluid-header {
  height: fit-content;
  max-width: 100%;
  width: auto;
}

.img-fluid {
  max-height: 75%;
}

.author-header-wrapper {
  max-width: 100%;
  width: 100%;
}

.author-header-wrapper img {
  padding: 1rem;
  max-width: 100%;
}

.text-box {
  min-height: 28rem;
}

/* Border Radius Utilities */
.rounded-4 {
  border-radius: 0.5rem !important;
}

.rounded-5 {
  border-radius: 1rem !important;
}

.card-con {
  /* max-height: 95vh; */
  /* height: 95H; */
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Medium screens (576px+) */
@media (min-width: 576px) {
  .card-con {
    /* max-height: 95vh; */
  }

  .card-actions {
    justify-content: space-evenly;
  }

  .book-text-body {
    display: flex;
    justify-content: center;
    text-align: center;
  }
}

/* Large screens (992px+) */
@media (min-width: 992px) {
  .card-con {
    /* max-height: 95vh; */
  }
  .author-header-wrapper {
    max-width: 80%;
  }

  .author-header-wrapper img {
    max-width: 95%;
    padding-left: 5rem;
  }
  /* Typography */
  .card-body-text {
    text-align: left;
  }

  /* Card dimensions */
  .book-text-body {
    min-height: 21.5rem;
    /* Remove mobile height constraint on desktop */
    max-height: none;
    font-size: large;
  }

  /* Card image layout */
  .card-image {
    width: 25%;
    margin-top: 1rem;
  }

  /* Card text layout */
  .card-text {
    width: 25%;
  }
}