﻿/* ==========================================================================
   GoonSMP - Modern Web Design with Visual Shaders & Thermal Receipt Effects
   ========================================================================== */

:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #12141d;
  --bg-card: rgba(22, 26, 38, 0.75);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-gold: #ffb800;
  --accent-red: #ff3b30;
  --accent-cyan: #00f0ff;
  --accent-purple: #9d00ff;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --receipt-bg: #f5f2eb;
  --receipt-text: #1a1a1a;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* Background Canvas for Blob Tracking */
#blob-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.site-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.server-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.4);
  image-rendering: pixelated;
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ff4b2b, #ffb800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand .tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Effect Controls in Nav */
.controls-bar {
  display: flex;
  gap: 10px;
}

.btn-ctrl {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-ctrl.active {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.3), rgba(255, 184, 0, 0.3));
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Hero Section & Live Status Banner
   -------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.status-pill-wrapper {
  display: inline-flex;
  margin-bottom: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h2 .highlight {
  background: linear-gradient(135deg, #ff4b2b 0%, #ffb800 50%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* IP Copy Widget */
.ip-copy-card {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 12px 8px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  gap: 16px;
  margin-bottom: 50px;
}

.ip-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.btn-primary {
  background: linear-gradient(135deg, #ff4b2b, #ffb800);
  color: #000;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 75, 43, 0.4);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(255, 184, 0, 0.6);
}

.btn-primary.copied {
  background: #10b981;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Live Server Statistics Grid (Verified Data, Zero Hallucinations)
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 70px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255, 184, 0, 0.4);
  transform: translateY(-4px);
}

.stat-header {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.stat-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff4b2b, #ffb800);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Minecraft Color Codes */
.mc-motd-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-top: 8px;
}

.mc-bold { font-weight: 800; }
.mc-italic { font-style: italic; }
.mc-underline { text-decoration: underline; }
.mc-gold { color: #ffaa00; }
.mc-dark-red { color: #aa0000; }
.mc-blue { color: #5555ff; }
.mc-gray { color: #aaaaaa; }

/* --------------------------------------------------------------------------
   Visual Gallery & Thermal Receipt Paper Effects
   -------------------------------------------------------------------------- */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

/* 3D Depth Card */
.depth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease-out, border-color 0.3s ease;
  transform-style: preserve-3d;
}

.depth-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.depth-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-content {
  padding: 24px;
}

.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Authentic Receipt Paper Cards (Dot-Matrix & Tear Effects)
   -------------------------------------------------------------------------- */
.receipt-section {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.receipt-card {
  background: var(--receipt-bg);
  color: var(--receipt-text);
  width: 100%;
  max-width: 440px;
  padding: 30px 24px;
  font-family: var(--font-mono);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  position: relative;
  border-radius: 4px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

/* Jagged Zig-Zag Paper Tear Edges */
.receipt-card::before,
.receipt-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background-size: 16px 12px;
}

.receipt-card::before {
  top: -12px;
  background-image: linear-gradient(135deg, transparent 75%, var(--receipt-bg) 75%),
                    linear-gradient(225deg, transparent 75%, var(--receipt-bg) 75%);
}

.receipt-card::after {
  bottom: -12px;
  background-image: linear-gradient(45deg, transparent 75%, var(--receipt-bg) 75%),
                    linear-gradient(315deg, transparent 75%, var(--receipt-bg) 75%);
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed #999;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.receipt-header h4 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.receipt-header p {
  font-size: 0.75rem;
  color: #555;
  margin-top: 4px;
}

.receipt-dither-container {
  width: 100%;
  margin: 12px 0;
  text-align: center;
  border: 1px solid #ddd;
  background: #eee;
  overflow: hidden;
}

.receipt-dither-container img {
  display: none; /* Hidden, canvas dither replaces it */
}

.dither-canvas {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  display: block;
}

.receipt-body {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.receipt-row .label {
  color: #666;
}

.receipt-row .val {
  font-weight: 700;
}

.receipt-barcode {
  text-align: center;
  border-top: 2px dashed #999;
  padding-top: 16px;
}

.barcode-lines {
  height: 44px;
  background: repeating-linear-gradient(
    90deg,
    #111 0px,
    #111 2px,
    transparent 2px,
    transparent 4px,
    #111 4px,
    #111 7px,
    transparent 7px,
    transparent 9px,
    #111 9px,
    #111 13px,
    transparent 13px,
    transparent 14px
  );
  margin-bottom: 6px;
}

.barcode-num {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: #444;
}

/* Interactive Ticket Input */
.ticket-form {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.ticket-input {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex: 1;
}

.btn-ticket {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-ticket:hover {
  background: #333;
}

/* --------------------------------------------------------------------------
   Thermal / Heatmap Vision Mode (Activated via Button)
   -------------------------------------------------------------------------- */
body.thermal-mode {
  filter: contrast(150%) hue-rotate(180deg) invert(100%);
  background-color: #050026;
}

body.thermal-mode img {
  filter: saturate(300%) contrast(180%) hue-rotate(90deg);
}

/* Thermal HUD Overlay */
#thermal-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000;
}

#thermal-hud.hidden {
  display: none;
}

.hud-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
}

.hud-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 0, 0, 0.6);
  border-radius: 50%;
}

.hud-reticle::before,
.hud-reticle::after {
  content: "";
  position: absolute;
  background: rgba(255, 0, 0, 0.8);
}

.hud-reticle::before {
  top: 50%;
  left: -20px;
  right: -20px;
  height: 1px;
}

.hud-reticle::after {
  left: 50%;
  top: -20px;
  bottom: -20px;
  width: 1px;
}

.hud-data {
  position: absolute;
  top: 30px;
  left: 30px;
  font-family: var(--font-mono);
  color: #ff3b30;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 16px;
  border-left: 3px solid #ff3b30;
}

.hud-spectrum {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 240px;
  background: linear-gradient(to bottom, #ffffff, #ff2200, #ffdd00, #00ff66, #00d4ff, #050026);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(16, 185, 129, 0.95);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero h2 { font-size: 2.4rem; }
  header { flex-direction: column; gap: 16px; }
  .ip-copy-card { flex-direction: column; width: 100%; border-radius: 20px; }
}
