/* =========================================================
   Linkrify Base Styles - Light Theme Only
   ========================================================= */

:root{
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --heading: #102a43;
  --brand: #0ea5e9;
  --brand-600: #0284c7;
  --line: #e6e9ef;
  --shadow-1: 0 6px 20px rgba(15,23,42,.06);
  --shadow-2: 0 12px 30px rgba(15,23,42,.09);
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ---------- Reset ---------- */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size:16px;
  line-height:1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Basic Elements ---------- */
img,svg,video{ max-width:100%; height:auto; display:block; }
a{ color: var(--brand-600); text-decoration:none; }
a:hover{ text-decoration: underline; }
h1,h2,h3{ color: var(--heading); margin:0 0 10px; line-height:1.25; }
h1{ font-size: clamp(28px, 3.2vw, 40px); }
h2{ font-size: clamp(22px, 2.4vw, 28px); }
h3{ font-size: 18px; }
p{ color:#334155; margin:0 0 12px; }

/* ---------- Layout ---------- */
.container{
  max-width:1100px;
  margin:auto;
  padding:0 16px;
}
.page-content{ padding-top:10px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 2px 8px rgba(15,23,42,.04);
  z-index:50;
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:64px;
}
.logo{
  font-weight:800;
  color:var(--heading);
  font-size:22px;
  text-decoration:none;
}
.logo:hover{ text-decoration:none; }

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 10px;
  font-size:20px;
  cursor:pointer;
}

/* ---------- Nav ---------- */
.main-nav{ display:flex; }
.nav-links{
  display:flex;
  align-items:center;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  padding:10px 12px;
  border-radius:10px;
  color:#0f172a;
  font-size:15px;
}
.nav-links a:hover{ background:#f1f5f9; }
.nav-links a.active{
  background:#e6f4ff;
  color:#075985;
  border:1px solid #bae6fd;
}

/* ---------- Hero ---------- */
.hero{ padding:30px 0 10px; }
.hero p{
  max-width:900px;
  color:#334155;
  margin-top:10px;
}
#tool-search{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--line);
  font-size:15px;
}
#tool-search:focus{
  outline:none;
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.15);
}

/* ---------- Tools Grid ---------- */
.tools-overview{ padding:18px 0 48px; }
.tools-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
  margin-top:20px;
}
.tool-card{
  background:var(--card);
  padding:18px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition: transform .14s ease, box-shadow .14s ease;
}
.tool-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-2);
}
.tool-card h3{ margin:0 0 8px; font-size:18px; color:var(--heading); }
.tool-card p{ margin:0; color:var(--muted); font-size:14px; }
.tool-meta{ margin-top:12px; font-size:13px; color:#64748b; }

/* ---------- Inputs ---------- */
input,textarea,select{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  font-size:15px;
  background:#fff;
}
input:focus,textarea:focus{
  outline:none;
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.15);
}

/* ---------- Button ---------- */
button,input[type=submit]{
  background:var(--brand);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:10px 14px;
  font-weight:600;
  cursor:pointer;
}
button:hover{ background:var(--brand-600); }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .nav-toggle{ display:inline-block; }
  .main-nav{
    display:none;
    position:absolute;
    top:64px; left:0; right:0;
    background:#fff;
    border-bottom:1px solid var(--line);
  }
  .main-nav.open{ display:block; }
  .nav-links{ flex-direction:column; align-items:stretch; }
  .nav-links li{ border-top:1px solid #f1f5f9; }
  .nav-links a{ padding:14px 18px; border-radius:0; }
}

/* ---------- Accessibility ---------- */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}





/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0b0e16 0%, #121826 100%);
  color: #d1d5db;
  font-size: 14px;
  padding: 50px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
}

.site-footer h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #4f8bff;
  margin-top: 6px;
}

.footer-about p {
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 420px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #9bb0ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact p {
  color: #cbd5e1;
}

.footer-contact a {
  color: #9bb0ff;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}
