/* ask.anuj — LOUD MODE ON */

:root {
  --neon-pink: #ff00ff;
  --neon-green: #39ff14;
  --neon-yellow: #ffff00;
  --electric-blue: #00f5ff;
  --lime: #bfff00;
  --orange-crush: #ff6600;
  --purple-shock: #bf00ff;
  --red-alert: #ff0040;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Comic Neue', cursive;
  background:
    repeating-linear-gradient(
      45deg,
      #0d0d0d,
      #0d0d0d 20px,
      #1a0a2e 20px,
      #1a0a2e 40px
    );
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating chaos elements */
.floating-el {
  position: fixed;
  font-size: clamp(2rem, 5vw, 4rem);
  z-index: 0;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--neon-pink));
  opacity: 0.9;
}

.cat-1 { top: 10%; left: 5%; animation-delay: 0s; }
.cat-2 { top: 60%; right: 8%; animation-delay: -2s; font-size: 3rem; }
.cat-3 { bottom: 20%; left: 15%; animation-delay: -4s; }
.car { top: 25%; right: 12%; animation-delay: -1s; }
.car-2 { bottom: 30%; right: 5%; animation-delay: -3s; }
.bike { top: 75%; left: 8%; animation-delay: -2.5s; }
.macbook { top: 45%; right: 20%; animation-delay: -1.5s; }
.macbook-2 { bottom: 15%; right: 25%; animation-delay: -5s; }
.cat-4 { top: 35%; left: 3%; animation-delay: -0.5s; transform: scaleX(-1); }
.bike-2 { bottom: 45%; left: 25%; animation-delay: -3.5s; font-size: 2.5rem; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--neon-pink); box-shadow: 0 0 20px var(--neon-pink); }
  33% { border-color: var(--neon-green); box-shadow: 0 0 20px var(--neon-green); }
  66% { border-color: var(--electric-blue); box-shadow: 0 0 20px var(--electric-blue); }
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.title {
  font-family: 'Bangers', cursive;
  font-size: clamp(3rem, 12vw, 6rem);
  margin: 0;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-yellow), var(--neon-green), var(--electric-blue));
  background-size: 300% 100%;
  animation: gradient-shift 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255, 0, 255, 0.5);
}

.title .dot {
  -webkit-text-fill-color: var(--neon-yellow);
  animation: blink 1.5s step-end infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tagline {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.6rem, 2.5vw, 0.85rem);
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
  margin: 1rem 0 0.5rem;
  line-height: 1.8;
}

.sub {
  font-size: 0.9rem;
  color: var(--electric-blue);
  opacity: 0.95;
  font-style: italic;
}

.ask-box {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.15), rgba(0, 245, 255, 0.1));
  border: 4px solid var(--neon-pink);
  border-radius: 20px;
  padding: 2rem;
  animation: pulse-border 3s ease-in-out infinite;
  margin-bottom: 2.5rem;
  box-shadow:
    0 0 30px rgba(255, 0, 255, 0.3),
    inset 0 0 60px rgba(0, 0, 0, 0.2);
}

.ask-form .label {
  display: block;
  font-family: 'Righteous', cursive;
  font-size: 1.1rem;
  color: var(--neon-yellow);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.category-label {
  margin-top: 1.25rem;
}

.ask-form textarea {
  width: 100%;
  padding: 1rem;
  font-family: 'Comic Neue', cursive;
  font-size: 1rem;
  border: 3px solid var(--neon-green);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  resize: vertical;
  transition: box-shadow 0.2s;
}

.ask-form textarea:focus {
  outline: none;
  box-shadow: 0 0 25px var(--neon-green);
}

.ask-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--electric-blue);
  margin-top: 0.25rem;
}

.select-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon-pink);
  font-size: 0.8rem;
  pointer-events: none;
}

.ask-form select {
  width: 100%;
  padding: 1rem 2.5rem 1rem 1rem;
  font-family: 'Comic Neue', cursive;
  font-size: 1rem;
  font-weight: 700;
  border: 3px solid var(--orange-crush);
  border-radius: 12px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 102, 0, 0.2),
    rgba(255, 102, 0, 0.2) 10px,
    rgba(191, 0, 255, 0.15) 10px,
    rgba(191, 0, 255, 0.15) 20px
  );
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  max-height: 200px;
}

.ask-form select:focus {
  outline: none;
  box-shadow: 0 0 20px var(--orange-crush);
}

.ask-form select option {
  background: #1a0a2e;
  color: #fff;
  padding: 0.5rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.9rem;
  background: linear-gradient(90deg, var(--red-alert), var(--neon-pink));
  color: #fff;
  border: 3px solid var(--neon-yellow);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-shadow: 2px 2px 0 #000;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--neon-pink);
}

.submit-btn:active {
  transform: scale(0.98);
}

.status-msg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}
.status-msg.error {
  display: block;
  background: rgba(255, 0, 64, 0.2);
  border: 1px solid var(--red-alert);
  color: var(--neon-yellow);
}
.status-msg.info {
  display: block;
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid var(--electric-blue);
  color: var(--electric-blue);
}

.feed-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--neon-green);
  text-shadow: 0 0 15px var(--neon-green);
  margin-bottom: 1rem;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-card {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(191, 0, 255, 0.1));
  border: 2px solid var(--neon-green);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

.question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-pink), var(--electric-blue));
}

.question-category {
  font-family: 'Righteous', cursive;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-yellow);
  margin-bottom: 0.5rem;
}

.question-text {
  color: #e0e0e0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.question-time {
  font-size: 0.75rem;
  color: var(--electric-blue);
  opacity: 0.8;
  margin-top: 0.5rem;
}

.empty-feed {
  text-align: center;
  padding: 2rem;
  color: var(--electric-blue);
  font-style: italic;
  border: 2px dashed var(--neon-pink);
  border-radius: 12px;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  color: var(--neon-yellow);
  opacity: 0.9;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .floating-el {
    font-size: 1.75rem;
  }
  .ask-box {
    padding: 1.25rem;
  }
}
