/* Global Fixes Applied to All Pages */

/* Ensure main titles are centered */
h1, .hero-title {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Fix pre elements in heart cards */
pre.heart-symbol {
  font-size: 0.7rem !important;
  line-height: 1 !important;
  margin: 0.5rem 0 !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  white-space: pre !important;
  font-family: monospace !important;
}

/* Ensure heart cards don't clip content */
.heart-card {
  overflow: visible !important;
  min-height: 140px !important;
}

/* Big symbols need more space */
.heart-card-wide pre.heart-symbol {
  font-size: 0.6rem !important;
}

/* Fix grid spacing for better display */
.heart-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 1.5rem !important;
}

/* Ensure all text is readable */
body {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Fix any missing background issues */
main {
  background: transparent !important;
}

/* Ensure sections have proper spacing */
section {
  padding: 3rem 0 !important;
}

/* Blog styles consistency */
.blog-container {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1rem !important;
  padding: 2rem !important;
}

/* Ensure lucide icons load properly */
svg[data-lucide] {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .heart-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 1rem !important;
  }
  
  .heart-card {
    min-height: 120px !important;
  }
  
  pre.heart-symbol {
    font-size: 0.6rem !important;
  }
}