/* Base styles shared across all pages */

:root {
  --background: #ffffff;
  --foreground: #1e293b;
  --card: #ffffff;
  --card-foreground: #1e293b;
  --border: #e2e8f0;
  --primary: #0ea5e9;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #1e293b;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --radius: 0.5rem;
  --container-width: 640px;
  --tab-active: #ffffff;
  --tab-inactive: #f1f5f9;
  --timeline-line: #e2e8f0;
  --map-filter: none;
  --scrollbar-thumb: #87ceeb;
}

.dark {
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --card-foreground: #f8fafc;
  --border: #334155;
  --primary: #0ea5e9;
  --primary-foreground: #ffffff;
  --secondary: #1e293b;
  --secondary-foreground: #f8fafc;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #1e293b;
  --accent-foreground: #f8fafc;
  --destructive: #7f1d1d;
  --destructive-foreground: #f8fafc;
  --tab-active: #1e293b;
  --tab-inactive: #0f172a;
  --timeline-line: #334155;
  --map-filter: invert(90%) hue-rotate(180deg);
  --scrollbar-thumb: #ffd700;
}

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

@font-face {
  font-family: "__Calistoga_Fallback_137a1a";
  src: local("Calistoga");
  font-weight: 400;
  font-style: normal;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Calistoga&display=swap");

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navigation */
.header {
  width: 100%;
  margin-top: 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.grow {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.2s;
  font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.nav-icons {
  display: flex;
  gap: 1rem;
}

.icon-button {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 1rem;
}

.icon-button:hover {
  color: var(--foreground);
}

.icon-button i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon-button:hover i {
  transform: rotate(20deg) scale(1.1);
}

/* Page Headers */
.page-header {
  padding: 2rem 0;
  text-align: center;
}

.page-title {
  font-family: "__Calistoga_Fallback_137a1a", Calistoga, serif;
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--foreground);
}

.page-subtitle {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Card Container */
.card-container {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 1rem 0 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding-left: 0;
  margin-left: 0;
}

.footer-content p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.footer-content p a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.75rem;
}

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

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-link {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--foreground);
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Media Queries */
@media (max-width: 767px) {
  .container {
    padding: 0.5rem;
  }
}
