/* RoktoLagbe — Blood Donor Finder shared styles
   Uses central design tokens. NO hardcoded colors. */

.rokto-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  text-align: center;
}
.rokto-hero-inner { max-width: 760px; margin: 0 auto; }
.rokto-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.rokto-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--heading);
}
.rokto-accent { color: var(--heading); display: block; }
.rokto-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  margin: 0 auto 1.75rem;
  max-width: 600px;
  line-height: 1.55;
}
.rokto-hero-cta {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.rokto-cta-primary, .rokto-cta-secondary {
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  min-width: 200px;
}
.rokto-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.rokto-stat strong {
  display: block;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.rokto-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Blood group cards */
.rokto-blood-grid { margin-bottom: 3rem; }
.rokto-blood-grid h2 { text-align: center; margin-bottom: 0.5rem; }
.rokto-section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.rokto-bg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
}
.rokto-bg-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 0.85rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.rokto-bg-card:hover {
  transform: translateY(-2px);
  border-color: var(--heading);
  background: var(--bg);
}
.rokto-bg-letter {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.25rem;
}
.rokto-bg-card small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.rokto-bg-card--special {
  border-color: var(--heading);
  background: var(--bg);
}
.rokto-bg-card--special small { color: var(--heading); font-weight: 600; }

/* How it works */
.rokto-how { margin-bottom: 3rem; }
.rokto-how h2 { text-align: center; margin-bottom: 1.75rem; }
.rokto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.rokto-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.rokto-step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  background: var(--heading);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}
.rokto-step h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--heading); }
.rokto-step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* CTA band */
.rokto-cta-band {
  background: var(--accent);
  color: var(--accent-text);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: 16px;
  text-align: center;
  margin: 2.5rem 0;
}
.rokto-cta-inner { max-width: 600px; margin: 0 auto; }
.rokto-cta-band h2 { color: var(--accent-text); margin: 0 0 0.85rem; }
.rokto-cta-band p { color: var(--accent-text); opacity: 0.9; margin: 0 0 1.5rem; line-height: 1.55; }

/* Form layouts (register, request, search) */
.rokto-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.rokto-form-card h1 { margin-top: 0; }
.rokto-field {
  display: block;
  margin-bottom: 1.25rem;
}
.rokto-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--heading);
  font-size: 0.95rem;
}
.rokto-field input,
.rokto-field select,
.rokto-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.rokto-field input:focus,
.rokto-field select:focus,
.rokto-field textarea:focus {
  outline: none;
  border-color: var(--heading);
}
.rokto-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.rokto-help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.rokto-error {
  background: var(--surface);
  border: 1.5px solid var(--heading);
  border-left-width: 4px;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  color: var(--heading);
  font-size: 0.92rem;
  margin: 1rem 0;
}
.rokto-success {
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1rem 0;
  text-align: center;
}

/* Donor result list */
.rokto-search-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.rokto-search-bar select,
.rokto-search-bar input {
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
}
.rokto-results {
  display: grid;
  gap: 0.85rem;
}
.rokto-donor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
.rokto-donor-bg {
  width: 56px;
  height: 56px;
  background: var(--heading);
  color: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
}
.rokto-donor-info { min-width: 0; }
.rokto-donor-info h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.rokto-verified {
  font-size: 0.75rem;
  color: var(--accent-text);
  background: var(--accent);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}
.rokto-donor-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rokto-contact-btn {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.rokto-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

/* Request urgency badge */
.rokto-urgency {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}
.rokto-urgency--critical { background: var(--accent); color: var(--accent-text); }
.rokto-urgency--urgent { background: var(--heading); color: var(--bg); }
.rokto-urgency--planned { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

/* Mobile */
@media (max-width: 600px) {
  .rokto-hero-cta { flex-direction: column; }
  .rokto-cta-primary, .rokto-cta-secondary { width: 100%; min-width: unset; }
  .rokto-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .rokto-bg-cards { grid-template-columns: repeat(2, 1fr); }
  .rokto-field-row { grid-template-columns: 1fr; }
  .rokto-search-bar { grid-template-columns: 1fr; }
  .rokto-donor-card { grid-template-columns: auto 1fr; gap: 0.75rem; }
  .rokto-contact-btn { grid-column: 1 / -1; width: 100%; }
}
