/* 
  Honors Project Dashboard Stylesheet
  Author: Dylan Wood
  Description: Defines global styling, section-specific theming, button interactions, graph card designs, and transition effects for the landing page and dashboard.
*/

/* Global Dark Background */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #000000, #1a1a1a, #000000);
  background-attachment: fixed;
  color: #ddd;
  min-height: 100vh;
}

/* Header Section Styling */
.header-section {
  text-align: center;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-section h1 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header-section p {
  color: #cccccc;
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navigation Button Styling */
.nav-btn {
  background: white;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  transition: 0.3s;
  margin: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.nav-btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
  transition: 0.3s ease-in-out;
  z-index: 1;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Navigation Button Container */
.nav-btn-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px auto;
}

/* Tab Content Container */
.tab-content-container {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px 15px;
  margin: 30px auto;
  border-radius: 16px;
  max-width: 950px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Graph Card and Graph Title Styling */
.graph-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: 30px auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Ensure all text within graph cards is black and bold, except graph titles and pre elements */
.graph-card h1,
.graph-card h2,
.graph-card h3,
.graph-card h4,
.graph-card h5,
.graph-card h6,
.graph-card p,
.graph-card span,
.graph-card div {
  color: #000000 !important;
  font-weight: 700 !important;
}

/* GEE code should be regular weight, not bold */
.graph-card pre {
  color: #000000 !important;
  font-weight: 400 !important;
  font-family: 'Courier New', monospace;
}

/* Keep graph titles and subtitles white even when inside graph cards */
.graph-card .graph-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.graph-card .graph-subtitle {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.graph-subtitle {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px;
  text-align: center;
}

.graph-title {
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

/* Section Background Themes */
.section-light {
  background: rgba(0, 0, 0, 0.3);
  padding: 50px 0;
  backdrop-filter: blur(10px);
}
.section-dark {
  background: rgba(0, 0, 0, 0.6);
  padding: 50px 0;
  color: white;
  backdrop-filter: blur(10px);
}

/* Animation and Transition Effects */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Heading Styles */
h1 {
  font-size: 48px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
h2 {
  font-size: 36px;
  color: #ffffff;
  font-weight: 600;
  margin-top: 30px;
  border-bottom: 4px solid #e25822;
  padding-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
h3 {
  font-size: 28px;
  color: #ffffff;
  font-weight: 500;
  margin-top: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #888888;
  margin-top: 50px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Override section-light text colors for dark background */
.section-light h1,
.section-light h2,
.section-light h3,
.section-light p {
  color: #ffffff;
}

/* Ensure graph titles stay black even in section-light */
.section-light .graph-title {
  color: #000000 !important;
  font-weight: 700 !important;
}

/* Section headers (H2) should be white, individual graph titles (H3) should be black */
.section-light h2.graph-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.section-light h3.graph-title {
  color: #000000 !important;
  font-weight: 700 !important;
}

.section-light .graph-subtitle {
  color: #cccccc;
}

/* Smooth hide/show animation for navigation bar on scroll */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.3s ease-in-out;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.navbar-hidden {
  top: -80px; /* adjust based on nav height */
}

/* Responsive Graph Styling for Mobile */
@media (max-width: 768px) {
  .graph-card {
    padding: 10px;
    margin: 20px 10px;
  }

  .js-plotly-plot {
    width: 100% !important;
    height: auto !important;
  }

  .graph-title,
  .graph-subtitle {
    font-size: 18px;
    padding: 0 5px;
  }

  .nav-btn-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .header-section h1 {
    font-size: 28px;
  }
  
  .header-section p {
    font-size: 16px;
  }
  
  .tab-content-container {
    padding: 20px 10px;
    margin: 20px 10px;
  }
}