.unit-image {
  flex: 1 1 300px;
  max-width: 400px;
}

.stats-panel {
  flex: 1 1 400px;
  background: #222;
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

.stats-panel h3 {
  margin-top: 0;
  color: #ccc;
  font-weight: bold;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid #333;
}

.description {
  margin-top: 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
}

.description p {
  margin-bottom: 1rem;
}

.radar-placeholder {
  margin-top: 2rem;
  height: 300px;
  background: #222;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 1.2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--accent-color, #00ff00);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.back-link:hover {
  opacity: 0.8;
}

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

.unit-header h1 {
  font-size: 2.5rem;
  margin: 0;
}

.feedback-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #d62839; /* slightly darker red → better contrast with white */
  color: #ffffff;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
  z-index: 1000;
  transition: background 0.2s ease;
}

.feedback-fab:hover {
  background: #b91c1c; /* darker on hover, still readable */
}

.t3-star-icon {
  width: 20px !important;
  height: 20px !important;
  transform: translateY(-5px);
}

/* ─────────────────────────────
🔗 UnitCard Styles
───────────────────────────── */
.unit-card {
  position: relative;
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.unit-image-container {
  position: relative;
}

.tech-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background-color: #111;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
  opacity: 0.85;
}

.unit-thumbnail {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.unit-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  height: 3.5rem;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: bottom 0.25s ease;
  padding: 0.25rem;
}

.unit-card:hover .unit-overlay {
  bottom: 0;
}

.unit-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
}

.unit-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color, #00ff00);
  margin-top: 0.1rem;
}

.unit-card:hover .unit-overlay {
  bottom: 0;
}

/* ─────────────────────────────
🔗 Tech Row Styles
───────────────────────────── */
.tech-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background-color: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.9;
}

.unit-type-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.unit-type-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.5rem 0.9rem; /* ⬅ increases tap area */
  min-height: 44px; /* ⬅ recommended tap size */
  min-width: 44px;

  border-radius: 999px;
  border: 1px solid var(--accent-color);

  text-decoration: none;
  font-size: 0.9rem;
}

.unit-role-inline {
  font-size: 0.75rem;
  color: #ccc;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tech-inline-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.short-role {
  font-size: 1rem;
  color: #00ff00; /* Or whatever your role color is */
  white-space: nowrap;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.1rem 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0; /* increases vertical tap area */
}

.faction-heading {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.faction-name {
  font-size: 2rem;
  font-weight: 800;
  color: #00ff66; /* green for Legion */
}

.unit-type {
  font-size: 3.5rem;
  font-weight: 300;
  color: white;
  line-height: 1;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  justify-items: center;
}

.footer {
  background-color: #111;
  border-top: 1px solid #333;
  margin-top: 4rem;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 180px;
}

/* ⬇️ updated selector */
.footer-heading {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.3rem;
}

.footer a {
  color: var(--accent-color, limegreen);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer a.disabled {
  color: #444;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  font-style: italic;
}

.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-list a.footer-link {
  display: block;          /* makes the whole row clickable */
  padding: 14px 0;         /* increases tap height */
  margin-top: -8px;        /* visually pulls rows closer together */
  line-height: 1.2;
}

