/* Base/Shared Styles - Space Webbies */

* {
  font-family: "Exo 2", sans-serif;
  font-optical-sizing: auto;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  border: 0;
  padding: 0;
  background: #0a0a1a;
  min-height: 100vh;
  color: #00ff88;
  overflow-x: hidden;
}

/* Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

/* Gradient overlay on top of video */
#bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 26, 0.5) 0%, rgba(26, 26, 58, 0.3) 50%, rgba(10, 10, 42, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Glassmorphism Base Container */
.glass-container {
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 136, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  width: 100%;
}

.glass-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 255, 136, 0.4), 
    transparent);
  border-radius: 20px 20px 0 0;
}

main {
  position: relative;
  z-index: 2;
  margin: auto;
  max-width: 400px;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-weight: 700;
  font-size: 2em;
  margin: 0;
  text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
  letter-spacing: 3px;
}

.subtitle {
  font-size: 0.9em;
  color: #00ccff;
  margin: 5px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  color: #00ff88;
  text-decoration: none;
}

a#perkley {
  color: #8CC63E;
  font-weight: bold;
}

/* Content Container */
#content {
  width: 100%;
  flex: 1;
}

/* Footer */
footer {
  margin-top: 20px;
  text-align: center;
}

footer p {
  font-size: 0.8em;
  color: #00ccff;
  margin: 0;
}

/* Logo Link */
.logo-link {
  text-decoration: none;
  color: inherit;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #1a1a3a;
  border-top-color: #00ff88;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Not Found / Error State */
.not-found {
  text-align: center;
  padding: 40px;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border: 2px solid #00ccff;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.2);
}

.not-found-icon {
  font-size: 4em;
  margin-bottom: 10px;
}

.not-found-title {
  color: #00ccff;
  font-size: 1.5em;
  text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
  margin: 0 0 15px 0;
}

.not-found p {
  color: #888;
}

/* ============================================
   Glass Touch Button System
   ============================================ */

/* Base Glass Button - Use with color modifier classes */
.glass-btn {
  /* Default color (cyan) - override with --glass-color */
  --glass-color: 0, 204, 255;
  --glass-color-hex: #00ccff;
  --glass-color-bright: #33ddff;
  
  /* Glass touch button base */
  background: rgba(30, 40, 60, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--glass-color), 0.5);
  color: var(--glass-color-hex);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Glass highlight on top */
.glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(var(--glass-color), 0.5), 
    transparent);
  border-radius: 12px 12px 0 0;
}

.glass-btn:hover {
  background: rgba(40, 55, 80, 0.5);
  border-color: rgba(var(--glass-color), 0.7);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(var(--glass-color), 0.3),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.glass-btn:active {
  background: rgba(var(--glass-color), 0.2);
  border-color: rgba(var(--glass-color), 0.9);
  transform: translateY(1px);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 0 15px rgba(var(--glass-color), 0.15),
    0 0 25px rgba(var(--glass-color), 0.5);
  color: var(--glass-color-bright);
  text-shadow: 0 0 10px rgba(var(--glass-color), 0.8);
}

/* Color Variants */
.glass-btn--green {
  --glass-color: 0, 255, 136;
  --glass-color-hex: #00ff88;
  --glass-color-bright: #33ffaa;
  background: rgba(30, 60, 40, 0.4);
}
.glass-btn--green:hover { background: rgba(40, 80, 50, 0.5); }

.glass-btn--red {
  --glass-color: 255, 68, 68;
  --glass-color-hex: #ff4444;
  --glass-color-bright: #ff6666;
  background: rgba(80, 30, 30, 0.4);
}
.glass-btn--red:hover { background: rgba(100, 40, 40, 0.5); }

.glass-btn--orange {
  --glass-color: 255, 170, 68;
  --glass-color-hex: #ffaa44;
  --glass-color-bright: #ffbb66;
  background: rgba(70, 50, 30, 0.4);
}
.glass-btn--orange:hover { background: rgba(90, 60, 30, 0.5); }

/* Disabled state */
.glass-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(100, 100, 100, 0.3);
  color: #666;
  background: rgba(30, 30, 40, 0.3);
  box-shadow: none;
}
.glass-btn:disabled::before { background: transparent; }
.glass-btn:disabled:hover { transform: none; }

/* Return button - adds spacing, use with glass-btn */
.return-btn {
  margin-top: 20px;
}