/* General Styles and Typography */
body {
  font-family: 'Open Sans', sans-serif;
  /* Clean body font */
  margin: 0;
  padding: 0;
  color: #333;
  background: #fdfdfd;
  /* Light background */
}

/* Warm Highlight Selection */
::selection {
  background: #FF8E53;
  color: white;
}

h1,
h2,
h3 {
  font-family: 'Poppins', sans-serif;
  /* Modern, friendly heading font */
  margin: 0;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.2rem;
}

/* Container */
.post {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
}

/* Header Section Styles */
.post-header {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff5eb;
  /* Warm accent background (orange tint) */
  border-radius: 8px;
}

.post-header .banner {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.post-header h1 {
  color: #333;
}

.post-meta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  /* Lighter text for meta info */
}

/* Intro Section */
.post-intro {
  margin: 2rem 0;
}

.post-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Mission Section */
.post-mission {
  margin: 2rem 0;
}

.post-mission h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Decorative underline for h2 (accent color line) */
.post-mission h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3em;
  width: 50px;
  height: 4px;
  background: #FF6B6B;
  /* Accent color for emphasis (Warm Orange/Red) */
}

.mission-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.mission-item {
  flex: 1;
  min-width: 220px;
  background: #fff8f0;
  /* Slightly tinted warm background */
  border: 1px solid #ffeacc;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.mission-item h3 {
  margin: 0.5rem 0;
  color: #333;
}

.mission-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

/* Hover effect for mission cards (subtle lift and shadow) */
.mission-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
  border-color: #FF8E53;
}

.mission-item:hover h3 {
  color: #FF6B6B;
  /* Change title color on hover to accent */
}

/* Get Involved Section */
.post-involved {
  margin: 2rem 0;
}

.post-involved h2 {
  margin-bottom: 1rem;
}

.involved-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.involved-list li {
  background: #fff5eb;
  /* Light accent background for list items */
  border: 1px solid #ffe0cc;
  border-radius: 5px;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0;
  transition: background 0.3s;
}

/* Hover effect for list items */
.involved-list li:hover {
  background: #ffe0cc;
}

/* Closing Section */
.post-closing {
  margin: 2rem 0;
  text-align: center;
}

.post-closing p {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

/* Responsive Design: make layout mobile-friendly */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .mission-items {
    flex-direction: column;
  }

  .post-header {
    padding: 1.5rem 1rem;
  }
}

/* --- GALAXY COMPONENT STYLES --- */
#galaxy-hero {
  width: 100%;
  height: 60vh;
  position: relative;
  background-color: #0d1117;
  overflow: hidden;
  border-bottom: 4px solid #FF8E53;
  /* Warm Orange Border */
}

#galaxy-hero iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

.galaxy-overlay {
  position: absolute;
  top: 30px;
  left: 30px;
  transform: none;
  text-align: left;
  pointer-events: none;
  z-index: 10;
  max-width: 500px;
}

.galaxy-overlay h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, #FF6B6B, #FFD93D);
  /* Sunset Gradient */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
  margin: 0;
  line-height: 1.2;
}

.galaxy-overlay p {
  color: #fff0e0;
  font-size: 1.3rem;
  margin-top: 15px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  font-weight: 300;
}

/* Info Panel */
.info-panel {
  position: fixed;
  top: 0;
  right: -400px;
  /* Hidden */
  width: 350px;
  height: 100vh;
  background: rgba(20, 15, 10, 0.95);
  /* Warmer dark background */
  backdrop-filter: blur(10px);
  border-left: 1px solid #553322;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
  padding: 40px;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.info-panel.open {
  right: 0;
}

.panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #aa8877;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.panel-close:hover {
  color: #ffaa88;
}

.panel-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.panel-content p {
  line-height: 1.6;
  color: #ffdcb0;
  font-size: 1.1rem;
}

.panel-btn {
  margin-top: 30px;
  padding: 12px 24px;
  background: #FF6B6B;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-start;
  transition: background 0.3s;
}

.panel-btn:hover {
  background: #ff4757;
}

/* --- NAVBAR STYLES --- */
.navbar {
  background: rgba(10, 5, 0, 0.95);
  /* Deep warm black */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 140, 66, 0.2);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-brand a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #FF6B6B, #FFD93D);
  /* Sunset Gradient */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#user-display-name {
  color: white;
  margin-right: 1rem;
}

.nav-btn,
.nav-btn-outline,
.nav-btn-text {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.nav-btn {
  background: linear-gradient(90deg, #FF6B6B, #FF8E53);
  color: white;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.nav-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.nav-btn-outline:hover {
  border-color: #FF8E53;
  background: rgba(255, 142, 83, 0.1);
}

.nav-btn-text {
  background: none;
  color: #ffccaa;
}

.nav-btn-text:hover {
  color: white;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.nav-dropdown-btn:hover {
  border-color: #FF8E53;
  background: rgba(255, 142, 83, 0.1);
}

.nav-dropdown-content {
  display: none !important;
  position: absolute;
  background: rgba(25, 15, 10, 0.98);
  /* Warm dark bg */
  backdrop-filter: blur(10px);
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  z-index: 1001;
  margin-top: 0;
  padding-top: 1rem;
  border: 1px solid rgba(255, 140, 66, 0.2);
  max-height: 400px;
  overflow-y: auto;
  left: 0;
  top: calc(100% - 0.5rem);
}

/* Add invisible bridge to prevent hover breaking */
.nav-dropdown-content::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.nav-dropdown-content a {
  color: #ffecd1;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-dropdown-content a:hover {
  background: rgba(255, 107, 107, 0.15);
  border-left-color: #FF6B6B;
  padding-left: 24px;
  color: #fff;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block !important;
}

.nav-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.nav-dropdown-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.nav-dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 107, 0.5);
  border-radius: 10px;
}

.nav-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 107, 0.8);
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
  }
}