/* EGTHost Tools - Custom Design, Utility & Animation Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.04);
}
.dark ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.65);
}

/* Category Pill Container No Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Zero Cumulative Layout Shift (CLS) Ad Slot Styles */
.ad-slot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    rgba(241, 245, 249, 0.6),
    rgba(241, 245, 249, 0.6) 10px,
    rgba(248, 250, 252, 0.8) 10px,
    rgba(248, 250, 252, 0.8) 20px
  );
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  transition: all 0.2s ease;
}
.dark .ad-slot-container {
  background: repeating-linear-gradient(
    45deg,
    rgba(30, 41, 59, 0.4),
    rgba(30, 41, 59, 0.4) 10px,
    rgba(15, 23, 42, 0.6) 10px,
    rgba(15, 23, 42, 0.6) 20px
  );
  border-color: #334155;
}
.ad-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

/* Dedicated Fixed Dimension Slots for CLS = 0 */
#ad-top-banner {
  min-height: 90px;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  #ad-top-banner {
    min-height: 100px;
    max-width: 320px;
  }
}

#ad-sidebar-sticky {
  min-height: 250px;
  width: 100%;
  max-width: 300px;
}
@media (min-height: 800px) {
  #ad-sidebar-sticky {
    min-height: 600px;
  }
}

#ad-action-box {
  min-height: 280px;
  width: 100%;
  max-width: 336px;
  margin: 0 auto;
}

#ad-mid-article {
  min-height: 100px;
  width: 100%;
}

#ad-mobile-anchor {
  min-height: 50px;
  height: 50px;
  width: 320px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

/* Keyboard Tester Key Styling */
.kb-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.6rem;
  min-width: 2.2rem;
  height: 2.4rem;
  border-radius: 0.375rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 0 #94a3b8;
  transition: all 0.06s ease;
  user-select: none;
}
.dark .kb-key {
  background-color: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
  box-shadow: 0 2px 0 #0f172a;
}
.kb-key.pressed {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.6), inset 0 2px 4px rgba(0,0,0,0.2) !important;
  transform: translateY(2px);
}
.kb-key.tested {
  background-color: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 0 #047857;
}
.dark .kb-key.tested {
  background-color: #059669;
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 2px 0 #064e3b;
}

/* Diff Checker Highlighting */
.diff-del {
  background-color: #fee2e2;
  color: #991b1b;
  text-decoration: line-through;
}
.dark .diff-del {
  background-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.diff-ins {
  background-color: #dcfce7;
  color: #166534;
  font-weight: 600;
}
.dark .diff-ins {
  background-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

/* Glassmorphism Studio Preview Bubbles */
.glass-bubble-1 {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  filter: blur(8px);
}
.glass-bubble-2 {
  position: absolute;
  bottom: 10px;
  right: 20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  filter: blur(10px);
}

/* Fullscreen Dead Pixel Colors */
.dead-pixel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-wifi-card,
  #printable-wifi-card *,
  #invoice-printable-container,
  #invoice-printable-container *,
  #md-preview-pane,
  #md-preview-pane * {
    visibility: visible;
  }
  #printable-wifi-card,
  #invoice-printable-container,
  #md-preview-pane {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: white !important;
    color: black !important;
  }
  .no-print, header, footer, #ad-top-banner, #ad-sidebar-sticky, #ad-mobile-anchor, #ad-mid-article {
    display: none !important;
  }
}

/* Animations */
@keyframes pulseFast {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}
.animate-pulse-fast {
  animation: pulseFast 0.8s infinite;
}

.tool-card-item { text-align: left !important; }

/* In-Tool Bottom Banner Ad */
#ad-tool-bottom-banner {
  min-height: 90px;
  width: 100%;
  margin: 1.5rem 0;
}
