/* MapGrid AI - Shared Styles */

:root {
  --metsci-primary: #D94A18;   /* Troposphere Red */
  --metsci-red: #FA7F2A;       /* Solar Haze */
  --metsci-blue: #18A7D9;      /* Jet Stream Blue */
  --metsci-white: #FCF5F0;     /* Cirrus White */
  --metsci-black: #000000;     /* Stratosphere Black */
}

/* Font Face Declarations */
@font-face {
  font-family: 'Standerd';
  src: url('/fonts/Standerd-Regular.woff2') format('woff2'),
       url('/fonts/Standerd-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Standerd';
  src: url('/fonts/Standerd-Medium.woff2') format('woff2'),
       url('/fonts/Standerd-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Standerd';
  src: url('/fonts/Standerd-SemiBold.woff2') format('woff2'),
       url('/fonts/Standerd-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Standerd';
  src: url('/fonts/Standerd-Bold.woff2') format('woff2'),
       url('/fonts/Standerd-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* Base Styles */
body {
  background: linear-gradient(135deg, var(--metsci-black) 0%, #1a1a1a 100%);
  color: var(--metsci-white);
  font-family: 'Standerd', sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 8px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  border-bottom: 2px solid var(--metsci-red);
  height: 96px;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5%;
}

.logo {
  height: 96px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}

.title-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--metsci-white);
  line-height: 1;
}

.subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

/* Navigation Styles */
.nav-menu {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-menu a {
  color: var(--metsci-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu a:hover {
  background: var(--metsci-blue);
  transform: translateY(-1px);
}

.nav-menu a.active {
  background: var(--metsci-primary);
}

/* Main Content Styles */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 132px;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 40px;
  align-items: center;
  gap: 20px;
}

/* Content Container for Pages */
.page-content {
  width: 95%;
  max-width: 1400px;
  background: linear-gradient(135deg, rgba(24, 167, 217, 0.1), rgba(217, 74, 24, 0.1));
  border: 2px solid rgba(24, 167, 217, 0.3);
  border-radius: 12px;
  padding: 40px;
  border-top: 3px solid var(--metsci-primary);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.page-content h1 {
  margin: 0 0 30px 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--metsci-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.page-content h2 {
  margin: 30px 0 20px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--metsci-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-content h3 {
  margin: 25px 0 15px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--metsci-red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-content p {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: rgba(252, 245, 240, 0.9);
  line-height: 1.6;
}

.page-content ul {
  margin: 0 0 15px 0;
  padding-left: 20px;
  color: rgba(252, 245, 240, 0.9);
  line-height: 1.6;
}

.page-content li {
  margin-bottom: 8px;
}

/* Info Bar Styles */
.info-bar {
  width: 95%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.info-card {
  background: linear-gradient(135deg, rgba(24, 167, 217, 0.1), rgba(217, 74, 24, 0.1));
  border: 1px solid rgba(24, 167, 217, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border-top: 3px solid var(--metsci-primary);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.info-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--metsci-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.info-card p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: rgba(252, 245, 240, 0.8);
  line-height: 1.4;
}
.endpoint-url {
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--metsci-white);
  border: 1px solid rgba(24, 167, 217, 0.2);
  word-break: break-all;
}
.accuracy-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--metsci-red);
  margin-top: 5px;
}

/* Map Styles */
#map {
  width: 95%;
  max-width: 1400px;
  height: 70vh;
  min-height: 500px;
  border: 2px solid rgba(24, 167, 217, 0.3);
  border-radius: 12px;
  box-shadow: 
    0 0 40px rgba(24, 167, 217, 0.2),
    0 0 20px rgba(217, 74, 24, 0.1),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #2a2a2a 0%, #1a1a1a 100%);
  overflow: hidden;
  margin-bottom: 0;
}

/* Status Styles */
#status {
  font-size: 14px;
  font-weight: 500;
  color: var(--metsci-blue);
  padding: 12px 24px;
  background: linear-gradient(90deg, rgba(217, 74, 24, 0.1) 0%, rgba(24, 167, 217, 0.15) 50%, rgba(217, 74, 24, 0.1) 100%);
  border-radius: 20px;
  border: 1px solid rgba(24, 167, 217, 0.2);
  border-left: 3px solid var(--metsci-red);
  backdrop-filter: blur(10px);
  display: inline-block;
  margin-bottom: 0;
}

/* Description Section Styles */
.description-section {
  width: 95%;
  max-width: 1400px;
  background: linear-gradient(135deg, rgba(24, 167, 217, 0.1), rgba(217, 74, 24, 0.1));
  border: 2px solid rgba(24, 167, 217, 0.3);
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
  border-top: 3px solid var(--metsci-primary);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
}
.description-section h3 {
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--metsci-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}
.description-section h4 {
  margin: 25px 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--metsci-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.description-section h4:first-of-type {
  margin-top: 0;
}
.description-section p {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: rgba(252, 245, 240, 0.9);
  line-height: 1.6;
  text-align: justify;
}
.description-section p:last-child {
  margin-bottom: 0;
}
.highlight-orange {
  color: var(--metsci-red);
  font-weight: 700;
}

/* Team Page Specific Styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.team-member {
  background: linear-gradient(135deg, rgba(24, 167, 217, 0.05), rgba(217, 74, 24, 0.05));
  border: 1px solid rgba(24, 167, 217, 0.2);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border-top: 3px solid var(--metsci-blue);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(24, 167, 217, 0.2);
}

.team-member h4 {
  margin: 0 0 10px 0;
  color: var(--metsci-white);
  font-size: 20px;
}

.team-member .role {
  color: var(--metsci-blue);
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.team-member p {
  text-align: left;
  margin-bottom: 10px;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-top: 1px solid rgba(24, 167, 217, 0.2);
  padding: 50px 40px 40px;
  color: var(--metsci-white);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  text-align: left;
}
.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--metsci-white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-section p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(252, 245, 240, 0.8);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--metsci-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 20px;
  background: var(--metsci-blue);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
}
.footer-links a:hover {
  background: var(--metsci-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 167, 217, 0.3);
}
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(24, 167, 217, 0.2);
  text-align: center;
  font-size: 14px;
  color: rgba(252, 245, 240, 0.6);
}
.footer-bottom a {
  color: var(--metsci-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.footer-bottom a:hover {
  color: var(--metsci-primary);
}

/* Leaflet Map Customizations */
.leaflet-container {
  background: linear-gradient(45deg, var(--metsci-black) 0%, #2a2a2a 100%);
  border-radius: 12px;
}
.leaflet-popup-content {
  color: var(--metsci-black);
  font-family: 'Standerd', sans-serif;
  font-weight: 500;
}
.leaflet-popup-content-wrapper {
  background: linear-gradient(135deg, var(--metsci-white) 0%, #f0f0f0 100%);
  border: 2px solid var(--metsci-primary);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(217, 74, 24, 0.3);
}
.leaflet-popup-tip {
  background: var(--metsci-white);
  border: 2px solid var(--metsci-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .info-bar {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .nav-menu {
    display: none; /* Hide nav on mobile for now */
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  main {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .page-content {
    padding: 25px;
  }
}
