:root {
  --text-light: #e0e0e0;
  --text-muted: #a1a1aa;
  --text-secondary: #d1d5db;
  --primary-orange: #ffa500;
  --orange-hover: #ffcc33;
  --orange-tint-10: rgba(255, 165, 0, 0.1);
  --black-80: rgba(0, 0, 0, 0.8);
  --black-50: rgba(0, 0, 0, 0.5);
  --background-dark: #1a1a1a;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #000;
  color: var(--text-light);
  overflow-x: hidden;
}

/* Overlay Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none; /* Prevent capturing events */
}

.overlay.hidden {
  opacity: 0;
  display: none;
}

.overlay-message {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-orange);
  text-shadow: 0 0 4px var(--black-80);
  animation: pulse 1.5s infinite;
  text-align: center; /* Ensure text is centered */
  max-width: 90%; /* Prevent overflow on small screens */
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.grok-badge {
  position: absolute;
  right: 4px;
  bottom: 2px;
  z-index: 999;
}

.location-button {
  position: fixed;
  bottom: 145px; /* Moved higher to clear timeline */
  right: 16px;
  background: rgba(26, 26, 26, 0.9); /* Matches timeline and filter drawer */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
  border-radius: 8px; /* Rounded square */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* Consistent shadow */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  z-index: 30;
}

.location-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-orange); /* Orange border on hover */
}

.location-button svg {
  color: var(--primary-orange); /* Orange icon to match app theme */
}

@media (max-width: 640px) {
  .overlay-message {
    font-size: 1.5rem;
    max-width: 80%; /* Tighter max-width for mobile */
    line-height: 1.2; /* Improve readability */
  }
  .location-button {
    bottom: 160px; /* Higher on mobile to avoid timeline overlap */
    right : 10px;
    width: 44px;
    height: 44px;
  }
}

.blog-post-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blog-post-backdrop.open {
  opacity: 1;
  visibility: visible;
}