/*! © 2026 Dr. Oluwaseun Ogunmola · Dr. Ogunmola GameLabs · All rights reserved. Free to play at https://gamelabs.ogunmola.com.ng · Not licensed for re-hosting, copying or reuse. Terms: https://gamelabs.ogunmola.com.ng/terms/ · ref GL-UNITY-CSS */

/* Unity Trail: Nigerian History, Civics & Geography */
:root {
  --ut-green: #008751;
  --ut-green-dark: #006039;
  --ut-green-light: #E6F5ED;
  --ut-gold: #F59E0B;
  --ut-gold-light: #FEF3C7;
  --ut-gold-dark: #B45309;
  --ut-text: #1F2937;
  --ut-muted: #4B5563;
  --ut-bg: #F8FAF7;
  --ut-card-bg: #FFFFFF;
  --ut-border: #E5E7EB;
}

/* Map of Nigeria */
.ut-mapwrap {
  width: 100%;
  max-width: 720px;
  margin: 0.75rem auto 1.25rem;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 2px solid var(--ut-border);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.ut-map {
  width: 100%;
  height: auto;
  max-height: 60vh;
  display: block;
}

.ut-map-state {
  fill: #E2E8F0;
  stroke: #FFFFFF;
  stroke-width: 1.4px;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.ut-map-state:hover,
.ut-map-state:focus-visible {
  fill: #34D399;
  stroke: #064E3B;
  stroke-width: 2.2px;
  outline: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Zone coloring */
.ut-map-state[data-zone="NW"] { fill: #E0E7FF; stroke: #C7D2FE; }
.ut-map-state[data-zone="NE"] { fill: #FEF3C7; stroke: #FDE68A; }
.ut-map-state[data-zone="NC"] { fill: #FCE7F3; stroke: #FBCFE8; }
.ut-map-state[data-zone="SW"] { fill: #D1FAE5; stroke: #A7F3D0; }
.ut-map-state[data-zone="SE"] { fill: #E0F2FE; stroke: #BAE6FD; }
.ut-map-state[data-zone="SS"] { fill: #FFEDD5; stroke: #FED7AA; }

.ut-map-state.active {
  fill: var(--ut-gold) !important;
  stroke: #78350F !important;
  stroke-width: 2.5px;
  animation: utPulse 1.4s infinite ease-in-out;
}

.ut-map-state.correct {
  fill: #10B981 !important;
  stroke: #064E3B !important;
}

.ut-map-state.highlight {
  fill: #A7F3D0 !important;
  stroke: #047857 !important;
  stroke-width: 2px;
}

@keyframes utPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Accessible list alternative */
.ut-list-toggle {
  text-align: center;
  margin: 0.5rem 0;
}

.ut-map-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--ut-card-bg);
  border: 1px solid var(--ut-border);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.ut-map-list-btn {
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: left;
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  cursor: pointer;
}

.ut-map-list-btn:hover,
.ut-map-list-btn:focus-visible {
  background: var(--ut-green-light);
  border-color: var(--ut-green);
}

/* Zone Badges */
.ut-zone-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ut-zone-badge.NW { background: #E0E7FF; color: #3730A3; }
.ut-zone-badge.NE { background: #FEF3C7; color: #92400E; }
.ut-zone-badge.NC { background: #FCE7F3; color: #9D174D; }
.ut-zone-badge.SW { background: #D1FAE5; color: #065F46; }
.ut-zone-badge.SE { background: #E0F2FE; color: #075985; }
.ut-zone-badge.SS { background: #FFEDD5; color: #9A3412; }

/* Time River Timeline */
.ut-river {
  position: relative;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.ut-river::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 6px;
  background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 50%, #1D4ED8 100%);
  border-radius: 3px;
  z-index: 0;
}

.ut-river-slot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ut-card-bg);
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  min-height: 54px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ut-river-slot.filled {
  border-style: solid;
  border-color: var(--ut-green);
  background: #F0FDF4;
}

.ut-river-slot:hover,
.ut-river-slot:focus-visible {
  border-color: var(--ut-green);
  background: var(--ut-green-light);
}

.ut-river-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3B82F6;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ut-river-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  justify-content: center;
}

.ut-river-card {
  padding: 0.6rem 0.9rem;
  background: var(--ut-card-bg);
  border: 2px solid var(--ut-green);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, background 0.15s ease;
}

.ut-river-card.selected {
  background: var(--ut-gold);
  border-color: #B45309;
  color: #111827;
  transform: scale(1.05);
}

/* Heritage Gallery Cards */
.ut-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.ut-gallery-card {
  background: var(--ut-card-bg);
  border: 1px solid var(--ut-border);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  text-align: left;
}

.ut-gallery-card:hover,
.ut-gallery-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--ut-green);
}

.ut-gallery-card.stamped::after {
  content: '🛂';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.4rem;
}

.ut-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ut-card-period {
  font-size: 0.8rem;
  color: var(--ut-muted);
  font-weight: 600;
}

/* Rights or Duty Sorting */
.ut-sort-baskets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.ut-sort-basket {
  background: var(--ut-card-bg);
  border: 2px dashed #94A3B8;
  border-radius: 16px;
  padding: 1rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ut-sort-basket:hover,
.ut-sort-basket:focus-visible {
  border-color: var(--ut-green);
  background: var(--ut-green-light);
  transform: scale(1.02);
}

.ut-basket-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--ut-green-dark);
}

/* Road Safety Street View */
.ut-street-scene {
  background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 40%, #475569 41%, #334155 100%);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  color: #FFFFFF;
  margin: 1rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ut-zebra-stripes {
  width: 100%;
  height: 24px;
  background: repeating-linear-gradient(90deg, #FFFFFF 0px, #FFFFFF 20px, transparent 20px, transparent 40px);
  margin: 0.75rem 0;
  opacity: 0.9;
}

.ut-frsc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Citizen Record Certificate */
.ut-record-cert {
  background: #FFFFFF;
  border: 8px double var(--ut-green);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 650px;
  margin: 1rem auto;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.ut-stamp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.ut-stamp {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed #CBD5E1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: #F8FAFC;
  transition: all 0.2s ease;
}

.ut-stamp.earned {
  border: 2px solid var(--ut-green);
  background: #ECFDF5;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

@media print {
  body {
    background: #FFFFFF;
  }
  .kk-header, .kk-btn, .kk-footer, .ut-mapwrap, .ut-list-toggle {
    display: none !important;
  }
  .ut-record-cert {
    box-shadow: none;
    border-width: 4px;
    margin: 0;
    max-width: 100%;
  }
}

