/* Dambit Hub — Custom Styles */

:root {
  --void: #0A0A0A;
  --bile: #C8FF00;
  --glitch: #00F0FF;
  --error: #FF2A2A;
  --bone: #E5E5E5;
  --ash: #6B6B6B;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--ash) var(--void);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--ash);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bile);
}

/* Glitch text effect for special moments */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.glitch-text {
  animation: glitch 0.3s ease-in-out;
}

/* Message animations */
@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-enter {
  animation: messageIn 0.2s ease-out;
}

/* Stream embed responsive */
#stream-embed {
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

@media (min-width: 1024px) {
  #stream-embed {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* Chat message styles */
.chat-message {
  word-break: break-word;
}

.chat-message .msg-name {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.chat-message .msg-name.verified {
  color: var(--bile);
}

.chat-message .msg-name.anon {
  color: var(--ash);
}

.chat-message .msg-time {
  font-size: 10px;
  color: var(--ash);
  opacity: 0.6;
}

.chat-message .msg-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--bone);
  margin-top: 2px;
}

/* Pukebit mode toggle (easter egg) */
.pukebit-mode {
  --bile: #8BFF00;
  --glitch: #FF6600;
}

/* Selection color */
::selection {
  background: var(--bile);
  color: var(--void);
}

/* Focus states */
input:focus, button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(200, 255, 0, 0.2);
}

/* Button active state */
button:active {
  transform: scale(0.98);
}

/* Admin badge */
.admin-badge {
  background: var(--error);
  color: var(--void);
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Page content styles */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-content h2 {
  color: var(--bile);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  color: var(--bone);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.page-content .lead {
  color: var(--ash);
  font-size: 1.125rem;
  line-height: 1.6;
}

.page-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.page-content ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--bone);
}

.page-content ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--bile);
  font-family: 'JetBrains Mono', monospace;
}

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(107, 107, 107, 0.2);
}

.schedule-table th {
  color: var(--bile);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-table td {
  color: var(--bone);
  font-size: 0.875rem;
}

.schedule-table .time {
  color: var(--glitch);
  font-family: 'JetBrains Mono', monospace;
}

/* Clip cards */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.clip-card {
  border: 1px solid rgba(107, 107, 107, 0.3);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.5);
  transition: border-color 0.2s;
}

.clip-card:hover {
  border-color: var(--bile);
}

.clip-card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.clip-card .info {
  padding: 0.75rem;
}

.clip-card .title {
  color: var(--bone);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.clip-card .meta {
  color: var(--ash);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Music embed */
.music-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: none;
  border-radius: 4px;
}

/* Mobile nav */
#mobile-nav a {
  border-radius: 4px;
}

/* Nav link active state on non-home pages */
nav a[href="/"],
#mobile-nav a[href="/"] {
  /* Handled by Tailwind classes in HTML */
}
