/* nyc spending visualization - main styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Barlow Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #0a0a0f;
  color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  cursor: crosshair;
}

#canvas-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

/* header styles */
.header {
  position: absolute;
  top: clamp(15px, 2vw, 20px);
  left: clamp(20px, 4vw, 40px);
  z-index: 10;
  max-width: clamp(300px, 60vw, 800px);
}

.title {
  font-family: "Barlow Condensed", -apple-system, sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: clamp(1px, 0.3vw, 2px);
  color: #fff;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 1vw, 12px);
  line-height: 1.1;
}

.subtitle {
  font-size: 22px;
  color: #777;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.source {
  font-size: 20px;
  color: #666;
  margin-top: 10px;
}

.source a {
  color: #88b0d3;
  text-decoration: none;
}

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

/* navigation buttons */
.nav-buttons {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 20;
  display: flex;
  gap: 12px;
}

.nav-btn {
  background: rgba(136, 176, 211, 0.15);
  border: 1px solid #88b0d3;
  color: #88b0d3;
  padding: 8px 16px;
  font-family: "Barlow Condensed", -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 4px;
  text-decoration: none;
}

.nav-btn:hover {
  background: rgba(136, 176, 211, 0.25);
  transform: scale(1.05);
}

.reset-btn {
  display: none;
}

.reset-btn.visible {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* about section titles */
.about-title {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #88b0d3;
  margin-bottom: 16px;
  text-transform: none;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #88b0d3;
  margin-bottom: 16px;
  line-height: 1.3;
}

.note-section {
  background: rgba(136, 176, 211, 0.08);
  padding: 12px 16px;
  border-left: 2px solid rgba(136, 176, 211, 0.5);
  margin: 16px 0;
  border-radius: 2px;
  font-size: 13px;
  color: #999;
}

.notes-title {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #88b0d3;
  margin-bottom: 8px;
}

.notes-content {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}

/* breadcrumb (legacy) */
.breadcrumb {
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 20;
  font-size: 20px;
  color: #88b0d3;
  font-weight: 500;
  display: none;
  text-align: right;
}

.breadcrumb.visible {
  display: block;
}

.breadcrumb span {
  color: #666;
  margin: 0 5px;
}

.breadcrumb-value {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
}

.breadcrumb-percentage {
  color: #999;
  font-size: 18px;
  margin-top: 4px;
}

/* version info */
.version-info {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  color: #6b8fa3;
  font-size: 15px;
  font-family: "Barlow Condensed", -apple-system, sans-serif;
  font-weight: 500;
  opacity: 0.7;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* scroll indicator */
.scroll-indicator {
  position: fixed;
  bottom: 50px;
  right: 40px;
  z-index: 15;
  color: #666;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator::after {
  content: "↓";
  font-size: 18px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* loading state */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: #666;
  z-index: 100;
}

/* info section */
.info {
  position: absolute;
  top: calc(100vh + 20px);
  left: 0;
  right: 0;
  z-index: 10;
  font-size: 23px;
  color: #999;
  line-height: 1.8;
  padding: 0 40px 60px 40px;
}

.about-section {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #aaa;
  margin-top: 0px;
  padding: 30px 300px;
  background: rgba(20, 20, 40, 0.25);
  border-radius: 4px;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-section p {
  margin-bottom: 16px;
}

.comparison-table {
  font-size: 14px;
}

.comparison-table table {
  font-size: 14px;
}

.comparison-table h3 {
  font-size: 16px;
}

.department-list {
  font-size: 14px;
}

.methodology-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(136, 176, 211, 0.2);
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.credits {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #999;
  margin-top: 40px;
  padding: 30px 40px;
  background: rgba(15, 15, 25, 0.4);
  border-radius: 4px;
  line-height: 1.6;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  border-top: 2px solid rgba(136, 176, 211, 0.3);
}

.credits-header {
  margin-bottom: 24px;
}

.data-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.attribution-label {
  font-weight: 600;
  color: #bbb;
}

.attribution-link {
  color: #88b0d3;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.attribution-link:hover {
  color: #a5c5e0;
  text-decoration: underline;
}

.attribution-note {
  color: #888;
  font-style: italic;
}

.credits-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(136, 176, 211, 0.15);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-label {
  color: #888;
}

.author-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #88b0d3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.author-link:hover {
  color: #a5c5e0;
}

.github-icon {
  opacity: 0.8;
}

.tech-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-label {
  color: #888;
}

.tech-link {
  color: #88b0d3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tech-link:hover {
  color: #a5c5e0;
  text-decoration: underline;
}

.tech-item {
  color: #aaa;
}

.tech-separator {
  color: #666;
  margin: 0 4px;
}

@media (max-width: 768px) {
  .credits-footer {
    flex-direction: column;
    gap: 16px;
  }
  
  .data-attribution {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .tech-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* animations */
.fade-transition {
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 30px;
  }
  
  .credits {
    padding: 30px 20px;
  }
  
  .data-attribution {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
  
  .tech-stack {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}