/* -----------------------------------------------------
   ItzUtilities — Modern Professional UI
   Clean, SaaS-like, fast-loading design system
----------------------------------------------------- */

:root {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout */

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */

.site-header {
  background: #ffffffcc;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo span {
  color: var(--primary);
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

/* Typography */

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Tool Card */

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.tool-card label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.tool-card input,
.tool-card textarea,
.tool-card select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f3f4f6;
  font: inherit;
  margin-bottom: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.tool-card input:focus,
.tool-card textarea:focus,
.tool-card select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}

.tool-card button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.tool-card button:hover {
  background: var(--primary-dark);
}

.tool-card button:active {
  transform: scale(0.98);
}

/* Result Box */

.result {
  margin-top: 1rem;
  padding: 1rem;
  background: #f3f4f6;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  font-size: 1rem;
  color: var(--text-main);
}

.result.monospace {
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* Home Grid */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.tool-link {
  display: block;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.tool-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.tool-link h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.tool-link p {
  margin: 0;
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

/* Ads */

.ad {
  margin: 2rem 0;
}

/* Mobile */

@media (max-width: 640px) {
  nav a {
    margin-left: 0.75rem;
  }
}