/* ============================================
   LAYOUT.CSS - Core Layout & Structure
   ============================================
   
   Contains:
   - Flex containers and grid layouts
   - Main content structure
   - Sidebar layout system
   - Responsive breakpoints
   - Enhanced gradients and animations
*/

/* Import Google Fonts for handwritten verse overlay */
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&family=Dancing+Script:wght@400;700&family=Cormorant+Garamond:ital,wght@0,400;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Cormorant+Garamond&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@200;300;400;500;600&display=swap');
/* ==========================================
   SHALOM WELCOME PAGE
   ========================================== */

.shalom-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 1.5rem 2rem;
  margin: 2rem auto 1rem auto;
  max-width: 500px;
  background: none;
  border: none;
  box-shadow: none;
  min-height: 80vh;
  position: relative;
  z-index: 1;
}

/* Remove background and shadow from main content when showing welcome screen */
.bible-main-content:has(.shalom-welcome) {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Remove hover effects when showing welcome screen */
.bible-main-content:has(.shalom-welcome):hover {
  box-shadow: none !important;
}

.bible-main-content:has(.shalom-welcome)::before {
  display: none !important;
}

/* Fallback for browsers that don't support :has() */
.bible-main-content .shalom-welcome {
  background: transparent;
}

.bible-main-content .welcome-content.shalom-welcome {
  background: transparent;
  box-shadow: none;
}

@keyframes shalomFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shalomSlideIn {
  from { opacity: 0; transform: translateY(15px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.shalom-welcome .shalom-title {
  font-size: var(--font-size-6xl);
  font-family: 'Bodoni Moda', serif;
  font-weight: 200;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  letter-spacing: clamp(-5px, -0.3vw, -2px);
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(124, 58, 237, 0.08);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  animation: shalomFadeIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.1s forwards;
}

.shalom-welcome .shalom-subtitle {
  /* font-size: var(--font-size-xl) !important; */
  font-weight: 200 !important;
  line-height: 1.2 !important;
  max-width: clamp(300px, 50vw, 450px);
  text-align: center;
  margin: calc(-1 * var(--spacing-md)) auto var(--spacing-lg) auto;
  color: var(--text-secondary);
  font-family: 'Bodoni Moda', serif !important;
  letter-spacing: clamp(-0.5px, -0.05vw, -0.2px) !important;
  opacity: 0;
  animation: shalomSlideIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.shalom-subtitle .subtitle-original {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: inline-block;
}

/* Override animations when JavaScript takes control */
.shalom-welcome .shalom-title[style*="animation: none"],
.shalom-welcome .shalom-subtitle[style*="animation: none"] {
  animation: none !important;
}

/* Disable animations globally when returning from Manage Bibles view */
body.animations-played .shalom-welcome .shalom-title,
body.animations-played .shalom-welcome .shalom-subtitle,
body.animations-played .shalom-form,
body.animations-played .shalom-or,
body.animations-played .shalom-search-container,
body.animations-played .bible-link,
body.animations-played .quick-link {
  animation: none !important;
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Hide the ::after shadow line when returning from Manage Bibles */
body.animations-played .bible-main-content::after {
  display: none !important;
  opacity: 0 !important;
}

/* Also hide it immediately when transitioning */
.bible-main-content::after {
  transition: none !important;
}

/* Disable box-shadow transition and animation when returning from Manage Bibles */
body.animations-played .bible-main-content {
  box-shadow: none !important;
  transition: none !important;
}

.shalom-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
  width: 100%;
  opacity: 0;
  animation: shalomSlideIn 1s cubic-bezier(0.23, 1, 0.32, 1) .85s forwards;
}

.shalom-select {
  display: none; /* Hide native select for custom dropdown */
    font-size: clamp(0.85rem, 1.2vw, 1.2rem) !important;
}

.custom-book-selector {
  position: relative;
  width: 240px;
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(.85rem, 1.2vw, 1.2rem);
  margin: 0 auto 0.8rem auto;
  z-index: 10001;
  /* transform-origin: center center !important; */
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  padding: clamp(.6rem, 1.2vw, 1rem) clamp(1.5rem,3vw,3rem);
}

.custom-book-selector.expanded {
  width: 90vw;
  max-width: 1000px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10005;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  /* transform-origin: center center !important; */
}

/* Collapsing state - immediately override expanded styles */
.custom-book-selector.collapsing {
  width: 240px !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 10001 !important;
  transition: all 0.1s ease !important;
}

.custom-book-selector.collapsing .book-selector-btn {
  height: 72px !important;
  border-radius: 18px !important;
  padding: 0 2rem !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  background: var(--bg-primary) !important;
  box-shadow: var(--shadow-elevated) !important;
  overflow: hidden !important;
  max-height: none !important;
  transition: all 0.1s ease !important;
}

/* Prevent body scroll when expanded */
body.selector-expanded {
  overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .custom-book-selector.expanded {
    width: 95vw;
    max-width: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .custom-book-selector.expanded .book-selector-btn {
    max-height: 70vh;
    padding: 1.5rem;
  }
}

.book-selector-btn {
  width: 100%;
  height: clamp(56px, 8vw, 80px);
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
  border-radius: clamp(12px, 2vw, 20px);
  box-shadow: var(--shadow-elevated);
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  letter-spacing: clamp(-0.5px, -0.05vw, -0.2px);
  text-align: center;
  font-size: var(--font-size-lg) !important;
  padding: var(--spacing-sm) var(--spacing-lg) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-origin: center center;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+ */
  user-select: none;         /* Standard */

  overflow: hidden;
}

.custom-book-selector.expanded .book-selector-btn {
  height: 400px;
  border-radius: 24px;
  padding: 2rem;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: var(--gradient-card);
  box-shadow: var(--shadow-floating);
  z-index: 10004;
  position: relative;
  overflow-y: auto;
  max-height: 80vh;
  transform: scale(1);
  transform-origin: center center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.custom-book-selector.collapsing .book-selector-btn .btn-text {
  font-size: 1.4rem !important;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
  color: var(--text-primary) !important;
}

.custom-book-selector.collapsing .book-grid-content {
  opacity: 0 !important;
  transform: translateY(20px) scale(0.95) !important;
  transition: none !important;
}

.book-selector-btn .btn-text {
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: clamp(0.85rem, 1.2vw, 1.2rem) !important;
}

.custom-book-selector.expanded .book-selector-btn .btn-text {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: var(--text-primary);
}

.book-selector-btn:hover {
  border-color: var(--text-chapter);
  box-shadow: 0 10px 30px rgba(145, 56, 229, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.custom-book-selector.expanded .book-selector-btn:hover {
  transform: none;
  box-shadow: var(--shadow-floating);
}

.book-selector-backdrop {
  display: none;
}

.custom-book-selector.expanded .book-selector-backdrop {
  display: none;
}

.book-grid-overlay {
  display: none;
}

.book-grid-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.book-grid-container {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(44, 41, 72, 0.2), 0 8px 32px rgba(145, 56, 229, 0.15);
  padding: 2rem;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.9);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.book-grid-overlay.visible .book-grid-container {
  transform: translateY(0) scale(1);
}

.book-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
}

.book-grid-header h3 {
  font-family: 'Bodoni Moda', serif;
  font-size: 2rem;
  font-weight: 300;
  color: #2d1e2f;
  margin: 0;
  letter-spacing: -1px;
}

.grid-close-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.grid-close-btn:hover {
  background: #e2e8f0;
  color: #475569;
  transform: scale(1.1);
}

.book-grid-content {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transform-origin: center center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
  flex: 1;
  filter: none;
  overflow-y: auto;
  max-height: 300px;
}

.custom-book-selector.expanded .book-grid-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center center;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0;
  filter: none;
}

.book-tile {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  font-family: 'Bodoni Moda', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #2d1e2f;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transform-origin: center center;
  box-shadow: 0 2px 8px rgba(44, 41, 72, 0.06), 0 4px 16px rgba(139, 92, 246, 0.08);
  position: relative;
  z-index: 10006;
  pointer-events: auto;
}

.custom-book-selector.expanded .book-tile {
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center center;
}

.book-tile:nth-child(1) { transition-delay: 0.2s; }
.book-tile:nth-child(2) { transition-delay: 0.22s; }
.book-tile:nth-child(3) { transition-delay: 0.24s; }
.book-tile:nth-child(4) { transition-delay: 0.26s; }
.book-tile:nth-child(5) { transition-delay: 0.28s; }
.book-tile:nth-child(6) { transition-delay: 0.3s; }
.book-tile:nth-child(7) { transition-delay: 0.32s; }
.book-tile:nth-child(8) { transition-delay: 0.34s; }
.book-tile:nth-child(9) { transition-delay: 0.36s; }
.book-tile:nth-child(10) { transition-delay: 0.38s; }

.book-tile:hover {
  background: linear-gradient(135deg, #e6e0fa 0%, #f3f0ff 100%);
  border-color: #947fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(148, 119, 255, 0.15), 0 3px 8px rgba(44, 41, 72, 0.08);
  color: #7c3aed;
}

.book-tile.selected {
  background: linear-gradient(135deg, #947fff 0%, #7c3aed 100%);
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 8px 24px rgba(148, 119, 255, 0.3);
}

.book-tile .book-name {
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

/* Mobile responsive grid */
@media (max-width: 768px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 400px;
  }
  
  .book-tile {
    padding: 0.75rem 0.5rem;
    min-height: 50px;
    font-size: 0.9rem;
  }
  
  .book-grid-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .book-grid-header h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-width: 320px;
  }
  
  .book-tile {
    padding: 0.6rem 0.4rem;
    min-height: 45px;
    font-size: 0.85rem;
  }
  
  .book-tile .book-name {
    font-size: 0.85rem;
  }
}

/* Add styles for the search bar and button */
.shalom-search-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  position: relative;
  opacity: 0;
  animation: shalomSlideIn 1s cubic-bezier(0.23, 1, 0.32, 1) 2.1s forwards;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* CSS animations removed - handled by JavaScript for better control */

.shalom-search-input {
  width: clamp(280px, 40vw, 400px);
  height: clamp(40px, 6vw, 56px);
  border-radius: clamp(20px, 3vw, 30px);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 32px 0 rgba(44, 41, 72, 0.13), 0 6px 20px rgba(145, 56, 229, 0.2);  
  font-size: var(--font-size-base);
  padding: 0 var(--spacing-lg);
  font-family: "Suisse Intl Book", sans-serif;
  transition: all 0.3s ease;
  position: relative;
  outline: none;
  overflow: hidden;
  border: 2px solid transparent;
}

.shalom-search-input:focus {
  outline: none;
  border-color: #9138e5;
  box-shadow: 0 8px 32px 0 rgba(44, 41, 72, 0.13), 0 6px 20px rgba(145, 56, 229, 0.2);  
}

.shalom-search-input::placeholder {
  color: #6b7280;
  font-style: italic;
  font-size: var(--font-size-sm);
}

.shalom-search-input:hover {
  border-color: #9138e5;
  box-shadow:  0 10px 30px rgba(145, 56, 229, 0.2);
  transform: translateY(-1px);
}

.shalom-search-button {
  height: clamp(40px, 6vw, 56px);
  padding: 0 var(--spacing-lg);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 2px solid #10b981;
  border-radius: clamp(18px, 2.5vw, 20px);
  font-size: var(--font-size-base);
  font-weight: 600;
  font-family: "Suisse Intl Book", sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: clamp(120px, 20vw, 160px);
}

.shalom-search-button:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.shalom-or {
  font-size: var(--font-size-xl);
  font-family: 'Libre Baskerville', serif;
  color: var(--text-primary);
  text-align: center;
  opacity: 0;
  margin: var(--spacing-xs) 0;
  animation: shalomSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.6s forwards;
  position: relative;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeInBlur {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: .75;
    transform: scale(1);
  }
}

/* ==========================================
   VERSE OVERLAY
   ========================================== */

/* ==========================================
   VERSE OVERLAY
   ========================================== */

.verse-overlay {
  position: absolute;
  bottom: 20;
  right: 2rem;
  transform: translateY(-50%) rotate(-2deg);
  transform-origin: bottom right;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  animation: verseFlicker 12s ease-in-out infinite;
  max-width: 90vw;
  overflow: hidden;
}

.verse-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 400;
  color: #2a2a2a;
  line-height: 1.2;
}

.verse-ref {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-style: italic;
  color: #4a4a4a;
  line-height: 1.2;
  opacity: 0.9;
}

@keyframes verseFlicker {
  0%, 15% {
    opacity: 0;
  }
  20%, 80% {
    opacity: 0.9;
  }
  85%, 100% {
    opacity: 0;
  }
}

/* Responsive adjustments for verse overlay */
@media screen and (max-width: 768px) {
  .verse-overlay {
    right: 1.5rem;
    gap: 0.4rem;
    max-width: 85vw;
  }
  
  .verse-text {
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  }
  
  .verse-ref {
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
  }
}

@media screen and (max-width: 480px) {
  .verse-overlay {
    right: 1rem;
    gap: 0.3rem;
    max-width: 80vw;
    transform: translateY(-30%) rotate(-2deg);
  }
  
  .verse-text {
    font-size: clamp(1rem, 1.6vw, 1.4rem);
  }
  
  .verse-ref {
    font-size: clamp(0.8rem, 1.2vw, 1.1rem);
  }
}

@media screen and (max-width: 320px) {
  .verse-overlay {
    right: 0.8rem;
    gap: 0.2rem;
    max-width: 75vw;
  }
  
  .verse-text {
    font-size: clamp(0.9rem, 1.4vw, 1.2rem);
  }
  
  .verse-ref {
    font-size: clamp(0.7rem, 1.1vw, 1rem);
  }
}

/* ==========================================
   SMOOTH SCROLLABLE SPLIT SECTIONS
   ========================================== */

.split-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.split-section:nth-child(even) {
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
}

.split-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 4rem;
  align-items: center;
}

.quote-left {
  flex: 1;
  text-align: left;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.description-right {
  flex: 1;
  text-align: left;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

.quote-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.description-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.quote-left h2 {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text-chapter);
  margin-bottom: var(--spacing-md);
  font-family: "Georgia", serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quote-left h2 * {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  font-family: inherit !important;
}

.quote-left span {
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ==========================================
   ANIMATED QUOTE HIGHLIGHTING
   ========================================== */

.animated-quote {
  position: relative;
}

.interactive-quote {
  position: relative;
}

.interactive-quote .highlight-ask {
  transition: background 0.3s ease;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  font-family: inherit !important;
}

.interactive-quote .highlight-receive {
  transition: background 0.3s ease;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  font-family: inherit !important;
}

.interactive-quote .highlight-joy {
  transition: background 0.3s ease;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  font-family: inherit !important;
}

.interactive-quote.prompt-1-hover .highlight-ask,
.interactive-quote.prompt-1-hover .highlight-receive {
  background: linear-gradient(135deg, #9138e5 0%, #6bd6ff 100%) !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.interactive-quote.prompt-2-hover .highlight-receive,
.interactive-quote.prompt-2-hover .highlight-joy {
  background: linear-gradient(135deg, #9138e5 0%, #6bd6ff 100%) !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.interactive-quote.prompt-3-hover .highlight-ask,
.interactive-quote.prompt-3-hover .highlight-joy {
  background: linear-gradient(135deg, #9138e5 0%, #6bd6ff 100%) !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   PROMPT PILLS
   ========================================== */

.prompt-pills-container {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.5vw, 0.4rem);
  max-width: clamp(260px, 34vw, 340px);
}

.prompt-pill {
  background: linear-gradient(135deg, #faf8fc 0%, #e2e8f0 100%);
  border: clamp(1px, 0.15vw, 1px) solid #e2e8f0;
  border-radius: clamp(10px, 2vw, 14px);
  padding: clamp(0.3rem, 0.6vw, 0.4rem) clamp(0.6rem, 1vw, 0.8rem);
  font-size: clamp(0.65rem, 0.8vw, 0.7rem);
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Suisse Intl Book", sans-serif;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(20px);
  min-height: clamp(1.6rem, 2.5vw, 1.8rem);
  display: flex;
  align-items: center;
}

.prompt-pill.loading {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  cursor: default;
  opacity: 0;
  transform: translateY(0);
  font-size: clamp(0.65rem, 0.8vw, 0.7rem);
  display: none;
}

.prompt-pill.generated {
  animation: pillSlideIn 0.6s ease-out forwards;
  opacity: 1;
  transform: translateY(0);
  font-size: clamp(0.65rem, 0.8vw, 0.7rem);
  display: flex;
}

.loading-dots {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  color: #9ca3af;
  font-size: 0.95rem;
  font-family: "Suisse Intl Book", sans-serif;
}

.loading-dots::before {
  content: "AI generating";
  margin-right: 0.5rem;
  font-style: italic;
  font-size: 0.95rem;
}

.loading-dots::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9ca3af;
  animation: loadingDots 1.5s infinite;
  box-shadow: 
    12px 0 0 0 #9ca3af,
    24px 0 0 0 #9ca3af;
}

@keyframes loadingDots {
  0% {
    background: #3b82f6;
    box-shadow: 
      12px 0 0 0 #9ca3af,
      24px 0 0 0 #9ca3af;
  }
  33% {
    background: #9ca3af;
    box-shadow: 
      12px 0 0 0 #3b82f6,
      24px 0 0 0 #9ca3af;
  }
  66% {
    background: #9ca3af;
    box-shadow: 
      12px 0 0 0 #9ca3af,
      24px 0 0 0 #3b82f6;
  }
  100% {
    background: #3b82f6;
    box-shadow: 
      12px 0 0 0 #9ca3af,
      24px 0 0 0 #9ca3af;
  }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter 2s steps(40, end);
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  width: 0;
  max-width: 100%;
  font-family: "Suisse Intl Book", sans-serif !important;
  display: inline-block;
  transform: scale(1) !important;
}

@keyframes typewriter {
  from { 
    width: 0; 
  }
  to { 
    width: 100%; 
  }
}

@keyframes pillSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prompt-pill:hover {
  background: linear-gradient(135deg, #9138e5 0%, #6bd6ff 100%);
  color: white;
  border-color: #9138e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(145, 56, 229, 0.25);
}

.prompt-pill:hover .typewriter,
.prompt-pill:hover span {
  color: white !important;
}

/* ==========================================
   AI LOADING INDICATOR
   ========================================== */

.ai-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.8rem;
  opacity: 1;
  transition: opacity 0.5s ease;
  min-height: 3rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border: 2px solid #e0e7ff;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(145, 56, 229, 0.1);
}

.ai-loading-indicator.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

/* Verses loading indicator - initially hidden */
#versesLoadingIndicator {
  display: none;
  opacity: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.ai-loading-text {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Suisse Intl Book", sans-serif;
  font-size: 1rem;
  color: #6b7280;
  font-style: italic;
}

.ai-loading-dots {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.ai-loading-dots::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9138e5;
  animation: aiLoadingDots 1.5s infinite;
  box-shadow: 
    8px 0 0 0 #9138e5,
    16px 0 0 0 #9138e5;
}

@keyframes aiLoadingDots {
  0% {
    background: #9138e5;
    box-shadow: 
      8px 0 0 0 #e5e7eb,
      16px 0 0 0 #e5e7eb;
  }
  33% {
    background: #e5e7eb;
    box-shadow: 
      8px 0 0 0 #9138e5,
      16px 0 0 0 #e5e7eb;
  }
  66% {
    background: #e5e7eb;
    box-shadow: 
      8px 0 0 0 #e5e7eb,
      16px 0 0 0 #9138e5;
  }
  100% {
    background: #9138e5;
    box-shadow: 
      8px 0 0 0 #e5e7eb,
      16px 0 0 0 #e5e7eb;
  }
}

/* ==========================================
   BE STILL EMOJI ANIMATION
   ========================================== */

.be-still-emojis {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.8s;
}

.quote-left.visible .be-still-emojis {
  opacity: 1;
}

.emoji-item {
  font-size: 9rem;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(145, 56, 229, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(145, 56, 229, 0.2);
  opacity: 0;
  transform: translateY(30px) scale(0.6);
  animation: emojiFloat 1s ease-out forwards;
  cursor: pointer;
  transition: all 0.4s ease;
}

.emoji-item:nth-child(1) {
  animation-delay: 1s;
}

.emoji-item:nth-child(2) {
  animation-delay: 1.4s;
}

.emoji-item:nth-child(3) {
  animation-delay: 1.8s;
}

.emoji-item:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 12px 35px rgba(145, 56, 229, 0.3), 0 6px 15px rgba(0, 0, 0, 0.15);
  border-color: rgba(145, 56, 229, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #faf8fc 50%, #e8e3f0 100%);
}

@keyframes emojiFloat {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.6);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Emoji tooltip styles */
.emoji-item {
  position: relative;
}

.emoji-tooltip {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(145, 56, 229, 0.9);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(145, 56, 229, 0.3);
}

.emoji-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(145, 56, 229, 0.9);
}

.emoji-item:hover .emoji-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* ==========================================
   BIBLIA AI DEMO PANEL
   ========================================== */

.biblia-ai-demo {
  position: relative;
  margin-top: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  max-height: 0;
  overflow: hidden;
}

.biblia-ai-demo.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 500px;
}

.demo-panel {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid rgba(145, 56, 229, 0.3);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 
    0 8px 25px rgba(145, 56, 229, 0.15),
    0 0 0 1px rgba(145, 56, 229, 0.1),
    inset 0 0 20px rgba(145, 56, 229, 0.05);
}

.biblia-ai-demo.active .demo-panel {
  animation: panelGlow 2s ease-in-out infinite alternate;
}

@keyframes panelGlow {
  0% {
    box-shadow: 
      0 8px 25px rgba(145, 56, 229, 0.15),
      0 0 0 1px rgba(145, 56, 229, 0.1),
      inset 0 0 20px rgba(145, 56, 229, 0.05);
  }
  100% {
    box-shadow: 
      0 12px 35px rgba(145, 56, 229, 0.25),
      0 0 0 2px rgba(145, 56, 229, 0.2),
      inset 0 0 30px rgba(145, 56, 229, 0.1);
  }
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #9138e5 0%, #7c3aed 100%);
  color: white;
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.demo-logo {
  font-size: 1.2rem;
}

.prototype-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
}

/* Additional prototype indicators */
.prototype-indicator {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
}

.demo-badge {
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  color: white;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-left: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.demo-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.demo-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.demo-content {
  padding: 1.5rem;
  min-height: 180px;
  max-height: 400px;
  overflow-y: auto;
}

.demo-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #4b5563;
  margin-bottom: 0.5rem;
  padding: 1rem;
  background: rgba(145, 56, 229, 0.05);
  border-left: 4px solid #9138e5;
  border-radius: 0 8px 8px 0;
}

.demo-reference {
  font-size: 0.9rem;
  color: #6b7280;
  text-align: right;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.demo-ai-response {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(145, 56, 229, 0.2);
  border-radius: 10px;
  padding: 1.2rem;
  position: relative;
}

.demo-ai-response::before {
  content: 'AI';
  position: absolute;
  top: -8px;
  left: 15px;
  background: #9138e5;
  color: white;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.demo-ai-message {
  color: #374151;
  line-height: 1.6;
  font-size: 0.95rem;
}

.demo-ai-signature {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(145, 56, 229, 0.1);
  font-size: 0.85rem;
  color: #9138e5;
  font-weight: 600;
  text-align: right;
}

/* Typing cursor animation */
.typing-cursor {
  color: #9138e5;
  font-weight: 600;
  animation: cursorBlink 1s infinite;
  margin-left: 1px;
}

@keyframes cursorBlink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Responsive design for demo panel */
@media (max-width: 768px) {
  .biblia-ai-demo {
    margin-top: 1rem;
  }
  
  .demo-content {
    padding: 1rem;
    max-height: 300px;
  }
  
  .demo-quote {
    font-size: 1rem;
    padding: 0.8rem;
  }
  
  .demo-ai-response {
    padding: 1rem;
  }
  
  .demo-ai-message {
    font-size: 0.9rem;
  }
}

/* ==========================================
   ANIMATED SEARCH BAR
   ========================================== */

.search-container {
  flex: 1;
  max-width: 500px;
}

.animated-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #fbf8fc 100%);
  border-radius: 30px;
  padding: 1.2rem 1.6rem;
  box-shadow: 0 6px 20px rgba(145, 56, 229, 0.2);  
  transition: all 0.3s ease;
  max-width: 500px;
  min-height: 4rem;
  overflow: hidden;
}

.animated-search-bar:hover {
  border-color: #9138e5;
  box-shadow:  0 10px 30px rgba(145, 56, 229, 0.2);
}

.search-icon {
  font-size: 1.4rem;
  margin-right: 1rem;
  color: #6b7280;
  transition: color 0.3s ease;
}

.animated-search-bar:hover .search-icon {
  color: #9138e5;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.1rem;
  color: #4a5568;
  font-family: "Suisse Intl Book", sans-serif;
  cursor: pointer;
}

.search-typewriter {
  position: absolute;
  left: 3.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #4a5568;
  font-family: "Suisse Intl Book", sans-serif;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  width: auto;
  border-right: 2px solid #9138e5;
}

.search-typewriter.typing {
  opacity: 0;
  width: 0;
  animation: searchTypewriter 4s steps(30, end) 2s forwards, searchBlink 0.8s infinite 2s;
}

@keyframes searchTypewriter {
  0% {
    opacity: 1;
    width: 0;
  }
  50% {
    opacity: 1;
    width: 100%;
  }
  100% {
    opacity: 1;
    width: 100%;
    border-right: none;
  }
}

@keyframes searchBlink {
  0%, 50% {
    border-right-color: #9138e5;
  }
  51%, 100% {
    border-right-color: transparent;
  }
}

.search-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 2px solid #10b981;
  border-radius: 20px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Suisse Intl Book", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  white-space: nowrap;
}

.search-button:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.search-container-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 1.2s;
  flex-wrap: wrap;
  justify-content: center;
}

.quote-left.visible .search-container-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   BIBLE VERSES SEARCH CONTAINER
   ========================================== */

.bible-verses-search {
  margin-top: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s ease;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(145, 56, 229, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(145, 56, 229, 0.1);
}

.bible-verses-search.active {
  opacity: 0.95;
  visibility: visible;
  transform: translateY(0);
}

.verses-header {
  background: linear-gradient(135deg, #9138e5 0%, #7c3aed 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verses-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Suisse Intl Book", sans-serif;
}

.verses-collapse-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.verses-collapse-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.verses-content {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

/* Ultra-thin scrollbar for verses content */
.verses-content::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.verses-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 0;
}

.verses-content::-webkit-scrollbar-thumb {
  background: rgba(145, 56, 229, 0.15);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.verses-content::-webkit-scrollbar-thumb:hover {
  background: rgba(145, 56, 229, 0.25);
}

/* Firefox scrollbar styling */
.verses-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(145, 56, 229, 0.15) transparent;
}

.verse-item {
  background: rgba(145, 56, 229, 0.05);
  border-left: 3px solid #9138e5;
  border-radius: 0 8px 8px 0;
  padding: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.verse-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.verse-text {
  font-size: 0.95rem;
  font-style: italic;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.verse-reference {
  font-size: 0.85rem;
  color: #9138e5;
  font-weight: 600;
  text-align: right;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verse-ref-text {
  font-size: 0.85rem;
  color: #9138e5;
  font-weight: 600;
}

.context-btn {
  background: linear-gradient(135deg, #9138e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Suisse Intl Book", sans-serif;
}

.context-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6b46c1 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(145, 56, 229, 0.3);
}

/* Context message styles */
.context-message {
  margin-top: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.5s ease;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1rem 0;
}

.context-message.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.context-message p {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: #9138e5;
  font-weight: 400;
  text-align: center;
  font-family: "Dancing Script", cursive;
  font-style: italic;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(145, 56, 229, 0.2);
  line-height: 1.3;
}

/* Collapse animation */
.bible-verses-search.collapsing .verses-content {
  animation: collapseUp 0.5s ease-in-out forwards;
  overflow: hidden;
}

@keyframes collapseUp {
  0% {
    max-height: 400px;
    opacity: 1;
  }
  100% {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Responsive design for verses container */
@media (max-width: 768px) {
  .verses-content {
    padding: 1rem;
    max-height: 300px;
  }
  
  .verse-item {
    padding: 0.8rem;
  }
  
  .verse-text {
    font-size: 0.9rem;
  }
}

.description-right h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-chapter);
  margin-bottom: var(--spacing-xl);
  font-family: "Suisse Intl Book", sans-serif;
}

.description-right p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  font-family: "Suisse Intl Book", sans-serif;
  margin-bottom: var(--spacing-2xl);
}

.get-started-btn {
  background: linear-gradient(135deg, #9138e5 0%, #6bd6ff 100%);
  color: white;
  border: none;
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(145, 56, 229, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.get-started-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(145, 56, 229, 0.4);
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%) !important;
}
/* 
.final-section {
  background: var(--theme-gradient-wisdom) !important;
} */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive design for split sections */
@media (max-width: 768px) {
  .split-section {
    height: auto;
    min-height: 0;
    padding: 2rem 0.5rem;
  }
  
  .split-container {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  
  .quote-left {
    transform: translateY(-30px);
    padding: 0 0.6rem;
  }
  
  .description-right {
    transform: translateY(30px);
    padding: 0 0.6rem;
  }
  
  .quote-left.visible,
  .description-right.visible {
    transform: translateY(0);
  }
  
  .quote-left h2 {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    line-height: 1.3;
  }
  
  .quote-left span {
    font-size: clamp(0.8rem, 3vw, 0.95rem);
  }
  
  .description-right h3 {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  
  .description-right p {
    font-size: clamp(0.78rem, 3vw, 0.88rem);
    line-height: 1.5;
  }
  
  .get-started-btn {
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: var(--font-size-base);
  }
  
  /* Mobile responsive styles for search container */
  .search-container-wrapper {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    align-items: stretch;
  }
  
  .search-container {
    width: 100%;
  }
  
  .animated-search-bar {
    width: 100%;
    max-width: none;
    min-width: auto;
  }
  
  .search-button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Extra mobile styles for very small screens */
@media (max-width: 480px) {
  .quote-left {
    padding: 0 0.5rem;
  }
  
  .description-right {
    padding: 0 0.5rem;
  }
  
  .search-container-wrapper {
    gap: 0.8rem;
    margin-top: 1rem;
  }
  
  .search-button {
    max-width: 240px;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  
  .animated-search-bar {
    height: 44px;
  }
  
  .quote-left h2 {
    font-size: var(--font-size-2xl);
  }
}

/* ==========================================
   MAIN FLEX CONTAINER
   ========================================== */

.bible-flex-container {
  display: flex;
  height: calc(100vh - 70px); /* 70px = approx navbar height, adjust if needed */
  margin: 0;
  padding: 0;
  position: relative;
}

/* ==========================================
   SIDEBAR LAYOUT SYSTEM
   ========================================== */

/* Main Sidebar */
.custom-sidebar {
  position: absolute;
  left: 0;
  top: 50px;
  width: 180px;
  min-width: 150px;
  border: 2px solid #fad8aa;
  border-radius: 8px;
  background: linear-gradient(135deg, 
    #fff8d4 0%, 
    #fef3c7 30%, 
    #fde68a 70%, 
    #fad8aa 100%
  );
  box-shadow: 
    0 4px 15px rgba(251, 191, 36, 0.2), 
    inset 0 1px 3px rgba(255, 255, 255, 0.3);
  font-family: cursive;
  box-sizing: border-box;
  height: calc(90% - 50px);
  transition: 
    width 0.3s, 
    min-width 0.3s, 
    box-shadow 0.3s ease;
  overflow: hidden;
  z-index: 1000;
}

/* Sidebar Shine Animation */
.custom-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent
  );
  transition: left 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1;
}

.custom-sidebar:hover::before {
  left: 100%;
}

.custom-sidebar:hover {
  box-shadow: 
    0 6px 20px rgba(251, 191, 36, 0.3), 
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Collapsed Sidebar State */
.custom-sidebar.collapsed {
  width: 50px;
  min-width: 50px;
  overflow: hidden;
  padding: 0;
  border: 2px solid #fad8aa;
  border-radius: 8px;
  background: linear-gradient(135deg, 
    #fff8d4 0%, 
    #fef3c7 50%, 
    #fad8aa 100%
  );
  box-shadow: 
    0 4px 15px rgba(251, 191, 36, 0.2), 
    inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */

.bible-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  height: 100%;
  transition: 
    margin-right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
    box-shadow 0.3s ease;
  position: relative;
  border-radius: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: var(--shadow-gentle);
  background: linear-gradient(
    to bottom right,
    rgba(250, 249, 246, 1),
    rgba(248, 246, 255, 0.8)
  );
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Dark theme with white glow border */
[data-theme="dark"] .bible-main-content {
  background: linear-gradient(135deg, 
    rgba(18, 18, 18, 0.95) 0%, 
    rgba(26, 26, 26, 0.9) 50%, 
    rgba(18, 18, 18, 0.95) 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Main Content Shine Animation - Removed to prevent glitching */

/* ==========================================
   SIDEBAR STATE MANAGEMENT
   ========================================== */

/* Sidebar now overlays content instead of shifting it */

/* AI panel adjustments */
.ai-panel-open .bible-main-content {
  margin-right: 420px;
}

/* ==========================================
   FORM POSITIONING
   ========================================== */

#chapter-form {
  margin-left: 300px;
  top: 30px;
}

/* ==========================================
   CONTENT WRAPPER & WELCOME SECTION
   ========================================== */

/* Welcome content positioning */
.welcome-content {
  margin-top: var(--spacing-3xl);
  text-align: center;
  font-size: var(--font-size-lg);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: "Suisse Intl Book", "Suisse Intl Book Placeholder", sans-serif;
  position: relative;
  z-index: 10;
  padding: 0 var(--spacing-md);
}

.welcome-content h1 {
  margin-bottom: var(--spacing-xs);
  font-weight: 200;
  font-family: 'Bodoni Moda', serif;
  text-shadow: 
    0 2px 12px rgba(124, 58, 237, 0.08);
  transition: transform 0.3s ease;
  cursor: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: var(--text-primary);
  font-size: var(--font-size-6xl);
  position: relative;
  z-index: 10;
  letter-spacing: clamp(-5px, -0.3vw, -2px);
  line-height: 1.1;
}

.welcome-content p {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  font-family: 'Bodoni Moda', serif;
  opacity: 0.9;
  color: var(--text-secondary);
  font-weight: 200;
  line-height: 1.2;
  max-width: clamp(300px, 50vw, 450px);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: clamp(-0.5px, -0.05vw, -0.2px);
}

.header-search-demo {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  margin-top: var(--spacing-sm);
  opacity: 0.8;
  border-right: 2px solid var(--text-chapter);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: headerTypewriter 3s steps(28, end) 1s forwards, headerBlink 0.8s infinite 1s;
}

@keyframes headerTypewriter {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
    border-right: none;
  }
}

@keyframes headerBlink {
  0%, 50% {
    border-right-color: var(--text-chapter);
  }
  51%, 100% {
    border-right-color: transparent;
  }
}

/* Hero Verse - Dynamic Bible Quote Rotator */
.hero-verse {
  font-family: 'Dancing Script', cursive;
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  opacity: 0.9;
  text-align: center;
  margin-top: var(--spacing-lg);
  transition: opacity 1s ease-in-out;
  font-weight: 500;
  line-height: 1.4;
  max-width: clamp(280px, 85vw, 900px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-md);
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  -webkit-hyphens: auto; /* Safari */
  -ms-hyphens: auto;     /* IE */
  hyphens: auto;         /* Standard */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7), 0 0 10px rgba(0, 0, 0, 0.15);
}

.hero-verse-ref {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  opacity: 0.75;
  text-align: center;
  margin-top: var(--spacing-sm);
  transition: opacity 1s ease-in-out;
  font-style: italic;
  font-weight: 400;
  max-width: clamp(280px, 85vw, 800px);
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Push content left when auth panel is active */
.auth-panel-open .welcome-content {
  transform: translateX(-200px);
}

/* ==========================================
   AI PANEL CONNECTION
   ========================================== */

/* Professional attachment between AI panel and scripture */
.bible-main-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(135deg, 
    #3b82f6 0%, 
    #1d4ed8 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-panel-open .bible-main-content::after {
  opacity: 1;
}

/* ==========================================
   HEADER ANIMATION CONTAINER
   ========================================== */

.finisher-header {
  position: relative;
  background: linear-gradient(135deg, 
    #ffb63e 0%, 
    #ff8e3c 25%, 
    #ff6b3d 50%, 
    #ff4757 75%, 
    #ff3742 100%
  );
  overflow: hidden;
  border-radius: 12px;
  margin: 20px 0;
  height: 70vh;
  box-shadow: 
    0 10px 30px rgba(255, 182, 62, 0.4), 
    inset 0 1px 3px rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: 
    transform 0.3s ease, 
    box-shadow 0.3s ease;
}

/* Header Shine Animation */
.finisher-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent
  );
  transition: left 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1;
}

.finisher-header:hover::before {
  left: 100%;
}

.finisher-header:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(255, 182, 62, 0.5), 
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

/* Fullscreen animation variant */
.finisher-header.fullscreen-animation {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 70vh;
  margin: 0;
  border-radius: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: none;
}

/* Smooth transition from animation to white content */
.finisher-header.fullscreen-animation {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Base responsive font sizes using clamp() for smooth scaling */
:root {
  --font-size-xs: clamp(0.75rem, 0.8vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 1vw, 1rem);
  --font-size-base: clamp(1rem, 1.2vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1.4vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.6vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 2vw, 1.875rem);
  --font-size-3xl: clamp(1.875rem, 2.5vw, 2.25rem);
  --font-size-4xl: clamp(2.25rem, 3vw, 2.5rem);
  --font-size-5xl: clamp(2.5rem, 4vw, 3rem);
  --font-size-6xl: clamp(3rem, 5vw, 4rem);
  
  /* Responsive spacing */
  --spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --spacing-sm: clamp(0.5rem, 1vw, 0.75rem);
  --spacing-md: clamp(0.75rem, 1.5vw, 1rem);
  --spacing-lg: clamp(1rem, 2vw, 1.5rem);
  --spacing-xl: clamp(1.5rem, 3vw, 2rem);
  --spacing-2xl: clamp(2rem, 4vw, 3rem);
  --spacing-3xl: clamp(3rem, 5vw, 4rem);
  
  /* Responsive widths for JavaScript access */
  --ai-panel-min-width: clamp(280px, 30vw, 300px);
  --ai-panel-max-width: clamp(400px, 60vw, 600px);
  --ai-panel-default-width: clamp(350px, 40vw, 450px);
}

/* Enhanced responsive scaling for homepage elements */

/* Desktop Large (1440px+) */
@media (min-width: 1440px) {
  .shalom-welcome .shalom-title {
    font-size: clamp(3.5rem, 4.5vw, 5rem);
    letter-spacing: -6px;
    margin-bottom: 1.2rem;
  }
  
  .shalom-welcome .shalom-subtitle {
    /* font-size: clamp(1.4rem, 2.2vw, 1.8rem) !important; */
    max-width: 500px;
    margin: -1rem auto 1.8rem auto;
  }
  
  .book-selector-btn {
    height: 80px;
    font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(2rem, 4vw, 3rem) !important;
    border-radius: 20px;
  }
  
  .shalom-search-input {
    width: 400px;
    height: 56px;
    font-size: 1.1rem;
    padding: 0 2rem;
  }
  
  .shalom-search-button {
    height: 56px;
    padding: 0 2rem;
    font-size: 1.1rem;
  }
  
  .shalom-search-container {
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  
  .hero-verse {
    font-size: clamp(2rem, 2.8vw, 3rem);
    margin-top: 2rem;
    max-width: 80%;
  }
  
  .hero-verse-ref {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    margin-top: 0.8rem;
    max-width: 80%;
  }
}

/* Laptop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .shalom-welcome .shalom-title {
    font-size: clamp(2.8rem, 4vw, 3.5rem);
    letter-spacing: -5px;
    margin-bottom: 1rem;
  }
  
  .shalom-welcome .shalom-subtitle {
    /* font-size: clamp(1.2rem, 2vw, 1.5rem) !important; */
    max-width: 450px;
    margin: -0.9rem auto 1.5rem auto;
  }
  
  .book-selector-btn {
    height: 72px;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem) !important;
    padding: clamp(0.8rem, 1.8vw, 1.2rem) clamp(1.8rem, 3.5vw, 2.5rem) !important;
  }
  
  .shalom-search-input {
    width: 360px;
    height: 52px;
    font-size: 1rem;
    padding: 0 1.8rem;
  }
  
  .shalom-search-button {
    height: 52px;
    padding: 0 1.8rem;
    font-size: 1rem;
  }
  
  .shalom-search-container {
    gap: 1.2rem;
    margin-top: 2.2rem;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .bible-flex-container {
    flex-direction: column;
    height: auto;
  }
  
  .custom-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  
  .welcome-content {
    margin-top: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
  }
  
  .shalom-welcome .shalom-title {
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    letter-spacing: -4px;
    margin-bottom: 0.8rem;
  }
  
  .shalom-welcome .shalom-subtitle {
    /* font-size: clamp(1.1rem, 1.8vw, 1.3rem) !important; */
    max-width: 400px;
    margin: -0.8rem auto 1.3rem auto;
  }
  
  .book-selector-btn {
    height: 68px;
    font-size: clamp(1rem, 1.6vw, 1.2rem) !important;
    padding: clamp(0.7rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem) !important;
    border-radius: 16px;
  }
  
  .shalom-search-container {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.8rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .shalom-search-input {
    width: 100%;
    max-width: 340px;
    height: 48px;
    font-size: 0.95rem;
  }
  
  .shalom-search-button {
    height: 48px;
    width: 100%;
    max-width: 200px;
    font-size: 0.95rem;
  }
  
  .hero-verse {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    margin-top: 1.5rem;
    padding: 0 var(--spacing-lg);
    max-width: 90%;
    line-height: 1.3;
  }
  
  .hero-verse-ref {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    margin-top: 0.6rem;
    max-width: 90%;
  }
  
  .auth-panel-open .welcome-content {
    transform: none;
  }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .welcome-content {
    padding: 0 var(--spacing-md);
  }
  
  .shalom-welcome .shalom-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    letter-spacing: -3px;
    margin-bottom: 0.6rem;
  }
  
  .shalom-welcome .shalom-subtitle {
    /* font-size: clamp(1rem, 1.6vw, 1.2rem) !important; */
    max-width: 350px;
    margin: -0.6rem auto 1rem auto;
  }
  
  .book-selector-btn {
    height: 64px;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem) !important;
    padding: clamp(0.6rem, 1.2vw, 0.8rem) clamp(1.2rem, 2.5vw, 1.8rem) !important;
    border-radius: 14px;
    /* Ensure text is centered on mobile devices */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .book-selector-btn .btn-text {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  
  .shalom-search-container {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .shalom-search-input {
    width: 100%;
    height: 44px;
    font-size: 0.9rem;
    padding: 0 1.2rem;
  }
  
  .shalom-search-button {
    height: 44px;
    width: 100%;
    max-width: 180px;
    font-size: 0.9rem;
    padding: 0 1.2rem;
  }
  
  .hero-verse {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    margin-top: 1.2rem;
    padding: 0 var(--spacing-md);
    max-width: 95%;
    line-height: 1.3;
  }
  
  .hero-verse-ref {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    margin-top: 0.5rem;
    max-width: 95%;
  }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
  .content-wrapper {
    padding: var(--spacing-md);
  }
  
  .welcome-content {
    padding: 0 var(--spacing-sm);
  }
  
  #chapter-form {
    position: relative;
    top: auto;
    margin-left: 300px;
  }
  
  .shalom-welcome .shalom-title {
    font-size: clamp(1.5rem, 2.8vw, 1.8rem);
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
  }
  
  .shalom-welcome .shalom-subtitle {
    /* font-size: clamp(0.9rem, 1.4vw, 1.1rem) !important; */
    max-width: 300px;
    margin: -0.5rem auto 0.8rem auto;
  }
  
  .book-selector-btn {
    height: 56px;
    font-size: clamp(0.85rem, 1.2vw, 1rem) !important;
    padding: clamp(0.5rem, 1vw, 0.7rem) clamp(1rem, 2vw, 1.5rem) !important;
    border-radius: 12px;
    /* Ensure text is centered on mobile devices */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .book-selector-btn .btn-text {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  
  .shalom-search-container {
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.2rem;
    width: 100%;
    padding: 0 var(--spacing-xs);
  }
  
  .shalom-search-input {
    width: 100%;
    height: 40px;
    font-size: 0.85rem;
    padding: 0 1rem;
    border-radius: 25px;
  }
  
  .shalom-search-button {
    height: 40px;
    width: 100%;
    max-width: 160px;
    font-size: 0.85rem;
    padding: 0 1rem;
    border-radius: 18px;
  }
  
  .shalom-or {
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    margin: 0.1rem 0;
  }
  
  .hero-verse {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    margin-top: 1rem;
    padding: 0 var(--spacing-sm);
    max-width: 98%;
    line-height: 1.3;
  }
  
  .hero-verse-ref {
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    margin-top: 0.4rem;
    max-width: 98%;
  }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
  .shalom-welcome .shalom-title {
    font-size: clamp(1.1rem, 8vw, 1.4rem);
    letter-spacing: -1px;
  }
  
  .shalom-welcome .shalom-subtitle {
    /* font-size: 0.85rem !important; */
    max-width: 280px;
  }
  
  .book-selector-btn {
    height: 50px;
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  
  .shalom-search-input {
    height: 36px;
    font-size: 0.8rem;
    padding: 0 0.8rem;
  }
  
  .shalom-search-button {
    height: 36px;
    font-size: 0.8rem;
    padding: 0 0.8rem;
  }
}

/* Touch target improvements for mobile */
@media (max-width: 768px) and (pointer: coarse) {
  .book-selector-btn {
    min-height: 48px; /* Larger iOS minimum touch target */
    min-width: 48px;
    touch-action: manipulation;
  }
  
  .shalom-search-input {
    min-height: 48px;
    touch-action: manipulation;
  }
  
  .shalom-search-button {
    min-height: 48px;
    min-width: 120px; /* Ensure adequate touch area */
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .shalom-search-button svg {
    flex-shrink: 0;
  }
  
  /* Improve hover states for touch devices */
  .book-selector-btn:hover {
    transform: none;
    box-shadow: var(--shadow-elevated);
  }
  
  .shalom-search-input:hover,
  .shalom-search-button:hover {
    transform: none;
  }
  
  /* Better touch feedback */
  .shalom-search-button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* High DPI/Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .shalom-welcome .shalom-title,
  .shalom-welcome .shalom-subtitle,
  .book-selector-btn,
  .shalom-search-input,
  .shalom-search-button {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .shalom-welcome .shalom-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 0.3rem;
  }
  
  .shalom-welcome .shalom-subtitle {
    /* font-size: clamp(0.8rem, 1.2vw, 1rem) !important; */
    margin: -0.3rem auto 0.5rem auto;
  }
  
  .book-selector-btn {
    height: 48px;
  }
  
  .shalom-search-container {
    margin-top: 0.8rem;
    gap: 0.5rem;
  }
  
  .shalom-search-input,
  .shalom-search-button {
    height: 36px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .shalom-welcome .shalom-title,
  .shalom-welcome .shalom-subtitle,
  .book-selector-btn,
  .shalom-search-input,
  .shalom-search-button,
  .hero-verse,
  .hero-verse-ref {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus improvements for keyboard navigation */
.book-selector-btn:focus-visible,
.shalom-search-input:focus-visible,
.shalom-search-button:focus-visible {
  outline: 2px solid #9138e5;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(145, 56, 229, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .shalom-welcome .shalom-title,
  .shalom-welcome .shalom-subtitle {
    text-shadow: none;
  }
  
  .book-selector-btn {
    border-width: 2px;
  }
  
  .shalom-search-input {
    border-width: 2px;
    border-color: #333;
  }
}

/* Print styles */
@media print {
  .book-selector-btn,
  .shalom-search-container,
  .shalom-or {
    display: none;
  }
  
  .shalom-welcome .shalom-title,
  .shalom-welcome .shalom-subtitle,
  .hero-verse,
  .hero-verse-ref {
    color: #000 !important;
    text-shadow: none !important;
  }
}

