
/* COMPLETE UNIVERSE THEME - EVERYTHING STYLED */

/* Reset and Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --universe-bg: linear-gradient(135deg, #070b1a 0%, #1a1a2e 60%, #2d1857 100%);
  --universe-stars: repeating-radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px 100%),
    repeating-radial-gradient(circle at 80% 70%, #fff8 0 1.5px, transparent 2px 100%),
    repeating-radial-gradient(circle at 50% 10%, #ffd700 0 1.2px, transparent 2px 100%),
    repeating-radial-gradient(circle at 60% 80%, #a3cef1 0 1px, transparent 2px 100%);
  --universe-card: rgba(25, 30, 55, 0.95);
  --universe-accent: #ffd700;
  --universe-accent2: #a3cef1;
  --universe-accent3: #ff6f91;
  --universe-accent4: #7c3aed;
  --universe-text: #e0e6f7;
  --universe-nav-bg: rgba(15, 20, 40, 0.98);
  --universe-nav-border: #7c3aed;
  --universe-nav-active: #ffd700;
}

/* Body and Global Styles - UNIVERSE THEME ONLY */
html, body {
  background: var(--universe-bg) fixed !important;
  color: var(--universe-text) !important;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: var(--universe-stars);
  opacity: 0.6;
}

/* Star Constellation Figures */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: 
    /* Number "2" constellation - top right */
    radial-gradient(circle at 75% 15%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 78% 15%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 81% 15%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 83% 17%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 83% 20%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 81% 22%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 78% 22%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 75% 24%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 75% 27%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 78% 29%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 81% 29%, #ffd700 1px, transparent 2px),
    radial-gradient(circle at 83% 29%, #ffd700 1px, transparent 2px);
  
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.4; }
}

main, header, footer, nav, section, div, article, aside {
  position: relative;
  z-index: 1;
}

/* Typography - All cosmic colors */
h1, h2, h3, h4, h5, h6 {
  color: var(--universe-accent) !important;
  text-shadow: 0 0 12px var(--universe-accent) !important;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 1.8rem !important;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

h2 {
  font-size: 2.2rem !important;
  text-align: center;
  margin-bottom: 1.5rem !important;
}

h3 {
  font-size: 1.4rem !important;
  margin-bottom: 1rem !important;
}

p {
  color: var(--universe-text) !important;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

/* Header - cosmic styling */
header {
  background: linear-gradient(180deg, rgba(15, 20, 40, 0.95), rgba(15, 20, 40, 0.8)) !important;
  color: var(--universe-text) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
  padding: 1rem 0 !important;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

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

.logo {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6)) !important;
  margin-right: 1rem;
}

/* Navigation - improved cosmic glass effect */
nav, nav.main-nav {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(255, 215, 0, 0.1)) !important;
  border-radius: 2rem !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(124, 58, 237, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  padding: 0.75rem 1.5rem !important;
  backdrop-filter: blur(20px) !important;
  display: flex;
  gap: 0.5rem;
}

nav a, nav.main-nav a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 1.5rem !important;
  position: relative;
  white-space: nowrap;
}

nav a.active, nav.main-nav a.active {
  color: var(--universe-accent) !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1)) !important;
  box-shadow: 
    0 4px 12px rgba(255, 215, 0, 0.3),
    inset 0 1px 0 rgba(255, 215, 0, 0.2) !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5) !important;
  font-weight: 600 !important;
}

nav a:hover, nav.main-nav a:hover {
  color: var(--universe-accent2) !important;
  background: linear-gradient(135deg, rgba(163, 206, 241, 0.2), rgba(163, 206, 241, 0.1)) !important;
  box-shadow: 0 4px 12px rgba(163, 206, 241, 0.2) !important;
  text-shadow: 0 0 6px rgba(163, 206, 241, 0.4) !important;
  transform: translateY(-1px);
}

nav a:active, nav.main-nav a:active {
  transform: translateY(0);
}

/* Main Content */
main {
  padding: 2rem 1rem !important;
  background: transparent !important;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--universe-card) !important;
  border-radius: 1rem !important;
  box-shadow: 0 6px 30px #000a, 0 0 40px #7c3aed33 !important;
  margin-bottom: 2rem !important;
  border: 1px solid rgba(124, 58, 237, 0.4) !important;
  backdrop-filter: blur(15px) !important;
}

.hero {
  background: transparent !important;
  color: var(--universe-accent2) !important;
  text-align: center;
  padding: 3rem 1rem 2rem 1rem !important;
  text-shadow: 0 0 12px #fff4, 0 0 30px #7c3aed55 !important;
}

.subtitle {
  font-style: italic !important;
  color: var(--universe-accent3) !important;
  text-shadow: 0 0 8px var(--universe-accent3) !important;
  font-size: 1.1rem !important;
}

#countdown {
  background: var(--universe-card) !important;
  color: var(--universe-accent) !important;
  padding: 1rem 2rem !important;
  border-radius: 1rem !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  text-shadow: 0 0 8px var(--universe-accent) !important;
  box-shadow: 0 4px 20px #0008, 0 0 20px #7c3aed33 !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  margin: 1rem 0 !important;
  display: inline-block;
}

/* Cards - cosmic glass effect */
.card {
  background: var(--universe-card) !important;
  color: var(--universe-text) !important;
  border-radius: 1rem !important;
  box-shadow: 0 6px 30px #000a, 0 0 40px #7c3aed33 !important;
  margin: 2rem auto !important;
  padding: 2rem !important;
  border: 1px solid rgba(124, 58, 237, 0.4) !important;
  backdrop-filter: blur(15px) !important;
  transition: all 0.3s ease !important;
  max-width: 900px;
}

.card:hover {
  box-shadow: 0 8px 40px #000c, 0 0 60px #7c3aed44 !important;
  transform: translateY(-3px) !important;
}

.cards-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

/* Lists and Text */
ul, ol {
  color: var(--universe-text) !important;
  padding-left: 1.5rem;
}

li {
  margin: 0.8rem 0 !important;
  line-height: 1.6 !important;
  color: var(--universe-text) !important;
}

strong {
  color: var(--universe-accent2) !important;
  text-shadow: 0 0 6px var(--universe-accent2) !important;
}

/* Links */
a {
  color: var(--universe-accent2) !important;
  text-decoration: underline !important;
  transition: all 0.3s ease !important;
}

a:hover {
  color: var(--universe-accent) !important;
  text-shadow: 0 0 8px var(--universe-accent) !important;
}

/* Footer */
footer {
  background: transparent !important;
  color: var(--universe-accent2) !important;
  text-align: center;
  padding: 4rem 0 2rem 0 !important;
  margin-top: 4rem !important;
}

footer small {
  color: var(--universe-accent2) !important;
}

/* Code Overlay */
#code-overlay {
  background: var(--universe-bg) !important;
  color: var(--universe-text) !important;
}

#code-overlay h2 {
  color: var(--universe-accent) !important;
  text-shadow: 0 0 12px var(--universe-accent) !important;
}

#code-overlay input {
  background: var(--universe-card) !important;
  color: var(--universe-text) !important;
  border: 2px solid var(--universe-nav-border) !important;
  border-radius: 0.5rem !important;
}

#code-overlay button {
  background: var(--universe-accent4) !important;
  color: white !important;
  border: none !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 15px #7c3aed55 !important;
}

#code-error {
  color: var(--universe-accent3) !important;
}

/* Mobile Navigation - Universe Theme */
.bottom-nav {
  display: none;
}

@media (max-width: 600px) {
  .main-nav {
    display: none !important;
  }
  
  .bottom-nav {
    display: flex !important;
    position: fixed !important;
    left: 0 !important; 
    right: 0 !important; 
    bottom: 0 !important;
    height: 70px !important;
    background: var(--universe-nav-bg) !important;
    border-top: 2px solid var(--universe-nav-border) !important;
    box-shadow: 0 -6px 30px #000a, 0 0 40px #7c3aed33 !important;
    z-index: 9999 !important;
    justify-content: space-around !important;
    align-items: center !important;
    backdrop-filter: blur(20px) !important;
  }
  
  .nav-icon {
    flex: 1 !important;
    text-align: center !important;
    padding: 0.8rem 0 !important;
    color: var(--universe-text) !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-icon svg {
    display: block !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 0 8px #fff8) !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-icon.active svg {
    stroke: var(--universe-nav-active) !important;
    fill: rgba(255, 215, 0, 0.2) !important;
    filter: drop-shadow(0 0 16px var(--universe-nav-active)) !important;
    transform: scale(1.15) !important;
  }
  
  .nav-icon:hover svg {
    filter: drop-shadow(0 0 12px var(--universe-accent2)) !important;
    transform: scale(1.08) !important;
  }
  
  body {
    padding-bottom: 70px !important;
  }
  
  header {
    transition: height 0.3s, padding 0.3s !important;
    height: 80px !important;
    padding: 0.5rem 0 !important;
  }
  
  header.shrunk {
    height: 50px !important;
    padding: 0.2rem 0 !important;
  }
  
  .logo {
    transition: width 0.3s, height 0.3s !important;
    width: 48px !important;
    height: 48px !important;
  }
  
  header.shrunk .logo {
    width: 32px !important;
    height: 32px !important;
  }
  
  h1 {
    font-size: 1.3rem !important;
  }
  
  header.shrunk h1 {
    font-size: 1rem !important;
  }
  
  .hero h2 {
    font-size: 2rem !important;
  }
  
  .card {
    margin: 1.5rem auto !important;
    padding: 1.5rem !important;
    max-width: calc(100% - 2rem);
  }
  
  .cards-grid {
    gap: 1.5rem !important;
    padding: 0 1rem;
  }
  
  .page-content {
    margin: 0 1rem 2rem 1rem !important;
    max-width: calc(100% - 2rem);
  }
}

@media (min-width: 601px) {
  .bottom-nav {
    display: none !important;
  }
}
/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .hero, .page-content {
  animation: fadeIn 0.6s ease-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 4px;
  height: 4px;
  background: var(--universe-accent);
  border-radius: 50%;
  animation: twinkle 2s infinite;
  box-shadow: 0 0 8px var(--universe-accent);
}
