/* -------------------------------------------------------
   PUBG Ban Checker - main.css (v1.6 Secure Bundle)
   ------------------------------------------------------- */

:root {
  --bg-start: #1c1a2b;
  --bg-end: #7f7aa0;
  --text: #f0f0f0;
  --muted: #dcdcdc;
  --card: rgba(255, 255, 255, 0.10);
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  --accent: #ffdd59;
  --ok: #28a745;
  --warn: #ffc107;
  --bad: #dc3545;
  --neutral: #6c757d;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Headings */
h1 { font-size: 2.2rem; margin: 40px 0 8px; text-align: center; color: var(--accent); }
h2 { font-size: 1rem; font-weight: 500; margin: 0 0 18px; color: #ffe680; text-align: center; opacity: .95; }
.compact-title { margin-top: 20px !important; }

/* Containers */
.container {
  width: min(92vw, 760px);
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  margin: 10px 0;
}
.nav-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.controls, .control-buttons { display: flex; flex-direction: column; gap: 12px; }
.centered { text-align: center; }
.muted { color: var(--muted); }

/* Watchlist container */
.results-container, .watchlist-container { display: flex; flex-direction: column; gap: 10px; }
.watchlist-container {
  margin-top: 20px;
  margin-bottom: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Results block */
.results-block {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
#results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Nav buttons */
.nav-links a button {
  background: #ff4757;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-links a button:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.nav-links a button:active { transform: scale(0.97); }

/* Inputs & Buttons */
textarea#playerInput, textarea#clanInput {
  width: 100%; min-height: 110px; resize: vertical;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 12px; font-size: 1rem; color: #111; outline: none;
}
select, button {
  border: none; outline: none; border-radius: 10px; font-size: 1rem; padding: 10px 12px;
}
button { background: #ff4757; color: #fff; font-weight: 700; cursor: pointer; min-width: 120px; }
button.secondary-btn { background: #6c757d; }
button.secondary-btn:hover { background: #5a6268; }
button.added-btn { background: #6c757d; cursor: default; opacity: 0.8; box-shadow: none; transform: none; }

/* Results/Player Rows */
.player-row, .watchlist-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: transform .15s ease, box-shadow .2s ease, background .25s ease;
  opacity: 0;
  animation: fadeUpRow 0.5s forwards;
}
.player-row:hover, .watchlist-player:hover { transform: scale(1.02); }

/* Row stagger delays (limit 10) */
.player-row:nth-child(1), .watchlist-player:nth-child(1) { animation-delay: 0.05s; }
.player-row:nth-child(2), .watchlist-player:nth-child(2) { animation-delay: 0.10s; }
.player-row:nth-child(3), .watchlist-player:nth-child(3) { animation-delay: 0.15s; }
.player-row:nth-child(4), .watchlist-player:nth-child(4) { animation-delay: 0.20s; }
.player-row:nth-child(5), .watchlist-player:nth-child(5) { animation-delay: 0.25s; }
.player-row:nth-child(6), .watchlist-player:nth-child(6) { animation-delay: 0.30s; }
.player-row:nth-child(7), .watchlist-player:nth-child(7) { animation-delay: 0.35s; }
.player-row:nth-child(8), .watchlist-player:nth-child(8) { animation-delay: 0.40s; }
.player-row:nth-child(9), .watchlist-player:nth-child(9) { animation-delay: 0.45s; }
.player-row:nth-child(10), .watchlist-player:nth-child(10) { animation-delay: 0.50s; }

/* FadeUpRow Animation */
@keyframes fadeUpRow {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Status Classes */
.not-banned { background: linear-gradient(90deg, rgba(40,167,69,.75), rgba(46,204,113,.75)); color: #fff; }
.temp-banned {
  background: linear-gradient(90deg, rgba(255,193,7,.85), rgba(255,205,57,.85));
  color: #111;
  animation: pulse 2s infinite;
  opacity: 1 !important;
}
.perm-banned {
  background: linear-gradient(90deg, rgba(220,53,69,.85), rgba(231,76,60,.85));
  color: #fff;
  animation: pulse 1.5s infinite;
  opacity: 1 !important;
}
.unknown { background: linear-gradient(90deg, rgba(108,117,125,.75), rgba(149,165,166,.75)); color: #fff; }

/* Pulse */
@keyframes pulse {
  0% { box-shadow: 0 0 5px rgba(255,0,0,0.3); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(255,0,0,0.7); transform: scale(1.02); }
  100% { box-shadow: 0 0 5px rgba(255,0,0,0.3); transform: scale(1); }
}

/* ======================
   Platform Buttons
   ====================== */
.platform-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.platform-btn {
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.4s forwards;
}
.platform-btn .platform-icon { width: 24px; height: 24px; }

/* Platform Button Stagger Animation */
.platform-row .platform-btn:nth-child(1) { animation-delay: 0.1s; }
.platform-row .platform-btn:nth-child(2) { animation-delay: 0.2s; }
.platform-row .platform-btn:nth-child(3) { animation-delay: 0.3s; }
.platform-row .platform-btn:nth-child(4) { animation-delay: 0.4s; }

/* Active states */
.platform-btn.active.steam { background: #1b2838; border-color: #1b2838; box-shadow: 0 0 14px #1b2838; }
.platform-btn.active.xbox { background: #107C10; border-color: #107C10; box-shadow: 0 0 14px #107C10; }
.platform-btn.active.psn { background: #003791; border-color: #003791; box-shadow: 0 0 14px #003791; }
.platform-btn.active.kakao { background: #FEE500; border-color: #FEE500; box-shadow: 0 0 14px #FEE500; color: #000; }

/* Tooltip with shimmer effect */
.platform-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;

  background: linear-gradient(90deg, #ffdd59, #fff, #ffdd59);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerMove 2s infinite linear;
}
.platform-btn:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Fade-out effect */
.fade-out { opacity: 0; transition: opacity 0.3s ease; }

/* ======================
   Social Buttons (icon-only)
   ====================== */
.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}
.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.6s forwards;
}
.social-btn img { width: 24px; height: 24px; }

/* Tooltip */
.social-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.social-btn:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.social-btn:hover { transform: scale(1.1); }

/* Brand Colors */
.social-btn.youtube   { background: #FF0000; animation-delay: 0.1s; }
.social-btn.x         { background: #1DA1F2; animation-delay: 0.2s; }
.social-btn.instagram { background: linear-gradient(45deg,#feda75,#d62976,#962fbf,#4f5bd5); animation-delay: 0.3s; }
.social-btn.tiktok    { background: #69C9D0; animation-delay: 0.4s; }
.social-btn.twitch    { background: #9146FF; animation-delay: 0.5s; }

/* Hover Glows */
.social-btn.youtube:hover   { box-shadow: 0 0 12px #FF0000; }
.social-btn.x:hover         { box-shadow: 0 0 12px #1DA1F2; }
.social-btn.instagram:hover { box-shadow: 0 0 12px #d62976; }
.social-btn.tiktok:hover    { box-shadow: 0 0 12px #69C9D0; }
.social-btn.twitch:hover    { box-shadow: 0 0 12px #9146FF; }

/* Shared shimmer animation */
@keyframes shimmerMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* FadeUp Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ======================
   Dark Mode
   ====================== */
body.dark-mode { background: linear-gradient(135deg,#181818,#3a3a3a); color: #eee; }
body.dark-mode .container { background: rgba(255,255,255,0.08); }

/* ======================
   Updates Page Extras
   ====================== */
.about-credit {
  text-align: center;
  margin: 10px 0 20px 0;
  font-size: 1rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.8s forwards;
  animation-delay: 0.2s;
}
.shimmer {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #ffdd59, #fff, #ffdd59);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerMove 2s infinite linear;
}
.history {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.25, 1, 0.5, 1.2), opacity 0.5s ease;
}
.history.visible { opacity: 1; max-height: 2000px; }
#toggleHistory span { display: inline-block; opacity: 1; transition: opacity 0.3s ease, transform 0.3s ease; }
#toggleHistory span.fade-out { opacity: 0; transform: scale(0.9); }
#toggleHistory span.fade-in { opacity: 1; transform: scale(1.05); }

/* Collapse reverse stagger */
.history.collapsing h3, .history.collapsing p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ======================
   Development Page Styles
   ====================== */
.box-dev {
  background: #1e1e1e;
  padding: 20px;
  margin: 20px auto;
  border-radius: 10px;
  width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  text-align: center;
}
.result-dev {
  margin-top: 10px;
  padding: 10px;
  background: #000;
  border-radius: 5px;
  text-align: left;
  position: relative;
  white-space: pre-wrap;
  word-break: break-word;
}
.hidden { display: none; }
.error-text { color: #ff4444; }
.copy-btn {
  background: #444; color: #fff; font-size: 12px; padding: 4px 8px; margin-left: 8px; border-radius: 4px; cursor: pointer;
}
.copy-btn:hover { background: #666; }
.copied { color: #4caf50; font-size: 12px; margin-left: 10px; display: none; }
