/* ZeroBldgDesignDB custom styles */
:root {
  color-scheme: only light;
}

body {
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f8fafc;
}

.analytics-card {
  border-radius: 1.75rem;
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 25px 80px rgba(15, 118, 110, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 100px rgba(37, 99, 235, 0.18);
}

.learning-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 220px;
  border-radius: 2rem;
  border: 1px dashed rgba(37, 99, 235, 0.25);
  background: rgba(255, 255, 255, 0.88);
  color: rgb(100, 116, 139);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

.placeholder-pulse {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0));
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.6);
    opacity: 0.8;
  }
}

.learning-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.9rem;
  min-height: 260px;
  border-radius: 2.2rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(191, 219, 254, 0.4));
  box-shadow: 0 30px 80px rgba(59, 130, 246, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.learning-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 110px rgba(37, 99, 235, 0.22);
}

.learning-card span.badge {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: rgba(94, 234, 212, 0.2);
  color: rgb(13, 148, 136);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.learning-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(15, 23, 42);
  line-height: 1.4;
}

.learning-card p {
  font-size: 0.95rem;
  color: rgb(71, 85, 105);
}

.learning-card footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgb(148, 163, 184);
}

.learning-card footer svg {
  width: 18px;
  height: 18px;
  color: rgb(37, 99, 235);
  flex-shrink: 0;
}

.case-card {
  display: grid;
  gap: 1rem;
  border-radius: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: white;
  box-shadow: 0 30px 90px rgba(148, 163, 184, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.case-card > div {
  padding: 1.6rem;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 120px rgba(59, 130, 246, 0.24);
}

.case-bullet {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.case-bullet span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: rgb(37, 99, 235);
  font-weight: 700;
}

.toolkit-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 2rem;
  padding: 1.8rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.7));
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 35px 100px rgba(59, 130, 246, 0.12);
}

.toolkit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgb(15, 23, 42);
}

.toolkit-card p {
  font-size: 0.95rem;
  color: rgb(71, 85, 105);
  flex-grow: 1;
}

.toolkit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(59, 130, 246, 0.12);
  color: rgb(37, 99, 235);
}

.toolkit-btn:hover {
  background: rgba(37, 99, 235, 0.18);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__overlay {
  flex: 1;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.mobile-nav__panel {
  position: relative;
  width: min(80vw, 320px);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
  padding: 2.5rem 2rem;
  box-shadow: -30px 0 80px rgba(15, 23, 42, 0.25);
}

.mobile-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.mobile-nav__link:hover {
  background: rgba(191, 219, 254, 0.6);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(-4px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  transform: translate(-50%, 20px);
  min-width: min(90vw, 360px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.92), rgba(94, 234, 212, 0.78));
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 18px 60px rgba(30, 64, 175, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (max-width: 768px) {
  header nav {
    padding-inline: 1.25rem;
  }

  header section {
    padding-inline: 1.25rem;
  }

  .analytics-card,
  .learning-card,
  .case-card,
  .toolkit-card {
    border-radius: 1.75rem;
  }
}

