/* Fixes for UI Issues */

/* 1. Fix Hero Title Centering */
.hero-title {
  text-align: center !important;
  margin: 0 auto 1.5rem !important;
  display: block;
}

.hero {
  text-align: center;
}

/* 2. Fix Symbol Display Issues */
.heart-card {
  overflow: visible !important;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.heart-symbol {
  line-height: 1.3 !important;
  word-break: normal !important;
  white-space: normal !important;
  max-width: 100%;
  overflow-wrap: break-word;
}

.heart-card-wide {
  min-height: 160px;
}

.heart-card-wide .heart-symbol {
  font-size: 2rem;
}

.heart-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 1.2rem !important;
  padding: 0 0.5rem;
}

/* ASCII Art cards need special handling */
.heart-card pre.heart-symbol {
  font-size: 0.8rem !important;
  line-height: 1 !important;
  margin: 0.5rem 0;
  overflow-x: auto;
  max-width: 100%;
}

/* 3. Style Content Areas */
.content-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2.5rem;
  margin: 3rem 0;
}

.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #DC143C, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: #fff;
  position: relative;
  padding-left: 1rem;
}

.content-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, #DC143C, #FFD700);
  border-radius: 2px;
}

.content-section p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.content-section ul,
.content-section ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.content-section li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.content-section table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
  overflow: hidden;
}

.content-section table th {
  background: rgba(220, 20, 60, 0.2);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

/* Info Boxes */
.info-box {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(255, 215, 0, 0.05));
  border-left: 4px solid #DC143C;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.info-box h4 {
  color: #FFD700;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(220, 20, 60, 0.1);
  border-color: rgba(220, 20, 60, 0.3);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.feature-card h4 {
  color: #FFD700;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Code Blocks */
.code-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.code-block code {
  color: #FFD700;
  font-family: 'JetBrains Mono', monospace;
}

/* FAQ Section */
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(220, 20, 60, 0.3);
}

.faq-question {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.faq-answer {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
  .heart-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 0.75rem !important;
  }
  
  .heart-card {
    min-height: 100px;
    padding: 1rem 0.5rem;
  }
  
  .heart-symbol {
    font-size: 2rem !important;
  }
  
  .content-section {
    padding: 1.5rem;
  }
  
  .content-section h2 {
    font-size: 2rem;
  }
  
  .content-section h3 {
    font-size: 1.5rem;
  }
}

/* Ensure all sections have proper styling */
section:not(.hero):not(.heart-collection) {
  padding: 3rem 0;
}

/* Fix for any unstyled areas */
main > div,
main > section {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

main h2:not(.hero-title) {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin: 2rem 0 1.5rem;
  background: linear-gradient(135deg, #DC143C, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

main h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: #fff;
}

main p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* Ensure consistent styling across all pages */
body {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%) !important;
  min-height: 100vh;
}

/* Fix any overflow issues */
.container {
  overflow-x: hidden;
}

/* Ensure proper z-index stacking */
.header {
  z-index: 1000;
}

#toast {
  z-index: 2000;
}

.modal {
  z-index: 1500;
}