:root {
  --color-bg: #0f172a;
  --color-card: #14182b;
  --color-text: #ffffff;
  --color-muted: #9aa4c8;
  --color-primary: #3b82f6;
  --color-border: rgba(255,255,255,0.08);

  --font-main: Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: linear-gradient(180deg,#0f1220,#11152a);
  color: var(--color-text);
}

/* HEADER */

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px;
  background: #020617;
  border-bottom: 1px solid var(--color-border);
}

.logo a {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
}

/* MAIN LAYOUT */

main {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* CARDS */

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

/* TEXT */

.muted {
  color: var(--color-muted);
}

/* INPUTS */

textarea,
input,
select {
  background: #0e1326;
  color: #e8ecff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
}

textarea::placeholder,
input::placeholder {
  color: #7c86b3;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* BUTTONS */

.btn {
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #1a2140;
  color: white;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(180deg,#2b5cff,#427dff);
}

/* STACK + ROW */

.stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* SEARCH */

#global-search {
  margin-bottom: 12px;
}

/* SEO BLOCK */

#seo-block {
  margin-top: 12px;
}

#seo-block h2 {
  margin-top: 14px;
  margin-bottom: 6px;
}

/* FOOTER */

footer {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}

/* LINKS */

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
/* INDEX PAGE FIX */

/* ===== INDEX PAGE FIX ===== */

body.home {
  text-align: center;
}

body.home .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 30px 50px;
  max-width: 1200px;
  margin: auto;
}

body.home .card {
  background: #161b22;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

body.home .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ===== INDEX PAGE ===== */

body.home {
  text-align: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 30px 50px;
  max-width: 1200px;
  margin: auto;
}

.tool-card {
  background: #161b22;
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.tool-title {
  font-size: 18px;
  font-weight: bold;
  margin: 8px 0;
}

.tool-desc {
  font-size: 14px;
  color: var(--color-muted);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* SEARCH BAR (index + tools) */

#search-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 30px;
}

#search-input {
  width: 60%;
  max-width: 700px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #0e1326;
  color: white;
  font-size: 17px;
  transition: 0.2s;
}

#search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}
/* ===== INDEX TOOLS GRID ===== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  padding: 10px 0 40px;
  max-width: 1100px;
  margin: auto;
}

/* CARD TOOL */

.tool-card {
  background: #161b22;
  border-radius: 14px;
logo a {
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}
  padding: 18px;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.2s ease;
  display: block;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.12);
}

/* TITLU */

.tool-title {
  font-size: 17px;
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 4px;
}

/* DESCRIERE */

.tool-desc {
  font-size: 14px;
  color: var(--color-muted);
}

/* BADGES */

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-weight: 600;
}

.badge.Security {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
}

.badge.Converters {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}

.badge.Dev {
  background: rgba(168,85,247,0.15);
  color: #c084fc;
}

.badge.Text {
  background: rgba(251,191,36,0.15);
  color: #facc15;
}
.home main p.muted {
  max-width: 700px;
  margin: 10px auto 30px;
  font-size: 16px;
  line-height: 1.6;
}
