/**
 * AVIHPSAM - Home Page Styles
 * Modern documentation style - clean, compact, readable
 */

/* ============================================
   HERO SECTION - Compact & Clean
   ============================================ */

.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  color: white;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

.hero-fullname {
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero .tagline {
  font-size: 1.25rem;
  font-family: var(--font-sanskrit);
  opacity: 0.9;
  margin-bottom: 4px;
}

.hero .subtitle {
  font-size: 0.9375rem;
  opacity: 0.8;
  font-style: italic;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: 10px 24px;
  font-size: 0.875rem;
  border-radius: 6px;
}

.hero-cta .btn-primary {
  background: #ffffff;
  color: #1e3a5f;
  border-color: #ffffff;
}

.hero-cta .btn-primary:hover {
  background: #f1f5f9;
  border-color: #f1f5f9;
}

.hero-cta .btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   USER MODE CARDS - Compact Grid
   ============================================ */

.user-modes {
  padding: 2rem 0;
  background: #f8fafc;
}

.user-modes h2 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 1.25rem;
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mode-card.active {
  border-color: var(--color-accent);
  background: rgba(46, 90, 76, 0.04);
}

.mode-card-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.mode-card-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.mode-card-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

/* ============================================
   KNOWLEDGE DOMAINS - Clean Cards
   ============================================ */

.domains {
  padding: 2.5rem 0;
  background: #ffffff;
}

.domains h2 {
  font-size: 1.375rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.domains > .container > p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.domain-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.domain-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.domain-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.domain-card-name-hindi {
  font-size: 0.8125rem;
  color: #64748b;
  font-family: var(--font-sanskrit);
  margin-bottom: 6px;
}

.domain-card-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.domain-card-count {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.6875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Flagged domain card */
.domain-card-flagged {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.domain-card-flagged:hover {
  border-color: #f87171;
}

.domain-card-flagged .domain-card-name {
  color: #dc2626;
}

/* ============================================
   FEATURED/RECENT TOPICS - Clean Cards
   ============================================ */

.featured {
  padding: 2rem 0;
}

.featured h2 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.featured > .container > p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.featured .topic-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.featured .topic-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.featured .topic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.featured .topic-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

.featured .tier-badge {
  font-size: 0.5625rem;
  padding: 2px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.featured .topic-card-overview {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured .topic-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.6875rem;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ============================================
   EVIDENCE STANDARDS - Compact List
   ============================================ */

.evidence-explainer {
  padding: 2rem 0;
  background: #f8fafc;
}

.evidence-explainer h2 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.evidence-explainer > .container > p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.evidence-tiers {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.evidence-tier-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.evidence-tier-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.evidence-tier-item:first-child {
  padding-top: 0;
}

.evidence-tier-item .tier-badge-full {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 100px;
  text-align: center;
}

.evidence-tier-item p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.evidence-explainer .btn-secondary {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  padding: 8px 20px;
}

/* ============================================
   CHAT CTA - Clean Banner
   ============================================ */

.chat-cta {
  padding: 2rem 0;
  background: #ffffff;
}

.chat-cta h2 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.chat-cta p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.chat-cta .btn-accent {
  font-size: 0.875rem;
  padding: 10px 24px;
  border-radius: 6px;
}

/* ============================================
   FOUR HOUSES - Compact Cards
   ============================================ */

.four-houses {
  padding: 2rem 0;
  background: #f8fafc;
}

.four-houses h2 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.four-houses > .container > p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.four-houses .card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem 1rem;
  transition: all 0.2s ease;
}

.four-houses .card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.four-houses .card h3 {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 2px;
}

.four-houses .card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.four-houses .card .text-muted {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 8px;
}

.four-houses .card .text-sm {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.5;
}

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

@media (max-width: 1024px) {
  .mode-cards,
  .houses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .domain-grid,
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 0 1.75rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .tagline {
    font-size: 1.125rem;
  }

  .mode-cards,
  .houses-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mode-card {
    flex-direction: row;
    text-align: left;
    padding: 1rem;
    gap: 12px;
  }

  .mode-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .mode-card-content {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .domain-grid,
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 8px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .evidence-tier-item {
    flex-direction: column;
    gap: 6px;
  }

  .evidence-tier-item .tier-badge-full {
    min-width: auto;
  }
}

/* ============================================
   SECTION OVERRIDES
   ============================================ */

.section {
  padding: 2rem 0;
}

.section-alt {
  background: #f8fafc;
}

.section h2 {
  font-size: 1.25rem;
}

.section .text-light,
.section .text-muted {
  font-size: 0.875rem;
}

/* ============================================
   TIER BADGES
   ============================================ */

.tier-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tier-badge-full {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 100px;
  text-align: center;
}

.tier-1a, .tier-1b, .tier-1c {
  background: #dcfce7;
  color: #166534;
}

.tier-2 {
  background: #fef3c7;
  color: #92400e;
}

.tier-3 {
  background: #dbeafe;
  color: #1e40af;
}

.tier-4 {
  background: #fee2e2;
  color: #991b1b;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-accent {
  background: var(--color-accent);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-accent:hover {
  background: #234a3e;
}
