/* ═══════════════════════════════════════════════════════════
   IMPACT - SUP  |  Neobrutalism UI
   ═══════════════════════════════════════════════════════════ */

:root {
  --black: #0a0a0a;
  --dark-blue: #0f172a;
  --blue: #1e3a5f;
  --light-blue: #3b82f6;
  --white: #ffffff;
  --off-white: #f1f5f9;
  --border: 3px solid var(--white);
  --shadow: 6px 6px 0 var(--white);
  --shadow-blue: 6px 6px 0 var(--light-blue);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* ─── Mouse-Following Gradient Blob ─── */
.gradient-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(30, 58, 95, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  transition: width 0.3s, height 0.3s;
}

/* ─── Floating Shapes ─── */
.floating-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.06);
  animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: 10%;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation-delay: -7s;
  animation-duration: 25s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 30%;
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(5deg); }
  50% { transform: translate(-20px, 20px) rotate(-5deg); }
  75% { transform: translate(20px, 10px) rotate(3deg); }
}

/* ─── App Container ─── */
.app-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 100px;
  gap: 50px;
}

.app-container > .footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ─── Hero Section ─── */
.hero {
  text-align: center;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: var(--border);
  border-color: var(--black);
  margin-bottom: 32px;
  position: relative;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.badge-indicator {
  width: 8px;
  height: 8px;
  background: var(--light-blue);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

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

/* Hero Title */
.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.title-block {
  font-size: clamp(52px, 15vw, 140px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -4px;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.title-impact {
  color: var(--white);
  -webkit-text-stroke: 2px var(--white);
  animation: titleFloat 6s ease-in-out infinite;
}

.title-impact:hover {
  transform: translateY(-8px) rotate(-2deg);
  text-shadow: 8px 8px 0 var(--blue);
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.title-divider {
  font-size: clamp(40px, 10vw, 100px);
  color: var(--light-blue);
  font-weight: 300;
  animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

.title-sup {
  color: var(--black);
  background: var(--light-blue);
  padding: 0 20px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  animation: titleFloat 6s ease-in-out infinite;
  animation-delay: -3s;
}

.title-sup:hover {
  transform: translateY(-8px) rotate(2deg);
  box-shadow: 12px 12px 0 var(--white);
}

/* Hero Subtitle */
.hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.arrow-icon {
  font-size: 18px;
  animation: spin 3s linear infinite;
  display: inline-block;
}

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

/* ─── Main Content ─── */
.main-content {
  width: 100%;
  max-width: 900px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.label-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {
  0%, 100% { width: 40px; opacity: 0.3; }
  50% { width: 80px; opacity: 1; }
}

.label-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Button Grid ─── */
.button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .button-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 450px) {
  .button-grid { grid-template-columns: 1fr; }
}

/* ─── Brutal Button ─── */
.brutal-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--dark-blue);
  border: 3px solid var(--white);
  box-shadow: 5px 5px 0 var(--white);
  cursor: pointer;
  transition: all 0.15s ease;
  overflow: hidden;
}

.brutal-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.brutal-btn:hover::before {
  left: 100%;
}

.brutal-btn:hover {
  box-shadow: 8px 8px 0 var(--light-blue);
  border-color: var(--light-blue);
}

.brutal-btn:active {
  box-shadow: 2px 2px 0 var(--white);
  transform: translate(3px, 3px);
}

.btn-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.brutal-btn:hover .btn-label {
  color: var(--light-blue);
}

.btn-arrow {
  font-size: 18px;
  color: var(--white);
  opacity: 0.4;
  transition: all 0.2s ease;
}

.brutal-btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(4px);
  color: var(--light-blue);
}

/* ─── Run All Button ─── */
.run-all-btn {
  width: 100%;
  margin-bottom: 20px;
  background: var(--light-blue);
  justify-content: center;
  gap: 12px;
}

.run-all-btn .btn-label {
  color: var(--black);
}

.run-all-btn .btn-arrow {
  color: var(--black);
  opacity: 1;
  font-size: 20px;
}

.run-all-btn:hover {
  background: var(--white);
  border-color: var(--light-blue);
  box-shadow: 8px 8px 0 var(--light-blue);
}

.run-all-btn:hover .btn-label,
.run-all-btn:hover .btn-arrow {
  color: var(--dark-blue);
}

/* ─── Status Section ─── */
.status-section {
  width: 100%;
  max-width: 380px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-box {
  background: var(--dark-blue);
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.status-box.run-all-mode {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 20px 0;
}

.status-box.run-all-mode .status-img,
.status-box.run-all-mode .status-loader {
  display: none !important;
}

.status-box.run-all-mode .status-msg {
  background: transparent;
  border: none;
  box-shadow: none;
}

.status-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 4px 4px 0 var(--light-blue);
}

.status-loader {
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 3px dashed var(--white);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--white);
  animation: spinLoader 0.8s linear infinite;
}

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

.status-msg {
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: 3px solid var(--black);
}

.status-msg.success {
  background: var(--light-blue);
  color: var(--white);
  border-color: var(--white);
  box-shadow: var(--shadow);
}

.status-msg.error {
  background: #dc2626;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 4px 4px 0 var(--white);
}

.status-msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.status-msg a:hover {
  text-decoration-thickness: 3px;
}

/* Progress Counter for Run All */
.progress-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.counter-current {
  color: var(--light-blue);
}

.counter-divider {
  color: rgba(255, 255, 255, 0.4);
}

.counter-total {
  color: rgba(255, 255, 255, 0.5);
}

.progress-counter.complete .counter-current,
.progress-counter.complete .counter-divider,
.progress-counter.complete .counter-total {
  color: var(--light-blue);
}

.progress-counter.partial .counter-current {
  color: #f59e0b;
}

.progress-counter.failed .counter-current {
  color: #dc2626;
}

/* Results List for Run All */
.results-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}

.result-item {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 2px solid;
}

.result-item.success {
  color: var(--light-blue);
  border-color: var(--light-blue);
  background: rgba(59, 130, 246, 0.1);
}

.result-item.success a {
  color: var(--light-blue);
  text-decoration: none;
}

.result-item.success a:hover {
  text-decoration: underline;
}

.result-item.error {
  color: #dc2626;
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.result-item.pending {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  animation: pendingPulse 1s ease-in-out infinite;
}

@keyframes pendingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Success Glow ─── */
.success-glow {
  box-shadow: 6px 6px 0 var(--light-blue), 0 0 30px rgba(59, 130, 246, 0.4);
  animation: successBounce 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successBounce {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ─── Footer ─── */
.footer {
  width: 100%;
  padding: 24px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}


/* Footer Credit */
.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit .heart {
  color: var(--light-blue);
  animation: heartBeat 1.2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  35% { transform: scale(1); }
  45% { transform: scale(1.15); }
  55% { transform: scale(1); }
}

.footer-credit .team-badge {
  color: var(--white);
  background: var(--dark-blue);
  padding: 4px 10px;
  border: 2px solid var(--white);
  box-shadow: 3px 3px 0 var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
  transition: all 0.15s ease;
}

.footer-credit .team-badge:hover {
  background: var(--light-blue);
  box-shadow: 4px 4px 0 var(--white);
  transform: translate(-1px, -1px);
}
