
/* =========================
   Brand Colors
   ========================= */

:root {
  --text-main: #374151;
  --border-light: #e5e7eb;
  --bg-soft: #f3f4f6;
}

.text-brand-blue { color: #288EF9; }
.text-brand-orange { color: #FF8A05; }


/* =========================
   Navigation Links
   ========================= */

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--brand-blue);
}


/* =========================
   Buttons
   ========================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;

  background-color: #288EF9;
  color: white;

  font-size: 0.875rem;
  font-weight: 600;

  cursor: pointer;
  text-decoration: none;

  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background-color: #1d7fe6;
  box-shadow: 0 4px 10px rgba(40, 142, 249, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: #e97e04;
}


/* =========================
   Section Headers
   ========================= */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-blue);
}

/* =========================
   Cards
   ========================= */

.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

/* ensure images inside cards never overflow */
.card img,
.col-gradient img,
.model-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Badges
   ========================= */

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(40, 142, 249, 0.12);
  color: var(--brand-blue);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* second badge (metric / score) */
.badge + .badge {
  background: rgba(255, 138, 5, 0.15);
  color: var(--brand-orange);
}

/* =========================
   Tables
   ========================= */

.table {
  width: 100%;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  border-collapse: collapse;
  overflow: hidden;
  box-sizing: border-box;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.6rem;
  background: var(--brand-blue);
  color: white;
}

.table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.table tr:hover td {
  background: rgba(40, 142, 249, 0.05);
}

/* =========================
   Brand / Logo
   ========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 37px;
  width: auto;
  max-width: 100%;
}

/* =========================
   Model Card (list style)
   ========================= */

.model-card {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
}

.model-card:hover {
  background: #fafafa;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.model-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.model-card-meta {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #6b7280;
}

/* =========================
   Column gradient + safety
   ========================= */

.col-gradient {
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(40, 142, 249, 0.06),
    rgba(255, 138, 5, 0.06)
  );
  box-sizing: border-box;
  min-width: 0;   /* critical so flex/grid children can shrink properly */
}

.col-gradient .model-card,
.col-gradient .card {
  background: #ffffff;
  border: 1px solid var(--border-light);
}

/* =========================
   Centered 3-column layout (exactly 3 columns on desktop)
   ========================= */

.content-centered {
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.three-col-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr; /* mobile default */
  align-items: start;
  box-sizing: border-box;
}

/* desktop: exactly three equal columns */
@media (min-width: 768px) {
  .three-col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ensure each direct child acts like a column and doesn't overflow */
.three-col-grid > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;   /* prevents overflowing content from expanding columns */
  box-sizing: border-box;
}

/* make model-cards fill their column width */
.model-card {
  width: 100%;
  box-sizing: border-box;
}

/* prevent long words or unbroken strings from expanding columns */
.model-card-name,
.model-card-meta,
.card,
.table,
.table td {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* =========================
   Footer (centered and below content)
   ========================= */

.site-footer {
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  font-size: 0.875rem;
  color: #374151;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================
   Layout helpers to push footer down when page is short
   ========================= */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* final guard: no horizontal scroll */
html, body {
  overflow-x: hidden;
}
