/**
 * AVIHPSAM - Static Pages Styles (Search, About, Methodology)
 * Modern documentation style - clean, compact, readable
 */

/* ============================================
   PAGE HEADER - Compact clean banner
   ============================================ */

.page-header-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  margin-bottom: 0;
}

.page-header-banner h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.page-header-banner p {
  font-size: 0.875rem;
  opacity: 0.85;
  margin: 0;
}

/* ============================================
   SEARCH PAGE
   ============================================ */

.search-page {
  background: #fff;
  min-height: calc(100vh - 200px);
}

.search-form-container {
  background: #f8fafc;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.search-form-inner {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-row {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.9375rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.search-submit {
  padding: 10px 20px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-submit:hover {
  background: #1e3a5f;
}

.search-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 8px;
}

.search-hint kbd {
  padding: 2px 5px;
  background: #e2e8f0;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.6875rem;
}

.search-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.search-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-filter-group label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.search-filter-group select {
  padding: 6px 10px;
  font-size: 0.8125rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
}

/* Search Results */
.search-results-container {
  padding: 1.25rem 0;
}

.results-count {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.search-results-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-card {
  display: block;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.result-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
}

.result-card-sanskrit {
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-family: var(--font-sanskrit);
  margin-bottom: 4px;
}

.result-card-tagline {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 8px;
}

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

/* No Results */
.no-results {
  text-align: center;
  padding: 2rem;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 8px;
}

.no-results-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 4px;
}

.no-results p {
  font-size: 0.8125rem;
  color: #64748b;
}

/* Browse Section */
.browse-section {
  padding: 1.5rem 0;
  background: #f8fafc;
}

.browse-section h3 {
  font-size: 1rem;
  color: #1e293b;
  text-align: center;
  margin-bottom: 1rem;
}

.browse-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.8125rem;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.browse-chip:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.browse-chip-icon {
  font-size: 0.875rem;
}

/* ============================================
   METHODOLOGY & ABOUT PAGES
   ============================================ */

.content-page {
  background: #fff;
}

.content-page-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

.content-section {
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.content-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0.75rem;
}

.content-section ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.content-section li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 0.5rem;
}

/* Tier Cards */
.tier-card {
  border-left: 4px solid #e2e8f0;
  padding: 1rem;
  background: #fafbfc;
  border-radius: 0 6px 6px 0;
  margin-bottom: 10px;
}

.tier-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.tier-card p {
  font-size: 0.8125rem;
  margin-bottom: 6px;
}

.tier-card ul {
  font-size: 0.8125rem;
  padding-left: 1rem;
}

.tier-card.tier-1 { border-left-color: #22c55e; }
.tier-card.tier-2 { border-left-color: #f59e0b; }
.tier-card.tier-3 { border-left-color: #3b82f6; }
.tier-card.tier-4 { border-left-color: #ef4444; }

/* Pramana Grid */
.pramana-section {
  background: #f8fafc;
  margin: 0 -1.5rem;
  padding: 1.5rem;
}

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

.pramana-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.pramana-card .sanskrit-title {
  font-size: 1.25rem;
  color: var(--color-accent);
  font-family: var(--font-sanskrit);
  margin-bottom: 2px;
}

.pramana-card h4 {
  font-size: 0.875rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.pramana-card p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 8px;
}

.pramana-card .example {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-style: italic;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

/* Process Flow */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  padding: 0.75rem;
}

.process-step-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.process-step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.process-step-desc {
  font-size: 0.6875rem;
  color: #64748b;
}

.process-arrow {
  font-size: 1.25rem;
  color: #94a3b8;
}

/* Houses Grid */
.houses-section {
  background: #f8fafc;
  margin: 0 -1.5rem;
  padding: 1.5rem;
}

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

.house-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.house-card .sanskrit-title {
  font-size: 1.125rem;
  color: var(--color-accent);
  font-family: var(--font-sanskrit);
  text-align: center;
  margin-bottom: 2px;
}

.house-card h4 {
  font-size: 0.875rem;
  color: #1e293b;
  text-align: center;
  margin-bottom: 8px;
}

.house-card p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* Standards Grid */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.standard-item {
  display: flex;
  gap: 10px;
  padding: 0.875rem;
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.standard-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.standard-item strong {
  font-size: 0.875rem;
  color: #1e293b;
  display: block;
  margin-bottom: 2px;
}

.standard-item p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Contact Section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  font-size: 0.875rem;
  color: #475569;
}

.contact-item a {
  color: var(--color-accent);
}

/* Highlight Card */
.highlight-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.highlight-card p {
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
}

.cta-section h2 {
  font-size: 1.125rem;
  margin-bottom: 6px;
  border: none;
  padding: 0;
}

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

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

/* ============================================
   CHAT PAGE
   ============================================ */

.chat-page-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  padding: 0.75rem 1rem;
}

.chat-page-header h1 {
  font-size: 1rem;
  color: white;
}

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

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

  .houses-grid,
  .standards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-header-banner {
    padding: 1.25rem 0;
  }

  .page-header-banner h1 {
    font-size: 1.25rem;
  }

  .content-page-body {
    padding: 1rem;
  }

  .pramana-grid {
    grid-template-columns: 1fr;
  }

  .search-input-row {
    flex-direction: column;
  }

  .search-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-filter-group {
    justify-content: space-between;
  }

  .process-flow {
    flex-direction: column;
    gap: 0.5rem;
  }

  .process-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================
   TIER BADGES (shared)
   ============================================ */

.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-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;
}
