/* Dark theme inspired by The Fire Rises Wiki */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #080309;
  color: white;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  line-height: 1.4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Main header styling */
.header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #7739A0;
  padding-bottom: 15px;
}

.header h1 {
  font-size: 2.35em;
  color: #7739A0;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #7739A0;
}

.header p {
  font-size: 1.25em;
  color: #6388D3;
}

/* Panel styling */
.panel {
  border-radius: 5px;
  background: linear-gradient(#7739A0, #572A75);
  padding: 5px;
  margin: 20px 0;
}

.panel-inner {
  border-radius: 5px;
  background: #080309;
  padding: 20px;
}

.panel-title {
  font-size: 25px;
  font-weight: bold;
  color: #7739A0;
  text-align: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #7739A0;
  padding-bottom: 5px;
}

/* Content grid layout */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.content-column {
  flex: 1;
  min-width: 300px;
}

/* Info line styling */
.info-line {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.label {
  color: #66ccff;
}

.value {
  color: #00ff41;
  text-shadow: 0 0 3px #00ff41;
}

.warning {
  color: #ff3366;
  text-shadow: 0 0 5px #ff3366;
}

.status-good {
  color: #00ff41;
}

.status-caution {
  color: #ffff00;
}

/* Progress bar styling */
.progress-bar {
  width: 100%;
  height: 10px;
  background: #333;
  border: 1px solid #00ff41;
  margin-top: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff41, #66ccff);
  transition: width 2s ease;
  box-shadow: 0 0 10px #00ff41;
}

/* Links styling */
a {
  color: #7739A0;
  text-decoration: none;
}

a:hover {
  color: #9966CC;
  text-shadow: 0 0 5px #9966CC;
}

/* List styling */
ul, ol {
  margin-left: 20px;
  margin-bottom: 10px;
}

li {
  margin-bottom: 5px;
}

/* Terminal-specific styling */
.command-line {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #7739A0;
  border-radius: 3px;
}

.prompt {
  color: #7739A0;
  margin-bottom: 10px;
}

.typing {
  color: #00ff41;
  border-right: 2px solid #00ff41;
  animation: blink 1s infinite;
}

.test-results {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
}

.test-item {
  margin-bottom: 5px;
  padding: 3px 0;
}

.flicker {
  animation: flicker 0.15s infinite linear;
}

/* Animations */
@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes glitch {
  0% { text-shadow: 0.05em 0 0 #bc694a, -0.05em -0.025em 0 #66ccff, 0.025em 0.05em 0 #00ff41; }
  15% { text-shadow: 0.05em 0 0 #bc694a, -0.05em -0.025em 0 #66ccff, 0.025em 0.05em 0 #00ff41; }
  16% { text-shadow: -0.05em -0.025em 0 #bc694a, 0.025em 0.025em 0 #66ccff, -0.05em -0.05em 0 #00ff41; }
  49% { text-shadow: -0.05em -0.025em 0 #bc694a, 0.025em 0.025em 0 #66ccff, -0.05em -0.05em 0 #00ff41; }
  50% { text-shadow: 0.025em 0.05em 0 #bc694a, 0.05em 0 0 #66ccff, 0 -0.05em 0 #00ff41; }
  99% { text-shadow: 0.025em 0.05em 0 #bc694a, 0.05em 0 0 #66ccff, 0 -0.05em 0 #00ff41; }
  100% { text-shadow: -0.025em 0 0 #bc694a, -0.025em -0.025em 0 #66ccff, -0.025em -0.05em 0 #00ff41; }
}

@keyframes flicker {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: 1;
  }
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.4;
  }
}

/* Custom cursor */
#cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: #7739A0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px #7739A0;
  transition: transform 0.1s ease;
}

body {
  cursor: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
  }

  .content-column {
    min-width: auto;
  }

  body {
    font-size: 12px;
    cursor: auto; /* Show default cursor on mobile */
  }

  .container {
    padding: 15px;
  }

  #cursor {
    display: none; /* Hide custom cursor on mobile */
  }
}