@import url("https://fonts.googleapis.com/css2?family=BBH+Sans+Bartle&family=Jura:wght@300..700&display=swap");

/* Colors:
Primary: #000000 (black)
Secondary: #ffffff (white)
Accent 1: #b80f08 (red)
Accent 2: #0000ff (blue)
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Jura", sans-serif;
  color: #ffffff;
}

body {
  background-image: url("../images/background.png");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "BBH Sans Bartle", sans-serif;
  color: #ffffff;
}

/* Header */
header {
  position: relative;
}

.header-banner {
  background-image: url("../images/header-banner.png");
  background-size: auto 100%;
  background-position: center;
  background-repeat: repeat-x;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: left;
}

.logo {
  height: 120px;
}

/* Navigation */
nav {
  background-color: black;
  padding: 10px 0;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  padding: 10px 20px;
  display: inline-block;
  z-index: 1;
  transition: color 0.3s ease;
}

nav a::before {
  content: "";
  position: absolute;
  /* center the decorative GIF over the link text */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* use a CSS variable for easy sizing (relative to font-size) */
  --nav-deco-size: 2.6em;
  width: var(--nav-deco-size);
  height: var(--nav-deco-size);
  background-image: url("../images/nav-deco.gif");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

nav a:hover::before {
  opacity: 1;
  /* slightly scale up the GIF for a subtle pop */
  transform: translate(-50%, -50%) scale(1.05);
}

nav a:hover {
  text-shadow: 0 0 8px #b80f08, 0 0 12px #b80f08;
}

/* Hero Banner */
#hero {
  text-align: center;
  padding: 60px 20px;
  background-color: rgba(0, 0, 0, 0.6);
}

#hero h1 {
  font-size: 3rem;
  line-height: 1.4;
}

/* Mission Statement */
#mission-statement {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  border-left: 5px solid #b80f08;
}

/* Feature Panels */
#feature-panels {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 40px 20px;
  gap: 30px;
}

.feature-panel {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px;
  width: 300px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(184, 15, 8, 0.4);
}

.feature-panel img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.feature-panel h3 {
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.subtitle {
  font-style: italic;
  color: #0000ff;
  margin-bottom: 10px;
}

/* FAQ Hero Banner */
#hero {
  text-align: center;
  padding: 60px 20px;
  background-color: rgba(0, 0, 0, 0.6);
}

#hero h1 {
  font-size: 2.5rem;
  font-family: 'BBH Sans Bartle', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* FAQ Section Headings */
main h2 {
  margin-top: 60px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  border-left: 5px solid #b80f08;
  padding-left: 15px;
  background-color: rgba(0, 0, 0, 0.6);
}

/* FAQ Expandable Panels */
details {
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid #b80f08;
  border-radius: 6px;
  margin: 15px auto;
  padding: 15px 20px;
  max-width: 800px;
  transition: background-color 0.3s ease;
}

details:hover {
  background-color: rgba(0, 0, 0, 0.95);
}

summary {
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  padding-right: 25px;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: #b80f08;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

details p {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 1rem;
  color: #0000ff;
}

/* Footer */
footer {
  background-image: url("../images/footer-banner.jpg");
  background-size: auto 100%;
  background-position: center;
  background-repeat: repeat-x;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

footer p {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Wanted Ad Container */
.wanted-ad-container {
  position: fixed;
  top: 100px;
  right: 0;
  z-index: 1000;
  transform: translateX(260px); /* Start mostly offscreen (adjust based on width) */
  transition: transform 0.4s ease;
}

.wanted-ad-container:hover {
  transform: translateX(0); /* Slide fully onscreen on hover */
}

/* Wanted Ad Panel */
.wanted-ad {
  width: 300px;
  background-color: rgba(0, 0, 0, 0.95);
  border-left: 5px solid #b80f08;
  padding: 20px;
  box-shadow: -4px 0 12px rgba(184, 15, 8, 0.5);
  font-size: 0.95rem;
  position: relative;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  font-size: 1.5rem;
  color: #b80f08;
  cursor: pointer;
}

.wanted-ad p {
  margin: 5px 0;
  text-align: center;
}

/* Wanted Suspect Block */
.wanted-suspect {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.9);
  border: 2px solid #b80f08;
  border-radius: 8px;
  max-width: 260px;
}

/* Suspect Image */
.wanted-suspect .wanted-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 2px solid #0000ff;
}

/* Suspect Name */
.wanted-suspect h3 {
  font-size: 1.3rem;
  font-family: 'BBH Sans Bartle', sans-serif;
  text-align: center;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wanted-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(184, 15, 8, 0.5);
}

.wanted-header .logo {
  height: 50px;
  width: auto;
  flex-shrink: 0;
  border-radius: 50%;
}

.wanted-header h2 {
  font-size: 1rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;
}


/* Report Button */
.report-btn {
  display: block;
  margin: 15px auto 0;
  padding: 10px 20px;
  background-color: #b80f08;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.report-btn:hover {
  background-color: #0000ff;
}


/* Planet Spotlight Page */

/* Planet Page Hero Section */
.planet-hero {
  text-align: center;
  padding: 60px 20px;
  background-color: rgba(0, 0, 0, 0.6);
  margin-top: 20px;
}

.planet-hero h1 {
  font-size: 2.8rem;
  text-transform: uppercase;
  line-height: 1.3;
}

.planet-hero .subtitle {
  margin-top: 15px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color:#0000ff;
  opacity: 0.9;
}

/* Planet Grid */
.planet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 50px;
  max-width: 1100px;
  margin: auto;
}

.planet-card {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 15px;
  text-align: center;
  border: 2px solid #b80f08;
  border-radius: 8px;
  transition: transform 0.2 ease, box-shadow 0.3 ease;
}

.planet-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #0000ff;
  margin-bottom: 10px;
}

.planet-card p {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/*Hover interaction*/
.planet-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(184, 15, 8, 0.6)
}

/*Planet Specs*/
.planet-spotlight {
  text-align: center;
  margin: 60px auto;
  padding-bottom: 40px;
  background-color: rgba(0, 0, 0, 0.6);
}

.planet-spotlight h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  border-left: none;
  padding: 0;
}

.planet-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  text-align: left;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  margin: 40px;
}

.planet-specs h4 {
  text-align: center;
  color:#b80f08;
}

.specs {
  /*border: 2px solid #0000ff;*/
}

#coruscant { grid-area: 1/1/2/2 }
#naboo { grid-area: 1/2/2/3 }
#cantonica { grid-area: 1/3/2/4 }
#denon { grid-area: 2/1/3/2 }
#corellia { grid-area: 2/2/3/3 }
#muunilinst { grid-area: 2/3/3/4 }

ul {
  padding-left: 40px;
}

strong {
  color:#0000ff;
}

/* =========================
   Ranks & Careers Page
   ========================= */

/* Page hero (separate from #hero so it doesn't collide with other pages) */
.ranks-hero {
  text-align: center;
  padding: 70px 20px;
  background-color: rgba(0, 0, 0, 0.65);
  margin-top: 20px;
}

.ranks-hero h1 {
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.ranks-hero .subtitle {
  margin: 15px auto 0;
  max-width: 900px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #0000ff;
  opacity: 0.9;
}

/* Shared content panel (matches your “dark card” look) */
.content-panel {
  max-width: 1100px;
  margin: 50px auto;
  padding: 25px 25px;
  background-color: rgba(0, 0, 0, 0.85);
  border-left: 5px solid #b80f08;
}

.content-panel p {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #ffffff;
  text-align: left;
  padding: 0;
  margin-top: 12px;
}

/* Small list for intro panel */
.icon-list {
  margin-top: 18px;
  padding-left: 22px;
}

.icon-list li {
  margin: 10px 0;
  line-height: 1.6;
}

/* CTA buttons */
.ranks-hero-actions,
.enlist-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.cta-btn {
  background-color: #b80f08;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 6px;
  display: inline-block;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #0000ff;
  transform: scale(1.03);
}

.cta-secondary {
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid #b80f08;
}

.cta-secondary:hover {
  border-color: #0000ff;
}

/* Rank grid */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.rank-card {
  background-color: rgba(0, 0, 0, 0.9);
  border: 2px solid #b80f08;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 0 10px rgba(184, 15, 8, 0.35);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.rank-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 16px rgba(184, 15, 8, 0.55);
}

.rank-card h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.rank-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #0000ff;
  color: #0000ff;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.rank-card p {
  margin-top: 10px;
  padding: 0;
  text-align: left;
}

.rank-card ul {
  margin-top: 12px;
  padding-left: 18px;
}

.rank-card li {
  margin: 8px 0;
  line-height: 1.5;
}

/* Career tracks */
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.career-card {
  background-color: rgba(0, 0, 0, 0.9);
  border: 2px solid #b80f08;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 0 10px rgba(184, 15, 8, 0.35);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.career-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 16px rgba(184, 15, 8, 0.55);
}

.career-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.career-card .subtitle {
  margin: 0 0 12px;
  color: #0000ff;
  font-style: italic;
}

.career-card ul {
  padding-left: 18px;
}

.career-card li {
  margin: 8px 0;
  line-height: 1.5;
}

.career-note {
  margin-top: 12px;
  padding: 0;
  text-align: left;
  color: #ffffff;
  opacity: 0.95;
}

/* Enlist panel */
.enlist-panel {
  max-width: 1100px;
  margin: 50px auto 70px;
  padding: 25px 25px;
  background-color: rgba(0, 0, 0, 0.75);
  border: 2px solid #b80f08;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(184, 15, 8, 0.35);
  text-align: center;
}

.enlist-panel p {
  margin-top: 10px;
  padding: 0;
  line-height: 1.7;
}

/* Make your existing <details> blocks look consistent inside content panels */
.content-panel details {
  max-width: 100%;
}
