@charset "UTF-8";

:root {
  /* Terminal-inspired + Astronomy color palette */
  --astro-dark-blue: #0a0e14;
  --astro-midnight: #151820;
  --astro-nebula: #1f2430;
  --astro-star: #ffd700;
  --astro-aurora: #58a6ff;
  --astro-galaxy: #bc8cff;
  --astro-comet: #79c0ff;

  /* Terminal accent colors */
  --terminal-green: #3fb950;
  --terminal-cyan: #58a6ff;
  --terminal-yellow: #f0883e;
  --terminal-magenta: #bc8cff;
  --terminal-fg: #e6edf3;
  --terminal-fg-muted: #8b949e;
  --terminal-border: #30363d;

  /* Bootstrap compatibility colors */
  --bs-blue: var(--astro-comet);
  --bs-indigo: #6610f2;
  --bs-purple: var(--astro-galaxy);
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: var(--astro-star);
  --bs-green: #198754;
  --bs-teal: var(--astro-aurora);
  --bs-cyan: var(--astro-comet);
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: var(--astro-midnight);
  --bs-primary: var(--astro-comet);
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: var(--astro-aurora);
  --bs-warning: var(--astro-star);
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: var(--astro-dark-blue);
  --bs-primary-rgb: 76, 201, 240;
  --bs-secondary-rgb: 108, 117, 125;
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 94, 170, 168;
  --bs-warning-rgb: 240, 230, 140;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 10, 17, 40;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;
  --bs-body-color-rgb: 230, 230, 240;
  --bs-body-bg-rgb: 10, 17, 40;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgba(76, 201, 240, 0.15), rgba(94, 170, 168, 0));
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1.3rem;
  --bs-body-font-weight: 300;
  --bs-body-line-height: 1.5;
  --bs-body-color: #e6e6f0;
  --bs-body-bg: var(--astro-dark-blue)
}

*,
::after,
::before {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  font-weight: var(--bs-body-font-weight);
  line-height: var(--bs-body-line-height);
  color: var(--bs-body-color);
  text-align: var(--bs-body-text-align);
  background-color: var(--bs-body-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent
}

.h2,
.h3,
h1,
h2 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2
}

h1 {
  font-size: calc(1.375rem + 1.5vw)
}

.h2,
h2 {
  font-size: calc(1.325rem + .9vw)
}

.h3 {
  font-size: calc(1.3rem + .6vw)
}

@media (min-width:1200px) {
  h1 {
    font-size: 2.5rem
  }

  .h2,
  h2 {
    font-size: 2rem
  }

   .h3 {
    font-size: 1.75rem
  }
}


ul {
  padding-left: 2rem
  margin-top: 0;
  margin-bottom: 1rem
}

strong {
  font-weight: bolder
}

.small {
  font-size: .875em
}

a {
  color: var(--astro-comet);
  text-decoration: none
}

a:hover {
  color: var(--astro-aurora)
}

.container,
.container-fluid {
  width: 100%;
  padding-right: var(--bs-gutter-x, .75rem);
  padding-left: var(--bs-gutter-x, .75rem);
  margin-right: auto;
  margin-left: auto
}

@media (min-width:576px) {
  .container {
    max-width: 540px
  }
}

@media (min-width:768px) {
  .container {
    max-width: 720px
  }
}

@media (min-width:992px) {
  .container {
    max-width: 960px
  }
}

@media (min-width:1200px) {
  .container {
    max-width: 1140px
  }
}

@media (min-width:1400px) {
  .container {
    max-width: 1320px
  }
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x))
}

.row>* {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-top: var(--bs-gutter-y)
}

.col {
  flex: 1 0 0%
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem
}

@media (min-width: 768px) {
  .col-md-2 {
    flex: 0 0 auto;
    width: 16.66666667%
  }

  .col-md-3 {
    flex: 0 0 auto;
    width: 25%
  }

  .col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%
  }

  .col-md-5 {
    flex: 0 0 auto;
    width: 41.66666667%
  }

  .col-md-6 {
    flex: 0 0 auto;
    width: 50%
  }

  .col-md-8 {
    flex: 0 0 auto;
    width: 66.66666667%
  }

  .col-md-9 {
    flex: 0 0 auto;
    width: 75%
  }
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: .5rem;
  padding-bottom: .5rem
}

.navbar>.container-fluid {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between
}

.mb-0 {
  margin-bottom: 0 !important
}

.mb-1 {
  margin-bottom: .25rem !important
}

.mb-3 {
  margin-bottom: 1rem !important
}

.mb-4 {
  margin-bottom: 1.5rem !important
}

.p-4 {
  padding: 1.5rem !important
}

.pe-1 {
  padding-right: .25rem !important
}

.ps-2 {
  padding-left: .5rem !important
}

.text-center {
  text-align: center !important
}

.justify-content-center {
  justify-content: center !important
}

.text-light {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-light-rgb), var(--bs-text-opacity)) !important
}

.bg-dark {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important
}

a:visited {
  color: var(--bs-purple);
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  width: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--astro-midnight) 0%, var(--astro-nebula) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 17, 40, 0.95) 0%, rgba(10, 17, 40, 0.7) 50%, transparent 100%);
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}

.hero-title {
  color: var(--astro-star);
  font-size: calc(1.5rem + 1.5vw);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  color: var(--astro-aurora);
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
  .hero-image-container {
    min-height: 400px;
  }

  .hero-image {
    max-height: 600px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }
}

/* Chart Container Styles */
.chart-container {
  background: var(--astro-nebula);
  padding: 1rem;
  border-radius: 4px;
  border: 2px solid var(--terminal-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.chart-container-grey {
  background: #d0d0d0;
}

.chart-container iframe {
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  background: white;
}

.chart-container img {
  background: white;
}

.chart-container p {
  color: var(--terminal-fg);
}

.chart-container a {
  color: var(--terminal-cyan);
}

.chart-container a:hover {
  color: var(--astro-comet);
}

/* Heading Styles */
h1, h2, .h2, .h3 {
  color: var(--astro-star);
}

h2.h3 {
  color: var(--astro-comet);
  border-bottom: 2px solid var(--astro-nebula);
  padding-bottom: 0.5rem;
}

h3, .h4 {
  color: var(--terminal-cyan);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Enhance list styles */
ul {
  list-style-type: none;
}

ul li::before {
  content: "★ ";
  color: var(--astro-aurora);
  margin-right: 0.5rem;
}

/* Time elements */
time {
  color: var(--astro-aurora);
  opacity: 0.8;
}

/* Strong emphasis */
strong {
  color: var(--astro-star);
}

/* Info Header Styles */
.info-header {
  background: var(--astro-midnight);
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--astro-nebula);
}

.info-box {
  background: var(--astro-midnight);
  padding: 1rem;
  border-radius: 4px;
  height: 100%;
  border: 2px solid var(--terminal-border);
  border-left: 4px solid var(--terminal-cyan);
  font-family: var(--bs-font-monospace);
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.info-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--astro-aurora);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-box p {
  color: #e6e6f0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.info-box a {
  color: var(--astro-comet);
  text-decoration: none;
}

.info-box a:hover {
  color: var(--astro-aurora);
  text-decoration: underline;
}

.quote-box {
  text-align: center;
  border: 2px solid var(--terminal-border);
  border-left: 4px solid var(--terminal-yellow);
  padding: 1.5rem;
  background: var(--astro-midnight);
}

.quote-box em {
  color: var(--terminal-fg);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-family: var(--bs-font-monospace);
}

/* Photo Gallery Styles */
.photo-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--astro-comet) var(--astro-midnight);
}

.photo-gallery::-webkit-scrollbar {
  height: 8px;
}

.photo-gallery::-webkit-scrollbar-track {
  background: var(--astro-midnight);
  border-radius: 4px;
}

.photo-gallery::-webkit-scrollbar-thumb {
  background: var(--astro-comet);
  border-radius: 4px;
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
  background: var(--astro-aurora);
}

.gallery-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  max-width: 90vw;
}

.gallery-image {
  max-width: 400px;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  border: 2px solid var(--astro-nebula);
}

/* Improve text contrast */
body {
  color: #f0f0f0;
}

a {
  color: var(--astro-aurora);
  text-decoration: none;
}

a:hover {
  color: var(--astro-comet);
  text-decoration: underline;
}

a:visited {
  color: #ba68c8;
}

/* Accessibility: Focus states */
a:focus-visible,
button:focus-visible,
.info-box:focus-visible {
  outline: 3px solid var(--terminal-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip to main content for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--terminal-cyan);
  color: var(--astro-dark-blue);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

h2.h3 {
  color: var(--astro-aurora);
  border-bottom: 2px solid var(--astro-nebula);
  padding-bottom: 0.5rem;
}

/* APOD Section Styles */
.chart-container h4 {
  color: var(--astro-aurora);
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* Weather Widget Styles */
.weather-widget {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.weather-period {
  background: var(--astro-midnight);
  padding: 0.75rem;
  border-radius: 4px;
  border: 2px solid var(--terminal-border);
  border-top: 3px solid var(--terminal-cyan);
  text-align: center;
  font-family: var(--bs-font-monospace);
  font-size: 0.85rem;
}

.weather-period-name {
  color: var(--astro-aurora);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-icon {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto 0.5rem;
}

.weather-temp {
  color: var(--astro-star);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.weather-forecast {
  color: #e6e6f0;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.weather-wind {
  color: var(--astro-comet);
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .weather-widget {
    grid-template-columns: 1fr;
  }
}

/* Horoscope Card Styles */
.horoscope-card {
  background: var(--astro-midnight);
  padding: 1rem;
  border-radius: 4px;
  border: 2px solid var(--terminal-border);
  border-left: 4px solid var(--terminal-magenta);
  height: 100%;
  transition: all 0.2s;
  font-family: var(--bs-font-monospace);
  font-size: 0.85rem;
}

.horoscope-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--astro-star);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.horoscope-card h4 {
  color: var(--astro-star);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.horoscope-card p {
  color: #e6e6f0;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}