/* --- Godspeed Theme --- */

/* --- 1. Core Variables & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Aldrich&display=swap');

:root {
  --bg-color: #0c0c1d;
  --panel-color: rgba(20, 20, 40, 0.6);
  --text-light: #f0f0f0;
  --text-dark: #a0a0c0;
  --accent-violet: #8A2BE2;
  --accent-cyan: #00FFFF;
}

body {
  background-color: var(--bg-color);
  color: var(--text-light);
  font-family: 'Aldrich', sans-serif;
  overflow-x: hidden;
}

/* --- 2. Animated Lightning Background --- */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  overflow: hidden;
  z-index: 0;
}

/* This would typically be a more complex canvas or SVG animation.
   For a pure CSS effect, we can simulate it with gradients. */
.background-animation::before,
.background-animation::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--accent-violet) 50%, transparent 100%);
  animation: streak 8s linear infinite;
}
.background-animation::after {
  left: 70%;
  animation-delay: -4s;
  animation-duration: 6s;
  background: linear-gradient(to bottom, transparent 0%, var(--accent-cyan) 50%, transparent 100%);
}

@keyframes streak {
  0% { transform: translateY(-100%) skewX(-20deg); }
  100% { transform: translateY(100%) skewX(-20deg); }
}

/* --- 3. Typography & Header --- */
h1, h2, h3 {
  text-transform: uppercase;
  letter-spacing: 2px;
}
h2 {
  color: var(--accent-violet);
  text-shadow: 0 0 10px var(--accent-violet);
}
h3 {
  color: var(--text-light);
  transition: color 0.3s ease;
}
p {
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* --- 4. Buttons --- */
.toggle-btn {
  background: transparent;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  padding: 8px 15px;
  font-family: 'Aldrich', sans-serif;
  transition: all 0.3s ease;
}
.toggle-btn:hover, .toggle-btn.active {
  color: var(--text-light);
  border-color: var(--accent-violet);
  box-shadow: 0 0 10px var(--accent-violet);
}

/* --- 5. Tool Cards --- */
.card {
  background: var(--panel-color);
  border: 1px solid rgba(138, 43, 226, 0.3);
  backdrop-filter: blur(5px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}
.card:hover h3 {
  color: var(--accent-cyan);
}
.card a {
  color: var(--accent-violet);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 1rem;
  display: block;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--accent-violet);
  transition: background 0.3s ease, color 0.3s ease;
}
.card a:hover {
  background: var(--accent-violet);
  color: var(--bg-color);
}

/* --- 6. Footer & IP Box --- */
#ipBox {
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(138, 43, 226, 0.3);
  text-align: center;
}
#ipBox strong {
  color: var(--accent-cyan);
}

/* --- Light Theme --- */
.light-theme {
  --bg-color: #f0f0f0;
  --panel-color: rgba(255, 255, 255, 0.8);
  --text-light: #1a1a1a;
  --text-dark: #505050;
}

.light-theme .background-animation::before,
.light-theme .background-animation::after {
  opacity: 0.3;
}

.light-theme h2 {
  text-shadow: none;
}

.light-theme .toggle-btn:hover, .light-theme .toggle-btn.active {
  color: var(--bg-color);
  background: var(--accent-violet);
  box-shadow: none;
}

.light-theme .card a:hover {
  color: var(--text-light);
}
