/* Star Rebells [STARREBELL] — Shared Styles */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #ff6b00;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00e5ff;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── Starfield Background ─── */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.starfield::before,
.starfield::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.starfield::before {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 230px 80px, #fff, transparent),
    radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 350px 200px, #fff, transparent),
    radial-gradient(2px 2px at 400px 50px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 450px 250px, #fff, transparent),
    radial-gradient(2px 2px at 500px 180px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 550px 90px, #fff, transparent),
    radial-gradient(2px 2px at 600px 220px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 650px 300px, #fff, transparent),
    radial-gradient(2px 2px at 700px 60px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 750px 140px, #fff, transparent),
    radial-gradient(2px 2px at 800px 260px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 850px 110px, #fff, transparent),
    radial-gradient(2px 2px at 900px 190px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 950px 280px, #fff, transparent),
    radial-gradient(2px 2px at 1000px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 1100px 160px, #fff, transparent),
    radial-gradient(2px 2px at 1200px 240px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 1300px 100px, #fff, transparent),
    radial-gradient(2px 2px at 1400px 200px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 1500px 130px, #fff, transparent),
    radial-gradient(2px 2px at 1600px 270px, rgba(255,255,255,0.8), transparent);
  background-repeat: repeat;
  background-size: 1800px 400px;
  animation: twinkle 8s ease-in-out infinite alternate;
}

.starfield::after {
  background-image:
    radial-gradient(1px 1px at 50px 100px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 150px 50px, #fff, transparent),
    radial-gradient(1px 1px at 250px 150px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 350px 80px, #fff, transparent),
    radial-gradient(1px 1px at 450px 200px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 550px 120px, #fff, transparent),
    radial-gradient(1px 1px at 650px 250px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 750px 40px, #fff, transparent),
    radial-gradient(1px 1px at 850px 180px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 950px 90px, #fff, transparent);
  background-repeat: repeat;
  background-size: 1000px 300px;
  animation: twinkle 12s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
  transition: background 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff6b00;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wappen {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 0, 0.4);
}

.logo span {
  color: #00e5ff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #b0b0b0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b00;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ff6b00;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Main Content Spacing ─── */
main {
  padding-top: 70px;
}

/* ─── Hero ─── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem;
}

.hero-content {
  max-width: 900px;
}

.hero-wappen {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 107, 0, 0.5);
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.2), 0 0 80px rgba(0, 229, 255, 0.1);
  margin-bottom: 1.5rem;
  animation: wappen-glow 3s ease-in-out infinite alternate;
}

@keyframes wappen-glow {
  from { box-shadow: 0 0 40px rgba(255, 107, 0, 0.2), 0 0 80px rgba(0, 229, 255, 0.1); }
  to { box-shadow: 0 0 60px rgba(255, 107, 0, 0.3), 0 0 100px rgba(0, 229, 255, 0.2); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero h1 .accent {
  color: #ff6b00;
}

.hero h1 .cyan {
  color: #00e5ff;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #b0b0b0;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff6b00;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: #ff6b00;
  color: #fff;
}

.btn-primary:hover {
  background: #e55a00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #00e5ff;
  border: 2px solid #00e5ff;
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  color: #00e5ff;
  transform: translateY(-2px);
}

/* ─── Section ─── */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.section-title .accent {
  color: #ff6b00;
}

/* ─── 3D Fleet Viewer CTA ─── */
.fleet-viewer-cta {
  background: linear-gradient(135deg, rgba(255,107,0,0.08) 0%, rgba(0,229,255,0.06) 100%);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 700px;
  position: relative;
  overflow: hidden;
}

.fleet-viewer-cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0,229,255,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255,107,0,0.04) 0%, transparent 50%);
  animation: fleetGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes fleetGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, 1%) rotate(2deg); }
}

.fleet-viewer-cta .section-title {
  margin-bottom: 0.8rem;
}

.fleet-viewer-cta .section-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.fleet-viewer-cta .btn-primary {
  position: relative;
  z-index: 1;
  animation: fleetPulse 3s ease-in-out infinite;
}

@keyframes fleetPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(255,107,0,0.2); }
  50% { box-shadow: 0 4px 30px rgba(255,107,0,0.4), 0 0 60px rgba(255,107,0,0.1); }
}

.section-subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ─── Cards ─── */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.1);
}

/* ─── Grid ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

/* ─── Teaser Cards ─── */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.teaser-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.teaser-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.08);
}

.teaser-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.teaser-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.teaser-card p {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.teaser-link {
  color: #00e5ff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.teaser-link:hover {
  color: #ff6b00;
}

/* ─── Ship Cards ─── */
.ship-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ship-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ff6b00;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.ship-card:hover::before {
  transform: scaleX(1);
}

.ship-card:hover {
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.1);
}

.ship-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.ship-manufacturer {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.ship-desc {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
}

.ship-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 107, 0, 0.2);
  color: #ff6b00;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* ─── Filter ─── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b0b0b0;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(255, 107, 0, 0.2);
  border-color: #ff6b00;
  color: #ff6b00;
}

/* ─── Crew Cards ─── */
.crew-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.crew-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.1);
}

.crew-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  border: 2px solid rgba(255, 107, 0, 0.3);
}

.crew-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.crew-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.crew-link:hover {
  color: #5865F2;
  text-decoration: underline;
}

.discord-banner {
  text-align: center;
  margin-bottom: 2rem;
}

.btn-discord {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: #5865F2;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-2px);
}

.crew-rank {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.rank-meister {
  background: rgba(255, 107, 0, 0.2);
  color: #ff6b00;
}

.rank-experte {
  background: rgba(0, 229, 255, 0.2);
  color: #00e5ff;
}

.rank-veteran {
  background: rgba(150, 100, 255, 0.2);
  color: #b088ff;
}

.rank-stamm {
  background: rgba(100, 200, 100, 0.2);
  color: #64c864;
}

.rank-rekrut {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.crew-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crew-tag {
  font-size: 0.75rem;
  color: #666;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

/* ─── Recruitment ─── */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.offer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.offer-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.08);
}

.offer-card.offer-neg {
  border-color: rgba(255, 80, 80, 0.15);
}

.offer-card.offer-neg:hover {
  border-color: rgba(255, 80, 80, 0.4);
  box-shadow: 0 12px 40px rgba(255, 80, 80, 0.08);
}

.offer-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.offer-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.offer-card p {
  color: #888;
  font-size: 0.95rem;
}

.cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 107, 0, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 0, 0.15);
}

.cta-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ─── About / Stats ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-4px);
}

.stat-card .number {
  font-size: 3rem;
  font-weight: 800;
  color: #ff6b00;
  display: block;
}

.stat-card .label {
  color: #888;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 107, 0, 0.3);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b00;
  transform: translateX(-4px);
}

.timeline-year {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ff6b00;
  margin-bottom: 0.25rem;
}

.timeline-text {
  color: #aaa;
}

/* ─── Footer ─── */
.footer {
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 107, 0, 0.2);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #888;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ff6b00;
}

.footer-copy {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-powered {
  color: #444;
  font-size: 0.85rem;
}

.footer-powered span {
  color: #ff6b00;
}

/* ─── Fade-in Animation ─── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.75rem 0;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
  }

  .grid,
  .grid-2,
  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero {
    min-height: 80vh;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-card .number {
    font-size: 2rem;
  }
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none !important; }
