@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Quicksand:wght@400;600;700&display=swap");

:root {
  --z-orange-a: #f97316;
  --z-orange-b: #d97706;
  --z-blue-a: #0369a1;
  --z-blue-b: #1e3a8a;
  --judy-blue: #003366;
  --nick-orange: #ff8800;
  --z-lime: #34d399;
  --z-text: #0f172a;
}

* {
  font-family: "Quicksand", "Poppins", sans-serif;
}

body.city-sky-bg {
  color: var(--z-text);
  background: linear-gradient(145deg, #e0f2fe 0%, #eff6ff 56%, #ffffff 100%);
}

body.city-sky-bg::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26vh;
  opacity: 0.09;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 260'%3E%3Cpath fill='%231e3a8a' d='M0 260V196h40v-26h55v26h32v-66h40v66h38v-42h48v42h42v-88h44v88h52v-34h34v34h48v-76h40v76h64v-28h42v28h32v-58h36v58h46v-86h56v86h54v-34h44v34h38v-62h42v62h58v-24h44v24h42v-52h38v52h56v-82h48v82h52v-30h34v30h58v-68h42v68h42v-36h44v36h36V260z'/%3E%3C/svg%3E");
  background-position: bottom center;
  background-repeat: repeat-x;
  background-size: 1200px auto;
  z-index: -1;
}

.theme-card {
  border-radius: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.12);
}

.theme-btn {
  border-radius: 9999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.theme-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

.theme-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--z-orange-a), var(--z-orange-b));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.theme-btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--z-blue-a), var(--z-blue-b));
  box-shadow: 0 10px 22px rgba(30, 58, 138, 0.28);
}

.theme-btn-accent {
  color: #022c22;
  background: linear-gradient(135deg, #6ee7b7, var(--z-lime));
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.2);
}

.nav-brand-badge {
  border-radius: 1rem;
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-tab {
  border-radius: 9999px;
  font-weight: 700;
}

.nav-tab-active {
  color: #fff;
  background: linear-gradient(135deg, var(--z-orange-a), var(--z-orange-b));
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.25);
}

.nav-tab-idle {
  color: #334155;
  background: #f0f9ff;
}

.icon-slot svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.map-empty-state {
  min-height: 250px;
  display: grid;
  place-items: center;
  border-radius: 1.6rem;
  border: 1px dashed rgba(56, 189, 248, 0.55);
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.8), rgba(239, 246, 255, 0.55));
}

.map-empty-state svg {
  max-width: 220px;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

#result-log {
  border-radius: 1rem;
}

.standards-console {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.94), rgba(0, 51, 102, 0.84));
  box-shadow: 0 14px 26px rgba(0, 51, 102, 0.25);
}

.subject-toggle-group {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.standards-subject-btn {
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  transition: all 0.2s ease;
}

.standards-subject-btn.is-active {
  background: var(--nick-orange);
  color: #1f2937;
  box-shadow: 0 8px 18px rgba(255, 136, 0, 0.35);
}

.standards-card {
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.25);
  animation: standards-card-in 260ms ease-out both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.standards-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.13);
}

.standards-domain-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: rgba(0, 51, 102, 0.1);
  color: var(--judy-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.65rem;
}

.standards-semester-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: rgba(255, 136, 0, 0.13);
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.65rem;
}

.standards-empty {
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.82);
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.standards-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.standards-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(2px);
}

.standards-modal-panel {
  position: relative;
  width: min(960px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.28);
  padding: 1.2rem 1.2rem 1.5rem;
  animation: standards-modal-in 250ms ease-out both;
}

.standards-modal-close {
  position: absolute;
  right: 0.9rem;
  top: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(100, 116, 139, 0.12);
  color: #334155;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

body.standards-modal-open {
  overflow: hidden;
}

.video-results-empty {
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.9);
}

.video-subnav-btn {
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  transition: all 0.2s ease;
}

.video-subnav-btn.is-active {
  background: linear-gradient(135deg, var(--z-orange-a), var(--z-orange-b));
  color: #fff;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.25);
}

.video-card {
  position: relative;
  background: #fff;
}

.video-card-media {
  position: relative;
}

.video-card-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: #e2e8f0;
}

.video-favorite-btn {
  cursor: pointer;
}


@keyframes standards-card-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes standards-modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
