/* ================================================================
   ENHANCED CSS FIXES FOR PSALMS MESSIANIC HUB PAGE
   Incorporates patterns from global-v2.css for consistency
   ================================================================ */

/* ========================================
   1. APPLY GLOBAL CARD HOVER EFFECTS
   ======================================== */

/* Make structure sections behave like theology cards */
.structure-section {
  background: linear-gradient(135deg, rgba(123,31,162,.08), rgba(123,31,162,.03));
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid rgba(123,31,162,.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  
  /* Add global card transitions */
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
}

@media (hover: hover) {
  .structure-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(123,31,162,.15);
  }
}

/* Timeline nodes should have theology card hover */
.timeline-node {
  flex: 0 0 auto;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 200px;
  text-align: center;
  border: 2px solid;
  position: relative;
  
  /* Use global transitions */
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
}

@media (hover: hover) {
  .timeline-node:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  }
}

/* Venn circles with card hover */
.venn-circle {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 3px solid;
  
  /* Add global transitions */
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
}

@media (hover: hover) {
  .venn-circle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
  }
}


/* ========================================
   2. USE GLOBAL PANEL STYLING
   ======================================== */

/* Apply .panel class styling to explanation boxes */
.structure-grid + .panel,
.timeline-flow + .panel,
.venn-container + .panel {
  background: var(--panel, #f8fafc);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  
  /* Add subtle border */
  border: 1px solid var(--border-light, #e5e7eb);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.05);
}

.structure-grid + .panel h4,
.timeline-flow + .panel h4,
.venn-container + .panel h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--accent-purple, #7209b7);
  font-weight: 700;
}


/* ========================================
   3. ENHANCED CONTAINER STYLING
   ======================================== */

.psalms-structure,
.pattern-timeline,
.portrait-venn,
.inclusio-visual,
.chiastic-structure {
  /* Use global theology-card base */
  background: var(--bg, #ffffff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.05);
  
  /* Add hover if applicable */
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Override specific colored borders */
.psalms-structure {
  border: 2px solid #7b1fa2;
}

.pattern-timeline {
  background: linear-gradient(135deg, rgba(249,168,37,.08), rgba(249,168,37,.03));
  border: 2px solid rgba(249,168,37,.3);
}

.portrait-venn {
  background: linear-gradient(135deg, rgba(21,101,192,.05), rgba(198,40,40,.05));
  border: 2px solid rgba(21,101,192,.2);
}

.inclusio-visual {
  background: linear-gradient(135deg, rgba(198,40,40,.05), rgba(198,40,40,.02));
  border: 2px solid rgba(198,40,40,.2);
}

.chiastic-structure {
  border: 2px solid #c62828;
}


/* ========================================
   4. IMPROVED STRUCTURE GRID
   ======================================== */

.structure-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.structure-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #6a1b9a;
  font-weight: 700;
}

.structure-section ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  flex-grow: 1;
}

.structure-section li {
  margin: 0.3rem 0;
}

.structure-section p {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
  border-top: 1px solid rgba(123,31,162,.15);
}

.structure-center {
  background: linear-gradient(135deg, #7b1fa2, #8e24aa);
  color: white;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 
    0 8px 25px rgba(123,31,162,.3),
    0 0 0 8px rgba(123,31,162,.1);
  animation: pulse-center 3s ease-in-out infinite;
  align-self: center;
}

.structure-center .psalm-num {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.structure-center .psalm-desc {
  font-size: 0.75rem;
  opacity: 0.9;
  text-align: center;
  line-height: 1.2;
}

@keyframes pulse-center {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 8px 25px rgba(123,31,162,.3),
      0 0 0 8px rgba(123,31,162,.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 12px 35px rgba(123,31,162,.4),
      0 0 0 12px rgba(123,31,162,.15);
  }
}


/* ========================================
   5. ENHANCED TIMELINE WITH GLOBAL PATTERNS
   ======================================== */

.timeline-flow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1.5rem 0;
}

.timeline-node::after {
  content: '→';
  position: absolute;
  right: -2.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  font-weight: bold;
  opacity: 0.5;
  color: currentColor;
  transition: opacity 0.3s ease;
}

.timeline-node:hover::after {
  opacity: 0.8;
}

.timeline-node:last-child::after {
  content: '';
  display: none;
}

.timeline-node .node-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: currentColor;
  color: white;
  line-height: 40px;
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  
  /* Add subtle animation */
  transition: transform 0.3s ease;
}

.timeline-node:hover .node-number {
  transform: scale(1.1);
}

.timeline-node h4 {
  margin: 0 0 0.6rem 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-node p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.5;
}


/* ========================================
   6. COMPARISON CARDS WITH GLOBAL STYLING
   ======================================== */

.comparison-card {
  background: var(--bg, white);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-light, #e5e7eb);
  
  /* Use global transitions */
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
}

@media (hover: hover) {
  .comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }
}


/* ========================================
   7. REFERENCE CARDS WITH ENHANCED STYLING
   ======================================== */

.ref-card-enhanced {
  background: var(--bg, white);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-light, #e5e7eb);
  
  /* Use global transitions */
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
}

@media (hover: hover) {
  .ref-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
    border-color: var(--accent-blue, #1565c0);
  }
}


/* ========================================
   8. SIGNIFICANCE PANELS
   ======================================== */

.significance-panel {
  background: var(--bg, white);
  border-radius: 16px;
  padding: 1.75rem;
  border: 2px solid var(--border-light, #e5e7eb);
  
  /* Use global transitions */
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
}

@media (hover: hover) {
  .significance-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
    border-color: #cbd5e1;
  }
}


/* ========================================
   9. COLOR GUIDE BOX ENHANCEMENT
   ======================================== */

.color-guide {
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.25rem;
  
  /* Use key-insight styling from global */
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left: 4px solid var(--accent-blue, #3b82f6);
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.05);
}

.color-guide p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

.color-guide strong {
  color: #1e40af;
}


/* ========================================
   10. CHIASM ENHANCEMENTS
   ======================================== */

.chiasm-line {
  display: flex;
  align-items: center;
  margin: 0.75rem 0;
  
  /* Add global transition */
  transition: all 0.2s ease;
}

.chiasm-line:hover {
  transform: translateX(8px);
  background: rgba(198,40,40,.05);
  border-radius: 8px;
  padding: 0.25rem 0;
}

.chiasm-text {
  background: linear-gradient(135deg, rgba(198,40,40,.08), rgba(198,40,40,.03));
  padding: 0.75rem 1rem;
  border-radius: 8px;
  flex: 1;
  font-size: 0.9rem;
  border-left: 3px solid #c62828;
  
  /* Add transition */
  transition: all 0.2s ease;
}

.chiasm-line:hover .chiasm-text {
  background: linear-gradient(135deg, rgba(198,40,40,.12), rgba(198,40,40,.06));
  border-left-width: 4px;
}

.chiasm-center {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(198,40,40,.15), rgba(198,40,40,.08));
  border-radius: 12px;
  border: 3px solid #c62828;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  
  /* Add box shadow from global */
  box-shadow: 0 4px 6px -1px rgba(198,40,40,.1);
}


/* ========================================
   11. PAGE CARDS WITH BETTER SHADOWS
   ======================================== */

.page-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  
  /* Use global shadow utilities */
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

@media (hover: hover) {
  .page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,.2);
  }
}


/* ========================================
   12. MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {
  .structure-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .structure-center {
    order: -1;
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
  }

  .structure-section {
    min-height: auto;
  }

  .timeline-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .timeline-node {
    min-width: 100%;
  }

  .timeline-node::after {
    content: '↓';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.5rem;
    transform: translateX(-50%);
    font-size: 1.5rem;
  }

  .timeline-node:last-child::after {
    display: none;
  }

  .psalms-structure,
  .pattern-timeline,
  .portrait-venn {
    padding: 2rem 1.5rem;
  }
  
  /* Disable hover effects on mobile */
  .structure-section,
  .timeline-node,
  .venn-circle,
  .comparison-card,
  .ref-card-enhanced,
  .significance-panel,
  .page-card {
    transform: none !important;
  }
}


/* ========================================
   13. ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Better focus states */
.timeline-node:focus,
.structure-section:focus,
.venn-circle:focus,
.comparison-card:focus,
.page-card:focus {
  outline: 2px solid var(--accent-blue, #1565c0);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .structure-section,
  .timeline-node,
  .venn-circle,
  .comparison-card,
  .ref-card-enhanced,
  .significance-panel,
  .page-card,
  .chiasm-line,
  .timeline-node .node-number {
    transition: none;
    animation: none;
  }
  
  .structure-center {
    animation: none;
  }
}


/* ========================================
   14. PRINT OPTIMIZATION
   ======================================== */

@media print {
  .structure-section,
  .timeline-node,
  .venn-circle,
  .psalms-structure,
  .pattern-timeline {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #000;
  }
  
  .structure-center {
    animation: none;
  }
  
  .timeline-node::after {
    color: #000;
    opacity: 1;
  }
}

/* ============================================
   PSALM PROFILE PAGE EXTENSIONS
   Add this section to psalms-hub-enhanced-fixes.css
   ============================================ */

/* Hero Variants - Torah Blue Theme (Psalm 1) */
.pc-hero.torah-blue {
  background:
    radial-gradient(ellipse 120% 80% at 15% 10%, rgba(255,255,255,.15), transparent 50%),
    radial-gradient(ellipse 100% 70% at 85% 5%, rgba(255,255,255,.1), transparent 50%),
    linear-gradient(135deg, #0d47a1 0%, #1565c0 25%, #1976d2 50%, #1e88e5 75%, #42a5f5 100%);
}

/* Theology Card Variants for Comparisons */
.theology-card.comparison-ashrey {
  border-color: #4caf50;
  background: linear-gradient(135deg, rgba(76,175,80,.08), white);
}

.theology-card.comparison-ashrey h4 { color: #2e7d32; }
.theology-card.comparison-ashrey .hebrew-large {
  color: #4caf50;
  font-size: 2rem;
  text-align: center;
  margin: 1rem 0;
  display: block;
  direction: rtl;
}

.theology-card.comparison-barukh {
  border-color: #ff9800;
  background: linear-gradient(135deg, rgba(255,152,0,.08), white);
}

.theology-card.comparison-barukh h4 { color: #f57c00; }
.theology-card.comparison-barukh .hebrew-large {
  color: #ff9800;
  font-size: 2rem;
  text-align: center;
  margin: 1rem 0;
  display: block;
  direction: rtl;
}

/* Hyperlink Cards - extends theology-card */
.theology-card.hyperlink-card {
  background: linear-gradient(135deg, rgba(21,101,192,.05), white);
  border-color: rgba(21,101,192,.2);
}

.theology-card.hyperlink-card:hover {
  border-color: #1565c0;
}

.hyperlink-reference {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 0.75rem;
  display: block;
}

.hyperlink-text {
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(21,101,192,.05);
  border-left: 3px solid #1565c0;
  border-radius: 4px;
}

.hyperlink-connection {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #333;
}

.hyperlink-connection strong { color: #1565c0; }

/* Hebrew Word Study Cards */
.theology-card.hebrew-word-study {
  position: relative;
  overflow: hidden;
}

.theology-card.hebrew-word-study::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #1565c0, #42a5f5);
}

.hebrew-word {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #1565c0;
  display: block;
  text-align: center;
  direction: rtl;
}

.hebrew-transliteration {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1976d2;
  margin-bottom: 0.5rem;
  display: block;
}

.hebrew-definition {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
  display: block;
}

.hebrew-content {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #333;
}

.hebrew-content p { margin: 0.75rem 0; }
.hebrew-content ul { margin: 0.5rem 0 0 1.25rem; }
.hebrew-content li { margin: 0.4rem 0; }

/* Tree Visual Components */
.tree-visual {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(21,101,192,.05), rgba(76,175,80,.05));
  border-radius: 16px;
  border: 2px solid rgba(21,101,192,.2);
}

.tree-visual h3 {
  text-align: center;
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  color: #1565c0;
}

.tree-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin: 1.5rem 0;
}

.tree-side {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  border: 2px solid;
}

.tree-righteous {
  border-color: #4caf50;
  background: linear-gradient(135deg, rgba(76,175,80,.1), white);
}

.tree-righteous h4 { color: #2e7d32; }

.tree-wicked {
  border-color: #f44336;
  background: linear-gradient(135deg, rgba(244,67,54,.1), white);
}

.tree-wicked h4 { color: #c62828; }

.tree-side h4 {
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tree-side ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.tree-side li { margin: 0.4rem 0; }

.tree-middle {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 8px 25px rgba(21,101,192,.3);
  animation: pulse-tree 3s ease-in-out infinite;
}

@keyframes pulse-tree {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(21,101,192,.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(21,101,192,.4);
  }
}

/* Progression Visual */
.progression-visual {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(244,67,54,.08), rgba(244,67,54,.03));
  border-radius: 16px;
  border: 2px solid rgba(244,67,54,.2);
}

.progression-visual h3 {
  text-align: center;
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  color: #c62828;
}

.progression-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.progression-step {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid;
  position: relative;
  transition: all 0.3s ease;
}

.progression-step::after {
  content: '↓';
  position: absolute;
  right: -1.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: bold;
  color: #c62828;
  opacity: 0.6;
}

.progression-step:last-child::after { content: ''; }

.step-walk {
  border-color: #ff9800;
  background: linear-gradient(135deg, rgba(255,152,0,.08), white);
}

.step-stand {
  border-color: #ff5722;
  background: linear-gradient(135deg, rgba(255,87,34,.08), white);
}

.step-sit {
  border-color: #f44336;
  background: linear-gradient(135deg, rgba(244,67,54,.08), white);
}

.progression-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}

.step-hebrew {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
  direction: rtl;
}

.step-walk .step-hebrew { color: #f57c00; }
.step-stand .step-hebrew { color: #e64a19; }
.step-sit .step-hebrew { color: #d32f2f; }

.step-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.step-description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

/* Messianic Content Grid */
.messianic-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.messianic-dimension {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid #7b1fa2;
}

.messianic-dimension h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  color: #7b1fa2;
  font-weight: 700;
}

.messianic-dimension p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .tree-container {
    grid-template-columns: 1fr;
  }

  .tree-middle {
    order: -1;
    margin: 0 auto;
  }

  .progression-steps {
    grid-template-columns: 1fr;
  }

  .progression-step::after {
    content: '↓';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.75rem;
    transform: translateX(-50%);
  }
}
/* ============================================
   PSALM 1 SPECIFIC ENHANCEMENTS
   Add to END of psalms-hub-enhanced-fixes.css
   Safe - no conflicts with hub or existing styles
   ============================================ */

/* Continue Study Section - Psalm 1 Specific */
.psalm1-continue {
  background: linear-gradient(135deg, rgba(21,101,192,.08), rgba(21,101,192,.03));
  border: 2px solid rgba(21,101,192,.25);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
}

.psalm1-continue h3 {
  color: #1565c0;
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  text-align: center;
  font-weight: 700;
}

/* Grid for next Psalm links */
.psalm1-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.psalm1-link-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: white;
  border: 2px solid rgba(21,101,192,.2);
  border-radius: 14px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  min-height: 160px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.psalm1-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(21,101,192,.25);
  border-color: #1565c0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.psalm1-link-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.psalm1-link-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1565c0;
  line-height: 1.3;
}

.psalm1-link-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 0.75rem;
}

.psalm1-link-arrow {
  align-self: flex-end;
  color: #1565c0;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.psalm1-link-card:hover .psalm1-link-arrow {
  transform: translateX(6px);
}

/* Sources Section - Psalm 1 Specific */
.psalm1-sources {
  background: white;
  border: 2px solid rgba(21,101,192,.2);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.psalm1-sources h3 {
  color: #1565c0;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.psalm1-sources-intro {
  background: rgba(21,101,192,.05);
  border-left: 4px solid #1565c0;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.psalm1-sources-intro p {
  margin: 0.5rem 0;
}

.psalm1-source-category {
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(21,101,192,.2);
}

.psalm1-source-category h4 {
  color: #1565c0;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
}

.psalm1-source-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 1rem;
}

.psalm1-source-item {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 4px solid #1565c0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: all 0.2s ease;
}

.psalm1-source-item:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(21,101,192,.15);
  border-left-width: 6px;
}

.psalm1-source-item strong {
  color: #1565c0;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.psalm1-source-item p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}

.psalm1-source-item em {
  font-style: italic;
  color: #666;
}

/* Torah Meditation Enhancement */
.torah-meditation-box {
  background: linear-gradient(135deg, rgba(76,175,80,.08), rgba(76,175,80,.03));
  border: 2px solid rgba(76,175,80,.3);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.torah-meditation-box h4 {
  color: #2e7d32;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.torah-meditation-box .hebrew-large {
  display: block;
  text-align: center;
  font-size: 2rem;
  color: #4caf50;
  margin: 1rem 0;
  direction: rtl;
}

.torah-meditation-box p {
  line-height: 1.7;
  margin: 0.75rem 0;
}

/* Blessing Formula Box */
.blessing-formula {
  background: white;
  border: 3px solid #4caf50;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(76,175,80,.15);
}

.blessing-formula .hebrew-large {
  font-size: 2.5rem;
  color: #2e7d32;
  display: block;
  margin-bottom: 1rem;
  direction: rtl;
}

.blessing-formula .transliteration {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4caf50;
  margin-bottom: 0.5rem;
  display: block;
}

.blessing-formula .translation {
  font-size: 1rem;
  color: #666;
  font-style: italic;
  display: block;
}

/* Meditation vs Scheming Comparison */
.meditation-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(21,101,192,.03);
  border-radius: 16px;
}

.meditation-side {
  background: white;
  border-radius: 14px;
  padding: 1.75rem;
  border: 2px solid;
}

.meditation-righteous {
  border-color: #4caf50;
}

.meditation-wicked {
  border-color: #f44336;
}

.meditation-side h4 {
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.meditation-righteous h4 { color: #2e7d32; }
.meditation-wicked h4 { color: #c62828; }

.meditation-divider {
  font-size: 3rem;
  color: #1565c0;
  font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .psalm1-continue,
  .psalm1-sources {
    padding: 1.5rem 1rem;
    margin: 2rem -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .psalm1-next-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .psalm1-link-card {
    min-height: 140px;
    padding: 1.25rem;
  }
  
  .meditation-comparison {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .meditation-divider {
    display: none;
  }
  
  .torah-meditation-box,
  .blessing-formula {
    padding: 1.5rem;
  }
}

/* Print Optimization */
@media print {
  .psalm1-continue,
  .psalm1-link-card,
  .psalm1-sources {
    page-break-inside: avoid;
    box-shadow: none !important;
  }
  
  .psalm1-link-card:hover,
  .psalm1-source-item:hover {
    transform: none;
  }
}
/* ============================================
   PSALM 1 ADDITIONAL ENHANCEMENTS
   Add after previous Psalm 1 additions
   ============================================ */

/* ========================================
   1. HEBREW WORD INTERACTIVE ENHANCEMENT
   Better hover states for learning Hebrew
   ======================================== */

.hebrew-interactive {
  position: relative;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: help;
}

.hebrew-interactive:hover {
  background: rgba(21,101,192,.1);
  transform: scale(1.05);
}

.hebrew-interactive .hebrew-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: #1565c0;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(21,101,192,.3);
  pointer-events: none;
}

.hebrew-interactive:hover .hebrew-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.hebrew-interactive .hebrew-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1565c0;
}

/* For displaying transliteration */
.hebrew-interactive .transliteration {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* For displaying meaning */
.hebrew-interactive .meaning {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ========================================
   2. DAY AND NIGHT MEDITATION VISUAL
   Emphasizes continuous meditation theme
   ======================================== */

.meditation-cycle {
  background: linear-gradient(135deg, #1a237e 0%, #283593 25%, #5c6bc0 50%, #90caf9 75%, #fff9c4 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.meditation-cycle::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.meditation-cycle h4 {
  color: white;
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.day-night-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.time-period {
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 1.75rem;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.time-period-icon {
  font-size: 3rem;
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.time-period h5 {
  margin: 0 0 0.75rem 0;
  color: #1565c0;
  font-size: 1.1rem;
  text-align: center;
}

.time-period .hebrew-emphasis {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  color: #1565c0;
  margin: 0.75rem 0;
  direction: rtl;
}

.time-period p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================================
   3. LITERARY STRUCTURE VISUALIZATION
   Shows the A-B-C-B'-A' pattern clearly
   ======================================== */

.structure-visual {
  background: white;
  border: 2px solid #1565c0;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
}

.structure-visual h4 {
  color: #1565c0;
  margin: 0 0 2rem 0;
  text-align: center;
  font-size: 1.2rem;
}

.structure-pattern {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.structure-line {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.structure-line:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(21,101,192,.15);
}

.structure-line.opening {
  background: linear-gradient(135deg, rgba(76,175,80,.15), rgba(76,175,80,.05));
  border-left: 5px solid #4caf50;
}

.structure-line.contrast {
  background: linear-gradient(135deg, rgba(255,152,0,.15), rgba(255,152,0,.05));
  border-left: 5px solid #ff9800;
}

.structure-line.center {
  background: linear-gradient(135deg, rgba(21,101,192,.2), rgba(21,101,192,.08));
  border-left: 5px solid #1565c0;
  font-weight: 600;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(21,101,192,.2);
}

.structure-label {
  font-weight: 700;
  color: #1565c0;
  min-width: 60px;
  font-size: 0.9rem;
}

.structure-content {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.verse-ref {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  margin-left: auto;
  padding-left: 1rem;
}

/* ========================================
   4. STREAMS OF WATER VISUALIZATION
   Connects to Jeremiah 17 and other prophets
   ======================================== */

.streams-parallel {
  background: linear-gradient(135deg, rgba(33,150,243,.08), rgba(33,150,243,.02));
  border: 2px solid rgba(33,150,243,.3);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.streams-parallel h4 {
  color: #1565c0;
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  text-align: center;
}

.stream-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stream-passage {
  background: white;
  border-left: 4px solid #2196f3;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: all 0.3s ease;
}

.stream-passage:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(33,150,243,.2);
}

.stream-passage-ref {
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 0.75rem;
  display: block;
  font-size: 1rem;
}

.stream-passage-text {
  font-style: italic;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.stream-passage-connection {
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.stream-passage-connection strong {
  color: #1565c0;
}

/* ========================================
   5. JUDGMENT SCENE ENHANCEMENT
   Makes verses 4-5 more vivid
   ======================================== */

.judgment-scene {
  background: linear-gradient(135deg, rgba(244,67,54,.12), rgba(244,67,54,.04));
  border: 3px solid rgba(244,67,54,.3);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.judgment-scene::before {
  content: '⚖️';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 4rem;
  opacity: 0.15;
}

.judgment-scene h4 {
  color: #c62828;
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
}

.judgment-elements {
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.judgment-element {
  background: white;
  border-left: 4px solid #f44336;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.judgment-element-title {
  font-weight: 700;
  color: #c62828;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.judgment-element-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}

.judgment-element .hebrew-inline {
  font-size: 1.1rem;
  padding: 0.2rem 0.4rem;
  background: rgba(244,67,54,.1);
  border-radius: 4px;
}

/* ========================================
   6. TORAH AS DELIGHT EMPHASIS
   Highlights the positive joy aspect
   ======================================== */

.torah-delight {
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
  border: 3px solid #fbc02d;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(251,192,45,.2);
}

.torah-delight-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.torah-delight h4 {
  color: #f57f17;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.torah-delight .hebrew-large {
  font-size: 2.5rem;
  color: #f57f17;
  display: block;
  margin: 1rem 0;
  direction: rtl;
}

.torah-delight .definition {
  font-size: 1.1rem;
  color: #f57f17;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.torah-delight-content {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

/* ========================================
   7. RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .day-night-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .meditation-cycle {
    padding: 1.5rem;
  }
  
  .stream-comparison {
    grid-template-columns: 1fr;
  }
  
  .structure-line {
    padding: 0.75rem 1rem;
  }
  
  .structure-line:hover {
    transform: translateX(4px);
  }
  
  .judgment-scene,
  .torah-delight,
  .streams-parallel,
  .structure-visual {
    padding: 1.5rem;
  }
  
  .hebrew-interactive .hebrew-tooltip {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    white-space: normal;
    max-width: 280px;
  }
  
  .hebrew-interactive:hover .hebrew-tooltip {
    transform: translateX(-50%);
  }
}

/* ========================================
   8. PRINT OPTIMIZATION
   ======================================== */

@media print {
  .meditation-cycle,
  .judgment-scene,
  .torah-delight,
  .streams-parallel {
    page-break-inside: avoid;
    box-shadow: none !important;
  }
  
  .structure-line:hover,
  .stream-passage:hover {
    transform: none;
  }
  
  .torah-delight-icon {
    animation: none;
  }
  
  .hebrew-interactive .hebrew-tooltip {
    position: static;
    visibility: visible;
    opacity: 1;
    display: inline;
    background: transparent;
    color: #000;
    box-shadow: none;
    font-size: 0.75rem;
  }
  
  .hebrew-interactive .hebrew-tooltip::after {
    display: none;
  }
}

