/* ── DNAFind — main.css ──────────────────────────────────
   Global styles matching the mockup design language.
   Steel-blue header, white surfaces, teal/orange accents,
   colorful hexagon DNA icons.
───────────────────────────────────────────────────────── */

/* ── Design tokens ───────────────────────────────────── */
:root {
  --blue-dark:    #1a4a6b;
  --blue-mid:     #2a6496;
  --blue-light:   #d9eaf5;
  --teal:         #17a2b8;
  --orange:       #e67e22;
  --text-dark:    #2c3e50;
  --text-muted:   #7f8c8d;
  --white:        #ffffff;
  --surface:      #f8f9fa;
  --border:       #dee2e6;
  --radius:       6px;
  --shadow:       0 2px 12px rgba(0,0,0,0.12);
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar — mockup: logo left, Join/Log In row + pill nav ── */
.site-header {
  background: var(--blue-dark);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-bar {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem 0.85rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--white);
}

.logo:hover { text-decoration: none; color: var(--white); }

.logo-helix-svg {
  flex-shrink: 0;
  color: var(--white);
  opacity: 0.95;
}

.logo-wordmark {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-wordmark strong {
  font-weight: 700;
}

.nav-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.nav-toplinks {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
}

.nav-toplinks a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}

.nav-toplinks a:hover {
  color: var(--white);
  text-decoration: underline;
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.nav-pill {
  display: inline-block;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(180deg, #3d7fb8 0%, #245a8a 55%, #1e4d78 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.nav-pill:hover {
  color: var(--white);
  text-decoration: none;
  filter: brightness(1.06);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-block { display: block; width: 100%; }

.btn-hero-login {
  background: linear-gradient(180deg, #4a9fd9 0%, var(--blue-mid) 45%, #1f5580 100%);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.btn-hero-login:hover {
  filter: brightness(1.05);
  color: var(--white);
}

/* ── Hero — mockup: photo background + right login + slider thumbs ── */
.hero--mockup {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #e8eef3;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: 0;
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(100,160,220,0.15));
  border: 1px solid rgba(255,255,255,0.4);
}

.hero-bubble--1 { width: 120px; height: 120px; left: 4%; top: 18%; opacity: 0.65; }
.hero-bubble--2 { width: 80px; height: 80px; left: 22%; bottom: 28%; opacity: 0.5; }

.hero-hex-cluster {
  position: absolute;
  right: 38%;
  top: 12%;
  width: 100px;
  height: 90px;
  opacity: 0.35;
  background:
    linear-gradient(135deg, transparent 40%, rgba(230,126,34,0.5) 40%),
    repeating-linear-gradient(60deg, rgba(23,162,184,0.4) 0 8px, transparent 8px 16px);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transform: rotate(12deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0.5rem;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 1rem;
  align-items: center;
  min-height: 320px;
}

.hero-spacer { min-height: 1px; }

.hero-login-panel {
  background: rgba(255,255,255,0.88);
  border-radius: 6px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.9);
}

.hero-login-panel h2 {
  color: #3d4d5c;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.hero-form--labeled { display: flex; flex-direction: column; gap: 0.65rem; }

.hero-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a5a6a;
  margin-bottom: 0.2rem;
}

.hero-field input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid #b8c4ce;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
}

.hero-field input:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 2px rgba(42,100,150,0.2);
}

.hero-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.35rem;
}

.hero-form-actions .forgot-link {
  font-size: 0.78rem;
  color: var(--blue-mid);
  font-weight: 600;
  text-decoration: none;
}

.hero-form-actions .forgot-link:hover { text-decoration: underline; }

.hero-register {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
}

.hero-logged-in-msg {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-slider {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem 1rem;
  max-width: 1024px;
  margin: 0 auto;
}

.hero-slide-thumb {
  width: 52px;
  height: 40px;
  padding: 0;
  border: 2px solid #c5ccd3;
  border-radius: 2px;
  background: #d8dde2;
  cursor: default;
}

.hero-slide-thumb.is-active {
  border-color: #c0392b;
  box-shadow: 0 0 0 1px rgba(192,57,43,0.35);
  background: linear-gradient(180deg, #e8ebef, #cfd5dc);
}

/* Legacy hero (other pages if any) */
.hero:not(.hero--mockup) {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0d2f47 100%);
  min-height: 200px;
}

/* ── Home content — two columns like mockup ──────────── */
.home-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  background: var(--white);
}

.home-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.about-block--mockup h2 {
  color: #2c2c2c;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.about-block--mockup p {
  color: #444;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.read-more {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--blue-mid);
}

.features-heading {
  color: #2c2c2c;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.feature-cards-mockup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.feature-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 88px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #ccc;
  background: #e0e0e0;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 0.25rem;
}

.feature-body p {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.btn-learn-more {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid #bbb;
  background: linear-gradient(180deg, #f5f5f5 0%, #dcdcdc 100%);
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

.btn-learn-more:hover {
  color: #222;
  text-decoration: none;
  filter: brightness(1.03);
}

/* Legacy feature grid (dashboard / other views) */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-block h2 {
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

.about-block p {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.75rem;
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-2px); }

.feature-text h3 {
  font-size: 0.95rem;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.learn-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
}

/* ── Hexagon icons (CSS clip-path) ───────────────────── */
.hex-icon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  width: 40px;
  height: 46px;
  flex-shrink: 0;
}

.hex-blue   { background: var(--blue-mid); }
.hex-green  { background: #27ae60; }
.hex-orange { background: var(--orange); }
.hex-teal   { background: var(--teal); }

/* ── Auth pages ──────────────────────────────────────── */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.auth-card h1 {
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}

.auth-card label:first-of-type { margin-top: 0; }

.auth-card input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(42,100,150,0.15);
}

.auth-card .btn { margin-top: 1.5rem; }

.auth-switch {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Alerts ──────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

/* ── Error pages ─────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 5rem 1.5rem;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ── Static pages ────────────────────────────────────── */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.static-page h1 {
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}

.static-page article {
  margin-bottom: 2.5rem;
}

.static-page h2 {
  color: var(--blue-mid);
  margin-bottom: 0.5rem;
}

.static-page p {
  line-height: 1.7;
  color: var(--text-dark);
}

/* ── Dashboard (placeholder) ─────────────────────────── */
.dashboard-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.dashboard-page h1 {
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

/* ── Footer — mockup: links + copyright left; social + logo right ── */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 1.1rem 0 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
}

.footer-sep {
  color: rgba(255,255,255,0.45);
  user-select: none;
}

.footer-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  opacity: 0.9;
}

.social-icon:hover {
  color: var(--white);
  opacity: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--white);
}

.logo-helix-svg--sm {
  opacity: 0.9;
}

.footer-brand-text {
  font-size: 0.85rem;
  font-weight: 400;
}

.footer-brand-text strong {
  font-weight: 700;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .features-grid        { grid-template-columns: 1fr; }
  .feature-cards         { grid-template-columns: 1fr; }
  .home-content-grid    { grid-template-columns: 1fr; }
  .hero-inner           { grid-template-columns: 1fr; min-height: 0; padding-top: 1.25rem; }
  .hero-spacer          { display: none; }
  .hero-login-panel     { max-width: 100%; }
  .feature-row          { flex-direction: column; }
  .feature-thumb        { width: 100%; height: 140px; max-width: 100%; }
  .footer-inner         { flex-direction: column; align-items: center; text-align: center; }
  .footer-right         { align-items: center; }
  .nav-bar              { flex-direction: column; align-items: stretch; }
  .nav-cluster          { align-items: stretch; }
  .nav-pills            { justify-content: flex-start; }
}
