/* ============================================================
   Alien Edition — edition-alien.css
   Biomechanical dark: phosphor green glows, glass cards,
   deep-space background texture at low opacity.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #060608;
  color: #c8ffd4;
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* ── Scanline overlay ── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.06) 1px,
    rgba(0, 0, 0, 0.06) 2px
  );
  background-size: 100% 2px;
  opacity: 0.04;
}

/* ── Curtain ── */
.al-curtain {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 9998;
  pointer-events: none;
}

/* ── Hero section ── */
.al-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background texture layer */
.al-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/alien-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

/* Radial vignette */
.al-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 30%, #060608 100%);
  pointer-events: none;
}

/* ── Header masthead ── */
.al-masthead {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
}

.al-masthead-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5em;
  color: #00ff41;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.al-masthead-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 72px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00ff41;
  text-shadow:
    0 0 20px rgba(0, 255, 65, 0.8),
    0 0 60px rgba(0, 255, 65, 0.3);
  line-height: 1;
  min-height: 1.1em;
  display: block;
}

.al-masthead-rule {
  width: 280px;
  height: 1px;
  background: linear-gradient(to right, transparent, #00ff41, transparent);
  margin: 20px auto;
  transform-origin: center;
}

.al-masthead-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #39ff14;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── System status bar ── */
.al-status-bar {
  position: relative;
  z-index: 10;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #00ff41;
  letter-spacing: 0.15em;
  opacity: 0;
}

.al-status-bar::before {
  content: '▶';
  color: #39ff14;
}

.al-status-item {
  opacity: 0.6;
}

.al-status-item.active {
  opacity: 1;
  color: #7fff00;
}

/* ── Scroll indicator ── */
.al-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: #00ff41;
  text-transform: uppercase;
  opacity: 0;
  text-align: center;
}

.al-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, #00ff41, transparent);
  margin: 8px auto 0;
}

/* ── Main content ── */
.al-main {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ── Featured: PRIORITY ONE panel ── */
.al-priority {
  margin: 0 0 64px;
  border: 1px solid rgba(0, 255, 65, 0.35);
  background: rgba(0, 14, 4, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.al-priority::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.al-priority-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
  background: rgba(0, 255, 65, 0.04);
}

.al-priority-badge {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: #000;
  background: #00ff41;
  padding: 3px 10px;
  text-transform: uppercase;
}

.al-priority-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #00ff41;
  opacity: 0.7;
  flex: 1;
}

.al-priority-blink {
  width: 6px;
  height: 6px;
  background: #00ff41;
  border-radius: 50%;
  animation: al-blink 1.4s step-end infinite;
}

@keyframes al-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.al-priority-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 767px) {
  .al-priority-body {
    grid-template-columns: 1fr;
  }
}

.al-priority-image {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.al-priority-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.2) saturate(0.6);
}

.al-priority-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(0, 14, 4, 0.95) 100%);
  pointer-events: none;
}

.al-priority-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #001403 0%, #000804 100%);
}

.al-priority-image-placeholder-letter {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 96px;
  color: #00ff41;
  opacity: 0.08;
}

.al-priority-info {
  padding: 28px 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.al-priority-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 28px);
  letter-spacing: 0.1em;
  color: #00ff41;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 255, 65, 0.5);
  line-height: 1.2;
}

.al-priority-tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #c8ffd4;
  opacity: 0.75;
  line-height: 1.5;
}

.al-priority-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.al-hazard-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(0, 255, 65, 0.4);
  color: #00ff41;
  background: rgba(0, 255, 65, 0.06);
}

.al-priority-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.al-priority-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: #39ff14;
  opacity: 0.85;
  display: block;
  transition: none;
}

/* Ambient glow pulse (GSAP) */
.al-priority-glow {
  position: absolute;
  inset: -1px;
  border: 1px solid #00ff41;
  pointer-events: none;
  opacity: 0.35;
}

/* ── Section headers ── */
.al-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 56px 0 24px;
}

.al-section-left-line {
  width: 24px;
  height: 1px;
  background: #00ff41;
  flex-shrink: 0;
  transform-origin: right center;
}

.al-section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(10px, 1.8vw, 14px);
  letter-spacing: 0.5em;
  color: #00ff41;
  text-transform: uppercase;
  white-space: nowrap;
}

.al-section-right-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #00ff41, transparent);
  transform-origin: left center;
}

/* ── Site card grid ── */
.al-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* ── Glass card ── */
.al-card {
  background: rgba(0, 20, 5, 0.85);
  border: 1px solid rgba(0, 255, 65, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: none;
}

.al-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Card flicker effect (applied via JS randomly) */
.al-card.al-flicker {
  animation: al-card-flicker 4s ease-in-out infinite;
}

@keyframes al-card-flicker {
  0%, 96%, 100% { border-color: rgba(0, 255, 65, 0.2); }
  97% { border-color: rgba(0, 255, 65, 0.9); }
  98% { border-color: rgba(0, 255, 65, 0.2); }
  99% { border-color: rgba(0, 255, 65, 0.7); }
}

.al-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.al-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.15) saturate(0.5) hue-rotate(40deg);
}

.al-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 14, 4, 0.95) 100%);
  pointer-events: none;
}

.al-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #001a06 0%, #000c03 100%);
}

.al-card-image-placeholder-letter {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 64px;
  color: #00ff41;
  opacity: 0.1;
}

.al-card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.al-card-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #c8ffd4;
  text-transform: uppercase;
}

.al-card-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #00ff41;
  opacity: 0.5;
  letter-spacing: 0.08em;
}

.al-card-pages {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.al-card-page-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #39ff14;
  opacity: 0.75;
  display: block;
  transition: none;
}

/* ── No-motion overrides ── */
.no-motion .al-curtain {
  opacity: 0 !important;
}

.no-motion .al-card,
.no-motion .al-priority,
.no-motion .al-section-header,
.no-motion .al-masthead,
.no-motion .al-status-bar,
.no-motion .al-scroll-hint {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.no-motion .al-section-left-line,
.no-motion .al-section-right-line {
  transform: scaleX(1) !important;
}

/* ── Footer ── */
.al-footer {
  border-top: 1px solid rgba(0, 255, 65, 0.12);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(0, 8, 2, 0.9);
}

.al-footer-brand {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(0, 255, 65, 0.3);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.al-footer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.al-footer-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0, 255, 65, 0.3);
}

.al-footer-sep {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0, 255, 65, 0.2);
}
