/* Extravio CharKey Platform - Global Styling */

/* Import Manrope Font */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Unified Color Variables - Toned Down Glow */
:root {
  --neon-blend-glow: 0 0 4px rgba(255, 215, 0, 0.3), 0 0 8px rgba(255, 165, 0, 0.2);
  --neon-blend-glow-strong: 0 0 6px rgba(255, 215, 0, 0.4), 0 0 12px rgba(255, 165, 0, 0.3);
  --neon-primary: #FFA500;
  --dark-bg: #0c0c0e;
  --darker-bg: #1a1a1e;
  --card-bg: #111;
  --border-radius: 12px;
  --section-padding: 5rem 2rem;
  --gold-neon: #FFD700;
  --gold-neon-light: #FFED4E;
}

/* Global Font and Base Styles */
* {
  font-family: 'Manrope', sans-serif;
}

body {
  background: #000000 !important;
  color: white;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Extravio Professional Header */
.extravio-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #000000 !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 165, 0, 0.2);
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 200px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
  min-width: 200px;
}

/* Navigation Links - Centered Grid Column */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  width: 100%;
  position: relative;
}

/* Transparent nav-link highlight (active/hover) */
.nav-link.active,
.nav-link:hover {
  color: #FFA500;
  background: transparent !important;
  box-shadow: 0 0 0 2px rgba(255,165,0,0.12);
}

/* Logo with Circuitry Effects */
.logo-container {
  display: none !important;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: #FFA500;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 18px;
  position: relative;
}



.logo-text {
  color: white;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo-text:hover {
  color: #FFA500;
  text-decoration: none;
}

/* Navigation with Hover Glows */

.nav-link {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFA500;
  background: transparent;
  transform: none; /* Prevent transform shifts */
}

.nav-link.active {
  color: #FFA500;
  background: transparent;
}

/* Reputation Badge System */
.reputation-badge {
  background: #FFD700;
  color: #000;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  text-shadow: none;
}

.reputation-badge:hover {
  transform: scale(1.05);
}

/* Rarity Badge Styling - Enhanced Glows for All Rarities */
.rarity-legendary {
  background: var(--neon-primary);
  color: #000;
  font-weight: bold;
  text-shadow: none;
  box-shadow: 0 0 12px rgba(255, 165, 0, 0.8), 0 0 24px rgba(255, 165, 0, 0.6), 0 0 36px rgba(255, 165, 0, 0.4);
  border: 2px solid rgba(255, 165, 0, 1);
  transition: all 0.3s ease;
  animation: legendaryPulse 2s ease-in-out infinite alternate;
}

.rarity-legendary:hover {
  box-shadow: 0 0 20px rgba(255, 165, 0, 1), 0 0 40px rgba(255, 165, 0, 0.8), 0 0 60px rgba(255, 165, 0, 0.6);
  transform: scale(1.05);
}

@keyframes legendaryPulse {
  0% {
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.8), 0 0 24px rgba(255, 165, 0, 0.6), 0 0 36px rgba(255, 165, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 16px rgba(255, 165, 0, 0.9), 0 0 32px rgba(255, 165, 0, 0.7), 0 0 48px rgba(255, 165, 0, 0.5);
  }
}

.rarity-epic {
  background: #9932CC;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(153, 50, 204, 0.6), 0 0 16px rgba(153, 50, 204, 0.4), 0 0 24px rgba(153, 50, 204, 0.3);
  border: 2px solid rgba(153, 50, 204, 0.8);
  transition: all 0.3s ease;
  animation: epicPulse 2.5s ease-in-out infinite alternate;
}

.rarity-epic:hover {
  box-shadow: 0 0 20px rgba(153, 50, 204, 0.4), 0 0 40px rgba(153, 50, 204, 0.3), 0 0 60px rgba(153, 50, 204, 0.2);
  border-color: rgba(153, 50, 204, 0.8);
  transform: scale(1.05);
}

@keyframes epicPulse {
  0% {
    box-shadow: 0 0 8px rgba(153, 50, 204, 0.6), 0 0 16px rgba(153, 50, 204, 0.4), 0 0 24px rgba(153, 50, 204, 0.3);
  }
  100% {
    box-shadow: 0 0 12px rgba(153, 50, 204, 0.8), 0 0 24px rgba(153, 50, 204, 0.6), 0 0 36px rgba(153, 50, 204, 0.4);
  }
}

.rarity-rare {
  background: #0066FF;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(0, 102, 255, 0.5), 0 0 12px rgba(0, 102, 255, 0.3), 0 0 18px rgba(0, 102, 255, 0.2);
  border: 2px solid rgba(0, 102, 255, 0.7);
  transition: all 0.3s ease;
  animation: rarePulse 3s ease-in-out infinite alternate;
}

.rarity-rare:hover {
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.4), 0 0 40px rgba(0, 102, 255, 0.3), 0 0 60px rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.8);
  transform: scale(1.05);
}

@keyframes rarePulse {
  0% {
    box-shadow: 0 0 6px rgba(0, 102, 255, 0.5), 0 0 12px rgba(0, 102, 255, 0.3), 0 0 18px rgba(0, 102, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.7), 0 0 20px rgba(0, 102, 255, 0.5), 0 0 30px rgba(0, 102, 255, 0.3);
  }
}

.rarity-common {
  background: #6c757d;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(108, 117, 125, 0.4), 0 0 8px rgba(108, 117, 125, 0.2);
  border: 1px solid rgba(108, 117, 125, 0.6);
  transition: all 0.3s ease;
}

.rarity-common:hover {
  box-shadow: 0 0 8px rgba(108, 117, 125, 0.7), 0 0 16px rgba(108, 117, 125, 0.5), 0 0 24px rgba(108, 117, 125, 0.3);
  transform: scale(1.05);
}

.rarity-uncommon {
  background: #28a745;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(40, 167, 69, 0.4), 0 0 8px rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.6);
  transition: all 0.3s ease;
}

.rarity-uncommon:hover {
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.7), 0 0 16px rgba(40, 167, 69, 0.5), 0 0 24px rgba(40, 167, 69, 0.3);
  transform: scale(1.05);
}

.rarity-unique {
  background: #dc3545;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(220, 53, 69, 0.4), 0 0 8px rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.6);
  transition: all 0.3s ease;
}

.rarity-unique:hover {
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.7), 0 0 16px rgba(220, 53, 69, 0.5), 0 0 24px rgba(220, 53, 69, 0.3);
  transform: scale(1.05);
}

/* Unified Button Styles */
.button-primary {
  background: #FFA500;
  color: #000;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  position: relative;
}

.button-primary:hover {
  background: #FFB84D;
}

.button-outline {
  border: 2px solid var(--neon-primary);
  color: var(--neon-primary);
  background: transparent;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.button-outline:hover {
  background: rgba(255, 165, 0, 0.08);
}

.button-outline {
  border: 2px solid #FFA500;
  color: #FFA500;
  background: transparent;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  position: relative;
}

.button-outline:hover {
  background: rgba(255, 165, 0, 0.1);
}



/* Main Content Offset */
.main-content {
  margin-top: 5rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.main-content section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Content Section Alignment and Symmetry - Full Width Centering */
.content-section {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Hero Section Styles */
.hero-section {
  background: #000000 !important;
  padding: var(--section-padding);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 49%, rgba(255, 165, 0, 0.1) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 165, 0, 0.05) 50%, transparent 51%);
  background-size: 40px 40px;
  animation: circuitryMove 10s linear infinite;
  opacity: 0.3;
}

@keyframes circuitryMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--neon-primary);
  text-shadow: 0 0 4px rgba(255, 165, 0, 0.3);
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

/* Content Sections with Circuitry Effects */
.content-section {
  background: transparent;
  border: none;
  backdrop-filter: none;
  padding: 3rem 1.5rem;
  margin: 0;
}

/* Feature Card Styling */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 3rem auto;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-card {
  background: #000000 !important;
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
  height: fit-content;
  min-height: 320px;
}

.feature-card:hover {
  border-color: rgba(255, 165, 0, 0.4);
  background: #000000 !important;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.feature-card p {
  color: #ccc;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-card .icon-container {
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  background: var(--neon-primary);
}

/* Ensure equal height cards in grid */
.card-grid .feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Partnership Banner */
.partnership-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.partnership-banner:hover {
  opacity: 1;
}

.partner-logo {
  height: 40px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
}

/* Enhanced Button Spacing */
.hero-buttons .button-primary,
.hero-buttons .button-outline {
  min-width: 180px;
  text-align: center;
}

/* Professional Hover States */
.card-dark .button-primary:hover {
  transform: translateY(-1px);
}

/* Accessibility Improvements */
.nav-link:focus,
.button-primary:focus,
.button-outline:focus {
  outline: 2px solid var(--gold-neon);
  outline-offset: 2px;
}

/* Footer Consistency */
footer {
  background: #000000 !important;
  border-top: 1px solid rgba(255, 165, 0, 0.2);
  padding: 3rem 1rem;
  text-align: center;
  margin-top: 4rem;
}

footer p {
  margin-bottom: 1rem;
  color: #9ca3af;
}

footer nav a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0 0.5rem;
}

footer nav a:hover {
  color: var(--neon-primary);
}

/* Ensure proper spacing between sections */
.section-spacing {
  margin: 4rem 0;
}

/* Fix any remaining alignment issues */
.align-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Improved Standardized Card Layouts - Perfect Center Between Margins */
.standard-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  justify-items: center;
  align-items: start;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.standard-card {
  width: 100%;
  max-width: 300px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.standard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 165, 0, 0.15);
}

/* Responsive adjustments - Perfect Center Between Margins */
@media (max-width: 768px) {
  .standard-card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
    max-width: 450px;
    justify-items: center;
    margin: 0 auto;
  }
  
  .standard-card {
    max-width: 350px;
    min-height: 350px;
    padding: 0.875rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .standard-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 800px;
    justify-items: center;
    padding: 0 1.5rem;
    margin: 0 auto;
  }
}

@media (min-width: 1025px) {
  .standard-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    justify-items: center;
    padding: 0 2rem;
    margin: 0 auto;
  }
}

/* Home page specific - wider horizontal cards */
.home-page .feature-card {
  min-height: 250px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Center and evenly space all cards - Enhanced */
.centered-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.centered-cards .feature-card,
.centered-cards .standard-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* AI Guide Blog - Horizontal card layout */
.ai-guide-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.ai-guide-cards .feature-card,
.ai-guide-cards .standard-card {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  min-height: 200px;
}

.ai-guide-cards .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ai-guide-cards .card-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

@media (max-width: 768px) {
  .ai-guide-cards .feature-card,
  .ai-guide-cards .standard-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .ai-guide-cards .card-icon {
    width: 80px;
    height: 80px;
  }
}

/* Marketplace and Swap page card summaries */
.marketplace-summary {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Mobile Menu - Only visible on mobile devices */

/* Hide mobile menu toggle by default (desktop) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFA500;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 165, 0, 0.1);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Mobile-only styles - Show hamburger menu on tablets and mobile */
@media (max-width: 1024px) {
  /* Show mobile menu toggle on tablets and mobile */
  .mobile-menu-toggle {
    display: block !important;
  }
  
  /* Header adjustments for mobile - reduce padding and adjust layout */
  .extravio-header {
    padding: 0.5rem 1rem;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  
  /* Mobile header sections */
  .header-left {
    min-width: auto;
    flex: 1;
  }
  
  .header-right {
    min-width: auto;
    gap: 8px;
  }
  
  /* Hide desktop navigation on mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000000;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
    flex-direction: column;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  /* Show mobile menu when open */
  .nav-links.mobile-menu-open {
    display: flex !important;
  }
  
  /* Mobile nav link styles */
  .nav-links .nav-link {
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 165, 0, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
  }
  
  .nav-links .nav-link:hover {
    background-color: rgba(255, 165, 0, 0.1);
    color: #FFA500;
  }
  
  .nav-links .nav-link:last-child {
    border-bottom: none;
  }
}

/* Ensure mobile menu is hidden on desktop */
@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .nav-links {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    flex-direction: row !important;
    padding: 0 !important;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .extravio-header {
    padding: 0.5rem 0.75rem;
    height: 56px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .mobile-menu-toggle {
    padding: 4px;
  }
  
  .mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
  }
}

/* Ultra small screens */
@media (max-width: 360px) {
  .extravio-header {
    padding: 0.5rem;
  }
  
  .logo-text {
    font-size: 18px;
  }
}

/* Global Page Spacing Improvements */

/* Main content spacing from header */
.main-content {
  margin-top: 5rem;
  padding-top: 2rem;
}

/* Enhanced section spacing */
section {
  margin-bottom: 4rem;
}

section:last-child {
  margin-bottom: 2rem;
}

/* Card grids with better gaps */
.card-grid {
  gap: 2.5rem;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Form elements spacing */
.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  margin-bottom: 0.75rem;
  display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
  margin-bottom: 1rem;
}

/* List elements spacing */
ul, ol {
  margin-bottom: 2rem;
}

li {
  margin-bottom: 0.75rem;
}

/* Paragraph spacing */
p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Image and media spacing */
img {
  margin: 1.5rem 0;
}

/* Navigation link spacing */
.nav-link {
  margin: 0 0.5rem;
  padding: 0.75rem 1.25rem;
}

/* Contact page specific spacing */
.contact-form {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.contact-info {
  margin-bottom: 3rem;
}

/* About page specific spacing */
.about-section {
  margin-bottom: 4rem;
  padding: 3rem 2rem;
}

/* Blog/Guide page spacing */
.article-content {
  margin-bottom: 3rem;
}

.article-header {
  margin-bottom: 2.5rem;
}

/* Enhanced Spacing and Visual Gaps */

/* Main marketplace grid with improved spacing and centering */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  max-width: 1600px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
  justify-items: center;
}

/* Content sections with proper vertical rhythm */
.content-section {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
}

.content-section:last-child {
  margin-bottom: 2rem;
}

/* Hero section spacing */
.hero-section {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
}

/* Enhanced spacing for marketplace cards */
.marketplace-card {
  margin-bottom: 2rem;
  padding: 2rem;
}

/* Better spacing for feature cards */
.feature-card {
  margin-bottom: 2rem;
  padding: 2rem;
  gap: 1.5rem;
}

/* Improved button spacing */
.button-primary {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: white;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

/* Ensure all text is visible on dark background */
p, span, div {
  color: #ccc;
}

.text-bright {
  color: white;
}

/* Icon containers with solid color */
.icon-container {
  background: #FFA500;
}

/* Ensure consistent text alignment across all sections */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Fix any remaining large content boxes */
.content-box-large {
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #000000 !important;
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: var(--border-radius);
}

/* Ensure forum and other grid layouts are centered */
.centered-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-online {
  background: #10B981;
  color: #fff;
}

.status-offline {
  background: #6B7280;
  color: #fff;
}

/* Alpha Disclaimer Styling */
.alpha-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.alpha-badge {
  background: #dc2626;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 4px rgba(220, 38, 38, 0.3);
}

.alpha-text {
  color: #ccc;
  font-size: 0.875rem;
  font-weight: 500;
  font-style: italic;
}

/* Logo Image Styling */
.logo-image {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

/* Marketplace Price Hover Effect - Transparent and Inline */
.marketplace-price {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  z-index: 5;
}

.feature-card:hover .marketplace-price {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced Marketplace Card Hover Effects with Beautiful Glow */
.marketplace-card {
  position: relative;
  transition: all 0.3s ease;
  max-width: 420px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.marketplace-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Individual rarity-specific glows */
.rarity-unique.marketplace-card {
  border: 2px solid rgba(220, 53, 69, 0.6);
  box-shadow: 
    0 0 15px rgba(220, 53, 69, 0.4),
    0 0 30px rgba(220, 53, 69, 0.2),
    0 0 45px rgba(220, 53, 69, 0.1);
}

.rarity-unique.marketplace-card:hover {
  box-shadow: 
    0 0 25px rgba(220, 53, 69, 0.6),
    0 0 50px rgba(220, 53, 69, 0.4),
    0 0 75px rgba(220, 53, 69, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.rarity-legendary.marketplace-card {
  border: 2px solid rgba(255, 165, 0, 0.6);
  box-shadow: 
    0 0 15px rgba(255, 165, 0, 0.4),
    0 0 30px rgba(255, 165, 0, 0.2),
    0 0 45px rgba(255, 165, 0, 0.1);
}

.rarity-legendary.marketplace-card:hover {
  box-shadow: 
    0 0 25px rgba(255, 165, 0, 0.6),
    0 0 50px rgba(255, 165, 0, 0.4),
    0 0 75px rgba(255, 165, 0, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.rarity-epic.marketplace-card {
  border: 2px solid rgba(147, 51, 234, 0.6);
  box-shadow: 
    0 0 15px rgba(147, 51, 234, 0.4),
    0 0 30px rgba(147, 51, 234, 0.2),
    0 0 45px rgba(147, 51, 234, 0.1);
}

.rarity-epic.marketplace-card:hover {
  box-shadow: 
    0 0 25px rgba(147, 51, 234, 0.6),
    0 0 50px rgba(147, 51, 234, 0.4),
    0 0 75px rgba(147, 51, 234, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.rarity-rare.marketplace-card {
  border: 2px solid rgba(59, 130, 246, 0.6);
  box-shadow: 
    0 0 15px rgba(59, 130, 246, 0.4),
    0 0 30px rgba(59, 130, 246, 0.2),
    0 0 45px rgba(59, 130, 246, 0.1);
}

.rarity-rare.marketplace-card:hover {
  box-shadow: 
    0 0 25px rgba(59, 130, 246, 0.6),
    0 0 50px rgba(59, 130, 246, 0.4),
    0 0 75px rgba(59, 130, 246, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.rarity-uncommon.marketplace-card {
  border: 2px solid rgba(40, 167, 69, 0.6);
  box-shadow: 
    0 0 15px rgba(40, 167, 69, 0.4),
    0 0 30px rgba(40, 167, 69, 0.2),
    0 0 45px rgba(40, 167, 69, 0.1);
}

.rarity-uncommon.marketplace-card:hover {
  box-shadow: 
    0 0 25px rgba(40, 167, 69, 0.6),
    0 0 50px rgba(40, 167, 69, 0.4),
    0 0 75px rgba(40, 167, 69, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.rarity-common.marketplace-card {
  border: 2px solid rgba(108, 117, 125, 0.6);
  box-shadow: 
    0 0 15px rgba(108, 117, 125, 0.4),
    0 0 30px rgba(108, 117, 125, 0.2),
    0 0 45px rgba(108, 117, 125, 0.1);
}

.rarity-common.marketplace-card:hover {
  box-shadow: 
    0 0 25px rgba(108, 117, 125, 0.6),
    0 0 50px rgba(108, 117, 125, 0.4),
    0 0 75px rgba(108, 117, 125, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

/* CharKey Discovery Game Styles */
#charkey-display {
  background: rgba(156, 163, 175, 0.1);
  border-color: #9ca3af;
  color: #9ca3af;
}

#charkey-rarity {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
  border: 1px solid #9ca3af;
}

#discovery-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.discovery-animation {
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Particle buzzing animation for CharKey Stealth hover */
@keyframes buzz-particles {
  0% { transform: translateX(0px) translateY(0px); }
  25% { transform: translateX(-1px) translateY(-1px); }
  50% { transform: translateX(1px) translateY(0px); }
  75% { transform: translateX(0px) translateY(1px); }
  100% { transform: translateX(-1px) translateY(-1px); }
}

/* Enhanced CharKey Stealth container hover effects */
#charkey-stealth-container:hover + #particles {
  animation: buzz-particles 0.1s infinite alternate;
  filter: brightness(1.5);
}

/* Feature Card Rarity Hover Effects - Unified Glow Aesthetic */
.feature-card.rarity-legendary:hover {
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.4), 0 0 40px rgba(255, 165, 0, 0.3), 0 0 60px rgba(255, 165, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.8);
}

.feature-card.rarity-epic:hover {
  box-shadow: 0 0 20px rgba(153, 50, 204, 0.4), 0 0 40px rgba(153, 50, 204, 0.3), 0 0 60px rgba(153, 50, 204, 0.2);
  border-color: rgba(153, 50, 204, 0.8);
}

.feature-card.rarity-rare:hover {
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.4), 0 0 40px rgba(0, 102, 255, 0.3), 0 0 60px rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.8);
}

.feature-card.rarity-common:hover {
  box-shadow: 0 0 20px rgba(108, 117, 125, 0.4), 0 0 40px rgba(108, 117, 125, 0.3), 0 0 60px rgba(108, 117, 125, 0.2);
  border-color: rgba(108, 117, 125, 0.8);
}

.feature-card.rarity-unique:hover {
  box-shadow: 0 0 20px rgba(220, 53, 69, 0.4), 0 0 40px rgba(220, 53, 69, 0.3), 0 0 60px rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.8);
}

/* Transparent Backgrounds for Better Animation Visibility */
section {
  background: transparent !important;
}

.content-section {
  background: transparent !important;
}

.hero-section {
  background: transparent !important;
}

.py-12, .py-16, .py-20 {
  background: transparent !important;
}

/* Keep card containers opaque for readability */
.feature-card {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(10px);
}

.marketplace-card {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(10px);
}

/* Ensure text containers remain readable */
.text-center {
  background: transparent !important;
}

.max-w-3xl, .max-w-4xl, .max-w-5xl, .max-w-6xl {
  background: transparent !important;
}

/* Main content areas transparent */
.main-content {
  background: transparent !important;
}

/* Grid containers transparent */
.grid, .card-grid, .marketplace-grid {
  background: transparent !important;
}

/* Additional transparent containers */
.relative, .flex, .justify-center {
  background: transparent !important;
}

/* Text containers */
.text-center {
  background: transparent !important;
}

.mb-12, .mb-16, .mb-8, .mb-6, .mb-4 {
  background: transparent !important;
}

/* Wrapper divs */
div[class*="max-w-"] {
  background: transparent !important;
}

div[class*="mx-auto"] {
  background: transparent !important;
}

/* Ensure main wrapper areas are transparent */
.py-12, .py-16, .py-20 {
  background: transparent !important;
}

/* Orange backgrounds for text legibility in marketplace and swap boxes */
.marketplace-card p,
.marketplace-card .marketplace-price,
.marketplace-card .flex.items-center.justify-between {
  background: rgba(255, 165, 0, 0.1) !important;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 165, 0, 0.2);
}

/* Purchase and Swap button styling with orange theme */
.marketplace-card a[href*="/contact"],
.marketplace-card a[class*="button-primary"] {
  background: linear-gradient(45deg, #FFA500, #FFB84D) !important;
  color: #000 !important;
  font-weight: bold;
  text-shadow: none;
  border: 2px solid rgba(255, 165, 0, 0.8);
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.marketplace-card a[href*="/contact"]:hover,
.marketplace-card a[class*="button-primary"]:hover {
  background: linear-gradient(45deg, #FFB84D, #FFC966) !important;
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
  transform: translateY(-2px);
}

/* Swap page specific styling */
.rarity-unique .marketplace-card p,
.rarity-legendary .marketplace-card p,
.rarity-epic .marketplace-card p,
.rarity-rare .marketplace-card p,
.rarity-uncommon .marketplace-card p,
.rarity-common .marketplace-card p {
  background: rgba(255, 165, 0, 0.15) !important;
  backdrop-filter: blur(5px);
}

/* Text Legibility - Removed Global Black Shadows */
/* Global text shadows removed per user request */

/* Enhanced text shadows for headings only */
h1, h2, h3, .hero-title, .hero-subtitle {
  text-shadow: none;
}

/* Ensure card backgrounds have enough contrast */
.feature-card, .marketplace-card {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px);
}

/* Fix TBD price positioning and improve button text legibility */
.marketplace-price {
  position: relative;
  margin: 1rem 0;
  padding: 0.5rem 0;
  z-index: 1;
  display: block;
  clear: both;
  width: 100%;
}

/* Button text styling - No shadows */
.button-primary, .button-outline, .nav-link {
  text-shadow: none !important;
}

/* Text styling for orange containers and buttons - No shadows */
.button-primary, .marketplace-price, .rarity-badge, 
[style*="background-color: #FFA500"], [style*="background: #FFA500"],
[class*="orange"], [class*="rarity-"] {
  text-shadow: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Card content spacing to prevent overlaps */
.marketplace-card .relative {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Text Legibility - Black Outlines for Non-Card Text */

/* Hero section text outlines */
.hero-title,
.hero-subtitle,
.alpha-text {
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 2px rgba(0, 0, 0, 0.8) !important;
}

/* Main headings and bright text outside cards */
.text-bright,
h1, h2, h3 {
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 2px rgba(0, 0, 0, 0.8) !important;
}

/* Paragraph text and gray text outside cards */
.text-gray-300,
.text-gray-400,
.hero-subtitle,
p:not(.feature-card p):not(.marketplace-card p) {
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 2px rgba(0, 0, 0, 0.8) !important;
}

/* Orange/gold text outside cards */
.text-gold-neon,
.text-orange-400,
.button-outline,
.alpha-badge {
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 2px rgba(0, 0, 0, 0.8) !important;
}

/* Exclude card content from text shadows */
.feature-card *,
.marketplace-card *,
.card * {
  text-shadow: none !important;
}

/* Side-by-side layout height matching for home page */
.side-by-side-container {
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

.side-by-side-left,
.side-by-side-right {
  display: flex;
  flex-direction: column;
}

.side-by-side-left {
  align-items: stretch;
}

.side-by-side-right {
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.side-by-side-left > div {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.side-by-side-left .feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem !important;
}

/* Ensure equal heights on larger screens */
@media (min-width: 1024px) {
  .side-by-side-container {
    align-items: stretch;
  }
  
  .side-by-side-left,
  .side-by-side-right {
    min-height: 400px; /* Set a minimum height to ensure balance */
  }
  
  .side-by-side-left #charkey-stealth-container {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .side-by-side-left #charkey-stealth-container .feature-card {
    flex: 1;
    min-height: 400px; /* Match the minimum height */
  }
  
  .side-by-side-right {
    text-align: left;
  }
}

/* Prevent text overflow and ensure proper spacing */
.side-by-side-left .feature-card h3,
.side-by-side-left .feature-card h4,
.side-by-side-left .feature-card p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.side-by-side-left .feature-card .button-primary {
  margin-top: 1rem;
  font-size: 0.875rem;
  padding: 0.5rem 1.5rem;
}
