:root {
  --glow-color: rgba(255, 255, 255, 0.8);
  --glow-spread: 5px;
  --glow-intensity: 0;
  --mouse-x: 0.5;
  --mouse-y: 0.5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
    circle at calc(var(--mouse-x) * 100%) calc(var(--mouse-y) * 100%),
    #111 0%,
    #000 100%
  );
  transition: background 0.1s ease-out;
}

header {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.search-container {
  position: relative;
  flex-grow: 1;
  max-width: 500px;
}

#search-input {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid #333;
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

#search-input:focus {
  border-color: var(--glow-color);
  box-shadow: 0 0 10px var(--glow-color);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

.search-results.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.search-result {
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-result h4 {
  color: var(--glow-color);
  margin-bottom: 0.25rem;
}

.search-result p {
  color: #aaa;
  font-size: 0.9rem;
}

.no-results {
  padding: 0.75rem;
  color: #777;
  text-align: center;
}

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

.content-container {
  margin-bottom: 3rem;
}

.content-card {
  background: rgba(20, 20, 20, 0.7);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
  border: 1px solid #333;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

code {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

code.glow-pulse {
  animation: pulse 1.5s infinite;
}

.glow-word {
  transition: all 0.3s ease;
}

.glow-word:hover {
  color: var(--glow-color);
  text-shadow: 0 0 5px var(--glow-color);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.nav-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid #333;
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn:not(:disabled):hover {
  transform: translateY(-2px);
}

.page-indicator {
  font-size: 1.2rem;
  min-width: 60px;
  text-align: center;
}

footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* Glow Effects */
.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0.3), 
    rgba(255, 255, 255, 0.1));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: var(--glow-intensity, 0);
  transition: opacity 0.3s ease;
}

.glow-active::before {
  opacity: 0.7;
  animation: border-pulse 2s infinite;
}

.glow-text {
  text-shadow: 0 0 5px var(--glow-color);
  color: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes border-pulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-container {
    width: 100%;
  }
  
  main {
    padding: 1rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
  
  .pagination {
    gap: 1rem;
  }
  
  .nav-btn {
    padding: 0.5rem 1rem;
  }
}
