/* ============================================
   CSS CONSOLIDATION & FIXES
   ============================================
   
   This file consolidates and fixes all CSS issues:
   1. Removes "blue HTML lettering" problems
   2. Ensures proper text color hierarchy
   3. Fixes heading color inconsistencies
   4. Consolidates conflicting styles
   5. Improves readability and accessibility
   
   ============================================ */

/* ============================================
   GLOBAL TEXT COLOR FIXES
   ============================================ */

/* Ensure all text elements use proper theme colors */
body {
  color: var(--color-neutral-100, #f3f4f6);
}

/* Reset any blue default browser styles */
a {
  color: var(--color-accent-400, #fb923c);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-300, #fdba74);
}

/* ============================================
   HEADING COLOR OVERRIDES
   ============================================ */

/* Remove any blue tints from headings */
h1, h2, h3, h4, h5, h6,
.heading-1, .heading-2, .heading-3, .heading-4, .heading-5, .heading-6 {
  color: var(--color-neutral-50, #fafafa) !important;
}

/* Gradient text should use theme gradients, not blue */
.text-gradient-primary {
  background: linear-gradient(135deg, #7e22ce 0%, #9b5de5 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   PARAGRAPH & BODY TEXT FIXES
   ============================================ */

p {
  color: var(--color-neutral-200, #e5e7eb);
  margin: 0 0 1rem;
}

.body-large {
  color: var(--color-neutral-200, #e5e7eb) !important;
}

.body-small {
  color: var(--color-neutral-300, #d1d5db) !important;
}

.text-neutral-200 {
  color: var(--color-neutral-200, #e5e7eb) !important;
}

.text-neutral-300 {
  color: var(--color-neutral-300, #d1d5db) !important;
}

.text-neutral-400 {
  color: var(--color-neutral-400, #9ca3af) !important;
}

/* ============================================
   BUTTON & INTERACTIVE ELEMENT FIXES
   ============================================ */

button, .btn {
  color: var(--color-neutral-50, #fafafa);
  background: var(--color-accent-600, #ea580c);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover, .btn:hover {
  background: var(--color-accent-500, #f97316);
  transform: translateY(-1px);
}

/* Remove blue from focus states */
button:focus, .btn:focus,
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-accent-400, #fb923c);
  outline-offset: 2px;
}

/* ============================================
   CARD & PANEL FIXES
   ============================================ */

.card {
  background: var(--color-neutral-900, #18181b);
  border: 1px solid var(--color-neutral-800, #27272a);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-accent-600, #ea580c);
  box-shadow: 0 8px 32px rgb(234 88 12 / 20%);
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link:hover h3,
.card-link:hover .heading-4 {
  color: var(--color-accent-400, #fb923c) !important;
}

/* ============================================
   BADGE FIXES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-state {
  background: var(--color-neutral-800, #27272a);
  color: var(--color-neutral-200, #e5e7eb);
  border: 1px solid var(--color-neutral-700, #3f3f46);
}

.badge-sites {
  background: rgb(6 182 212 / 15%);
  color: #22d3ee;
  border: 1px solid rgb(6 182 212 / 30%);
}

.badge-pending {
  background: rgb(107 114 128 / 15%);
  color: #9ca3af;
  border: 1px solid rgb(107 114 128 / 30%);
}

.badge-verified {
  background: rgb(16 185 129 / 15%);
  color: #10b981;
  border: 1px solid rgb(16 185 129 / 30%);
}

/* ============================================
   SEARCH INPUT FIXES
   ============================================ */

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--color-neutral-100, #f3f4f6);
  background: var(--color-neutral-900, #18181b);
  border: 2px solid var(--color-neutral-800, #27272a);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-accent-500, #f97316);
  box-shadow: 0 0 0 3px rgb(249 115 22 / 10%);
  outline: none;
}

.search-input::placeholder {
  color: var(--color-neutral-500, #6b7280);
}

/* ============================================
   DATA STRIP FIXES
   ============================================ */

.data-strip {
  background: var(--color-neutral-900, #18181b);
  border-top: 1px solid var(--color-neutral-800, #27272a);
  border-bottom: 1px solid var(--color-neutral-800, #27272a);
  padding: 1rem 0;
}

.chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--color-neutral-800, #27272a);
  border: 1px solid var(--color-neutral-700, #3f3f46);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--color-neutral-700, #3f3f46);
  border-color: var(--color-accent-600, #ea580c);
  transform: translateY(-2px);
}

.chip-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-neutral-50, #fafafa);
}

.chip-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-neutral-400, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   ORG LOGO FIXES
   ============================================ */

.org-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  background: var(--color-neutral-800, #27272a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--color-neutral-700, #3f3f46);
  transition: all 0.3s ease;
}

.card:hover .org-logo-wrap {
  border-color: var(--brand-primary, var(--color-accent-600, #ea580c));
  box-shadow: 0 0 20px rgb(234 88 12 / 30%);
}

.org-logo-wrap.has-logo {
  background: white;
}

.org-logo-circle {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7e22ce 0%, #9b5de5 100%);
}

.org-initials {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}

/* ============================================
   SECTION FIXES
   ============================================ */

.section {
  padding: 3rem 0;
}

.section-sm {
  padding: 2rem 0;
}

.section-glass {
  background: linear-gradient(
    180deg,
    rgb(31 41 55 / 50%) 0%,
    rgb(17 24 39 / 80%) 100%
  );
  backdrop-filter: blur(10px);
}

/* ============================================
   GRID FIXES
   ============================================ */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

@media (width <= 768px) {
  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER FIXES
   ============================================ */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-neutral-800, #27272a);
  background: var(--color-neutral-950, #0a0a0a);
}

.footer-wrap {
  text-align: center;
}

/* ============================================
   REMOVE ALL BLUE DEFAULTS
   ============================================ */

/* Override any browser defaults that might use blue */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
  color: var(--color-neutral-100, #f3f4f6);
  background: var(--color-neutral-900, #18181b);
  border: 1px solid var(--color-neutral-700, #3f3f46);
}

/* Remove blue from HTML5 validation */
input:invalid,
textarea:invalid {
  box-shadow: none;
  border-color: var(--status-error, #ef4444);
}

input:valid,
textarea:valid {
  box-shadow: none;
}

/* Remove blue from selection */
::selection {
  background: rgb(249 115 22 / 30%);
  color: var(--color-neutral-50, #fafafa);
}

::selection {
  background: rgb(249 115 22 / 30%);
  color: var(--color-neutral-50, #fafafa);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.flex {
  display: flex;
}

.text-center {
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}
