/* ==========================================
   Aegleseeker Client - Compiled Stylesheet
   DirectX 11 Minecraft Bedrock Edition Client
   Medium Pink-Purple Gradient Aesthetic
   ========================================== */

:root {
  --bg-dark: #09070e;
  --bg-card: rgba(18, 14, 28, 0.72);
  --bg-card-hover: rgba(28, 20, 44, 0.85);
  --bg-glass: rgba(16, 12, 24, 0.65);
  --bg-nav: rgba(9, 7, 14, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(232, 121, 249, 0.35);
  --pink-light: #f472b6;
  --pink-magenta: #e879f9;
  --purple-pink: #d946ef;
  --purple-medium: #c026d3;
  --purple-deep: #a855f7;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --gradient-primary: linear-gradient(135deg, #f472b6 0%, #d946ef 50%, #a855f7 100%);
  --gradient-accent: linear-gradient(135deg, #e879f9 0%, #8b5cf6 100%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  --text-bright: #ffffff;
  --text-primary: #f3e8ff;
  --text-secondary: #c084fc;
  --text-muted: #94a3b8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --glow-primary: 0 0 25px rgba(217, 70, 239, 0.38);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(232, 121, 249, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(168, 85, 247, 0.09) 0%, transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

code,
pre {
  font-family: var(--font-mono);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(232, 121, 249, 0.25);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 121, 249, 0.5);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(232, 121, 249, 0.12);
  color: var(--pink-magenta);
  border: 1px solid rgba(232, 121, 249, 0.3);
}

.badge--purple {
  background: rgba(168, 85, 247, 0.14);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.35);
}

.badge--green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.25s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-bright);
}

.brand img {
  width: 34px;
  height: 34px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-magenta);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.15s ease;
  border-radius: var(--radius-full);
}

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

.mobile-toggle {
  display: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

@media (max-width: 1024px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 9, 20, 0.96);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
  text-align: center;
  user-select: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #0c0a14;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(232, 121, 249, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 121, 249, 0.55);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--outline:hover {
  background: rgba(232, 121, 249, 0.1);
  border-color: var(--pink-magenta);
  color: var(--pink-magenta);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
  padding: 9.5rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1025px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1.25rem 0;
  color: var(--text-bright);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e2d9f3;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Live Client HUD Window Preview */
.hud-window {
  background: rgba(14, 10, 22, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(232, 121, 249, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(217, 70, 239, 0.2);
  overflow: hidden;
}

.hud-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-dots span:nth-child(1) {
  background: #ff5f56;
}

.window-dots span:nth-child(2) {
  background: #ffbd2e;
}

.window-dots span:nth-child(3) {
  background: #27c93f;
}

.window-title {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.hud-body {
  padding: 1.5rem;
  min-height: 280px;
  background: radial-gradient(circle at center, rgba(28, 18, 44, 0.7) 0%, rgba(9, 7, 14, 0.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-watermark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.4rem 0.88rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--pink-magenta);
  width: fit-content;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-bright);
}

.hud-watermark span {
  color: var(--pink-magenta);
}

.hud-middle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin: 1.5rem 0;
}

.keystrokes-grid {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  gap: 4px;
}

.key-box {
  height: 36px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.key-w {
  grid-column: 2;
}

.key-a {
  grid-column: 1;
}

.key-s {
  grid-column: 2;
}

.key-d {
  grid-column: 3;
}

.key-box.active {
  background: rgba(232, 121, 249, 0.3);
  border-color: var(--pink-magenta);
  color: var(--text-bright);
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.45);
}

.arraylist-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.array-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 0, 0, 0.65);
  border-right: 2px solid var(--pink-light);
  border-radius: 2px;
  color: var(--text-bright);
}

.array-item:nth-child(2) {
  border-color: var(--pink-magenta);
}

.array-item:nth-child(3) {
  border-color: var(--purple-pink);
}

.array-item:nth-child(4) {
  border-color: var(--purple-deep);
}

.hud-stats-bar {
  display: flex;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hud-stats-bar strong {
  color: var(--pink-magenta);
}

/* Stats Banner */
.stats-banner {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 10, 22, 0.45);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 1025px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bright);
  margin: 0.75rem 0;
}

.section-desc {
  color: #cbd5e1;
  font-size: 1rem;
}

/* Modules Section & Search */
.modules-section {
  padding: 6rem 0;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1025px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: rgba(232, 121, 249, 0.16);
  color: var(--pink-magenta);
  border-color: rgba(232, 121, 249, 0.4);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.6rem;
  border-radius: var(--radius-md);
  background: rgba(18, 14, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
  font-size: 0.9rem;
  outline: none;
}

.search-box input:focus {
  border-color: var(--pink-magenta);
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.3);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.module-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 121, 249, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.module-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.module-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.2rem;
}

.module-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pink-magenta);
  font-weight: 600;
}

.module-desc {
  font-size: 0.88rem;
  color: #e2d9f3;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.keybind-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Architecture Features Grid */
.features-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.06) 0%, transparent 60%);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(232, 121, 249, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(232, 121, 249, 0.12);
  border: 1px solid rgba(232, 121, 249, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-magenta);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Installation Guide */
.install-section {
  padding: 6rem 0;
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1025px) {
  .install-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #0c0a14;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.code-box {
  background: #090710;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copy-btn {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
}

.copy-btn:hover {
  color: var(--pink-magenta);
}

.code-box pre {
  padding: 1rem;
  font-size: 0.85rem;
  color: #f472b6;
  overflow-x: auto;
}

/* GitHub Repo View Widget Container */
.github-widget-container {
  background: rgba(18, 14, 28, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 121, 249, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 920px;
  margin: 3rem auto 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.widget-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.repo-site-viewer {
  background: #090710;
  padding: 1.25rem;
}

.repo-meta-bar {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.repo-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.repo-meta-item strong {
  color: var(--text-bright);
}

.repo-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.file-row:hover {
  background: rgba(232, 121, 249, 0.08);
  border-color: rgba(232, 121, 249, 0.25);
}

/* Commit date label */
.file-row .commit-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.file-name {
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-desc {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem;
  background: rgba(7, 5, 12, 0.95);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1025px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-brand span {
  font-weight: 700;
  color: var(--text-bright);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}