/* =========================================================
   TASK FORCE TRIDENT (TFT) — TOURNAMENT TOOLS STYLESHEET
   ========================================================= */

:root {
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.4);
  --purple: #8b35ff;
  --purple-glow: rgba(139, 53, 255, 0.45);
  --bg-dark: #03070d;
  --bg-card: rgba(6, 14, 24, 0.85);
  --border: rgba(0, 229, 255, 0.16);
  --border-focus: rgba(139, 53, 255, 0.6);
  --text-main: #eaf7ff;
  --text-muted: #8ca2b5;
  --green: #40db8b;
  --green-glow: rgba(64, 219, 139, 0.5);
}

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

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient Background */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 80% 20%, rgba(139, 53, 255, 0.15), transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(0, 229, 255, 0.1), transparent 35%),
    linear-gradient(180deg, #020509 0%, #040913 60%, #020509 100%);
  z-index: -1;
}

/* Navigation */
.tools-nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(3, 7, 13, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.brand strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand strong span {
  color: var(--cyan);
}

.brand small {
  display: block;
  font-size: 0.7rem;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 2px;
}

.tools-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tools-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.tools-nav-links a:hover,
.tools-nav-links a.active {
  color: var(--cyan);
}

.btn-comms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #8fa0ff !important;
  font-weight: 700 !important;
  transition: all 0.25s !important;
}

.btn-comms:hover {
  background: #5865f2;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.5);
}

/* Container */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.tools-hero {
  padding: 60px 0 36px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tools-hero h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 16px;
  line-height: 1.1;
}

.tools-hero h1 span {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tools-hero p.lead {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Live Detected Timezone Bar */
.detected-time-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 40px;
  background: rgba(6, 14, 26, 0.9);
  border: 1px solid rgba(139, 53, 255, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 53, 255, 0.1);
}

.detected-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detected-item span {
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.detected-item strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: 1px;
}

/* Official Tournament Banner */
.mw-tourney-banner {
  margin-bottom: 40px;
}

.mw-tourney-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 18px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  background: 
    radial-gradient(circle at 90% 0%, rgba(88, 101, 242, 0.18), transparent 45%),
    rgba(6, 14, 26, 0.85);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.mw-tourney-info span {
  display: block;
  color: #9cb0ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.mw-tourney-info h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: #fff;
}

.mw-tourney-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.btn-discord-join {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
  transition: all 0.25s;
}

.btn-discord-join:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.5);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
}

.tool-card.featured::before {
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
}

.tool-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tool-number-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-num {
  font-family: "Rajdhani", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.tool-title-group h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
  letter-spacing: 0.5px;
}

.tool-title-group span {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tool-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.tool-badge.purple {
  background: rgba(139, 53, 255, 0.15);
  color: #bb86fc;
  border-color: rgba(139, 53, 255, 0.35);
}

.tool-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 24px;
}

/* Tool 1: Form */
.input-box {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tool-input {
  flex: 1;
  background: rgba(2, 6, 12, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.25s;
}

.tool-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.btn-tool-action {
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #00a2ff);
  color: #03070d;
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
}

.btn-tool-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.4);
}

.examples-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.examples-row code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--cyan);
  font-family: monospace;
}

.finder-status {
  margin-top: 12px;
  font-size: 0.88rem;
  min-height: 24px;
}

.results-card {
  margin-top: 14px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 14px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.result-row:last-child {
  border-bottom: none;
}

.result-row span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.result-row strong {
  font-family: monospace;
  color: #fff;
  font-size: 0.95rem;
}

.btn-copy-mini {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-mini:hover {
  background: var(--cyan);
  color: #03070d;
}

/* Tool 2: Time Tool */
.time-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.time-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.time-field input {
  width: 100%;
  background: rgba(2, 6, 12, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.25s;
  color-scheme: dark;
}

.time-field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 16px rgba(139, 53, 255, 0.3);
}

.btn-convert-action {
  width: 100%;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), #6314cc);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 20px;
}

.btn-convert-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 53, 255, 0.45);
}

.timestamp-grid {
  display: grid;
  gap: 10px;
}

.timestamp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(139, 53, 255, 0.2);
  border-radius: 12px;
}

.timestamp-label-col small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timestamp-label-col strong {
  font-size: 0.9rem;
  color: #fff;
}

.timestamp-code-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timestamp-code-col code {
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #bb86fc;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 24px;
  border-radius: 10px;
  background: #03070d;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor follower */
.tft-cursor-dot,
.tft-cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease-out;
}

.tft-cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  box-shadow: 0 0 10px var(--purple), 0 0 20px var(--purple);
}

.tft-cursor-trail {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(139, 53, 255, 0.7);
  background: radial-gradient(circle, rgba(139, 53, 255, 0.25) 0%, transparent 70%);
  box-shadow: 0 0 20px rgba(139, 53, 255, 0.4);
  transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s;
}

.tft-cursor-trail.hover {
  width: 56px;
  height: 56px;
  border-color: var(--cyan);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
}

@media (pointer: coarse), (max-width: 900px) {
  .tft-cursor-dot,
  .tft-cursor-trail {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .tools-nav {
    padding: 0 16px;
  }
  .detected-time-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mw-tourney-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-discord-join {
    width: 100%;
    justify-content: center;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .input-box {
    flex-direction: column;
  }
  .btn-tool-action {
    width: 100%;
  }
}
