/* ============================================
   oXben Tools – GLOBAL CSS
   Retro Terminal Theme
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0d0d0d;
  --bg-card: #111111;
  --bg-hover: #1a1a1a;
  --bg-input: #0a0a0a;
  --bg-menu: #0d0d0d;
  --bg-status: #0a0a0a;

  --text-primary: #39ff14;
  --text-secondary: #32e60e;
  --text-dim: #20c904;
  --text-muted: #666666;
  --text-highlight: #7fff56;
  --text-white: #dddddd;

  --border-color: #39ff1440;
  --border-bright: #39ff1470;
  --border-active: #39ff14;

  --accent: #39ff14;
  --accent-dim: #32e60e;
  --accent-bg: #39ff1415;

  --danger: #ff4444;
  --warning: #ffaa00;
  --info: #00aaff;

  --font-mono: 'Courier New', 'Consolas', 'Liberation Mono', monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 22px;
  --font-size-3xl: 28px;

  --radius: 2px;
  --max-width: 1400px;
  --header-height: 40px;
  --status-height: 24px;

  --glow: 0 0 6px #39ff1455;
  --glow-strong: 0 0 14px #39ff1488;
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: var(--text-highlight);
  text-shadow: var(--glow);
}

ul, ol { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: var(--font-mono);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  outline: none;
}

button {
  cursor: pointer;
  padding: 6px 16px;
  border: 1px solid var(--border-bright);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.15s;
}
button:hover {
  background: var(--accent-bg);
  border-color: var(--border-active);
  text-shadow: var(--glow);
}

input, textarea, select {
  padding: 6px 10px;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--border-active);
  box-shadow: var(--glow);
}

/* --- UTILITY CLASSES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-white { color: var(--text-white); }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-bright); }

/* --- SELECTION --- */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* --- ADS --- */
.ad-slot {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin: 12px 0;
  background: transparent;
}
/* When AdSense is active, slots expand to fit content */
.ad-slot ins.adsbygoogle { width: 100%; }
.ad-slot--top { min-height: 50px; }
.ad-slot--sidebar { min-height: 200px; }
.ad-slot--bottom { min-height: 50px; }
.ad-slot--in-content { min-height: 100px; margin: 20px 0; }
