/*=========================
  🤬 UNUSABLE NIGHTMARE (v2)
  Updated to work with the unified layout while keeping its rage
=========================*/
:root {
  --bg: repeating-linear-gradient(45deg, #f00, #0f0 10px, #00f 20px);
  --fg: #000;
  --accent: #ff0;
  --accent-hover: #f0f;
  --border: #f0f;
  --radius: 0;
  --font-body: 'Comic Sans MS', cursive;
  --font-code: monospace;
  --muted: #222;
  --shadow-md: 0 0 10px red;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  animation: headache 0.2s infinite alternate;
  padding: 1rem;
}

@keyframes headache {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(90deg); }
}

.post-card {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: var(--shadow-md);
  border: 4px double var(--border);
  background: repeating-linear-gradient(135deg, #fff, #ff0 5px, #f0f 10px);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 720px;
  position: relative;
}

.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.vote-btn {
  font-size: 1.5rem;
  padding: 0.4rem 0.6rem;
  border: 3px groove var(--accent);
  animation: shake 0.1s infinite;
  background: var(--accent);
  border-radius: 50%;
  color: #000;
}

@keyframes shake {
  0% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  100% { transform: translateX(-2px); }
}

.vote-count {
  font-weight: bold;
  font-size: 1rem;
  color: var(--fg);
  background: #fff;
  border: 1px dashed var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

.post-body {
  background: rgba(255, 255, 255, 0.8);
  border: 2px dashed var(--border);
  padding: 1rem;
  animation: headache 0.3s infinite alternate;
}

.timestamp {
  font-size: 0.8rem;
  color: var(--muted);
}

.action-btn {
  font-family: var(--font-body);
  border: 3px groove var(--accent);
  animation: shake 0.2s infinite;
  background: var(--accent-hover);
  color: #000;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-weight: bold;
  text-transform: uppercase;
}

footer {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 2rem;
}
