/* AgeTimeTools — Light + Airy (FULL) 
   Fixes desktop layout (hero + tool grid) while keeping readability.
   Drop-in replacement for /css/style.css
*/

:root{
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: rgba(37,99,235,.10);
  --shadow: 0 12px 28px rgba(17,24,39,.06);
  --radius: 16px;
}
/* HERO CLOCK LINE (no box) */
.hero{
  position: relative;
}

.hero-clock-line{
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}

.hero-clock-line #live_time{
  color: var(--text);
  font-weight: 800;
  margin-left: 6px;
}

.hero-clock-line #live_gmt{
  margin-left: 6px;
  font-weight: 600;
  color: var(--muted);
}

/* Mobile: să nu iasă din ecran */
@media (max-width: 980px){
  .hero-clock-line{
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin: 0 0 12px;
    white-space: normal;
    text-align: left;
  }
}

/* Base */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ text-decoration:none; color:inherit; }
.container{ width:min(1100px, 92%); margin:0 auto; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:10;
  background: rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  padding: 14px 4%;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:12px; font-weight:650; }
.brand-mark{
  width:36px; height:36px; display:grid; place-items:center;
  background: var(--accent-soft);
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 12px;
}
.brand-name{ font-size: 17px; letter-spacing:.2px; }

.nav{ display:flex; gap:10px; align-items:center; }
.nav-link{
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 550;
}
.nav-link:hover{ background:#f3f4f6; color: var(--text); }
.nav-link.active{ background: rgba(37,99,235,.10); color: var(--text); }

/* Hero (homepage) */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  padding: 46px 0 18px;
  align-items:start;
}
.hero h1{
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  margin: 0 0 14px;
  font-weight: 780;
  letter-spacing: -0.2px;
}
.lead{
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 18px;
}
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; }

/* Cards */
.hero-card, .tool-card-lg, .side-box, .tool-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card{ padding: 22px; }
.card-title{ margin:0; font-size: 18px; font-weight: 750; }
.card-subtitle{ margin: 8px 0 16px; color: var(--muted); font-size: 14px; font-weight: 450; }

.section{ padding: 34px 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
.section h2{ margin:0 0 10px; font-size: 22px; font-weight: 760; }
.muted{ color: var(--muted); }

/* Tools grid (homepage) */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.tool-card{
  padding: 16px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.tool-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(17,24,39,.08);
}
.tool-card.disabled{ opacity:.60; cursor:not-allowed; }
.tool-icon{
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.14);
}
.tool-title{ font-weight: 750; }
.tool-desc{ color: var(--muted); font-size: 14px; margin-top: 4px; font-weight: 450; }

/* Page head (tool pages) */
.page-head{ padding: 48px 0 14px; }
.page-head h1{
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* Forms */
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field span{
  display:block;
  margin-bottom:8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
input[type="date"]{
  width:100%;
  height: 54px;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  outline: none;
}
input[type="date"]:hover{ border-color: rgba(37,99,235,.25); }
input[type="date"]:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* Buttons */
.btn{
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 650;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}
.btn:hover{
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(37,99,235,.18);
}
.btn:active{ opacity:.86; transform: translateY(0); }
.btn-ghost{
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}
.btn-ghost:hover{ background:#f3f4f6; box-shadow:none; }
.btn.full{ width:100%; margin-top: 12px; }
.btn-row{ display:flex; gap:12px; margin-top: 18px; flex-wrap:wrap; }

/* Simple result box (homepage) */
.result{
  margin-top: 14px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 520;
}

/* Tool layout */
.tool-shell{ padding-bottom: 18px; }
.tool-card-wrap{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:start;
}
.tool-card-lg{ padding: 24px; }
.tool-side{ display:flex; flex-direction:column; gap:14px; }
.side-box{ padding: 18px; }
.side-title{ font-weight: 760; margin-bottom: 12px; font-size: 15px; }
.side-link{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 560;
}
.side-link:hover{ background:#f3f4f6; color: var(--text); }

/* Result panel (tool page) */
.result-panel{
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.result-empty{ color: var(--muted); font-weight: 520; }

/* KPI blocks */
.kpi{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.kpi .box{
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.kpi .label{ font-size: 13px; color: var(--muted); font-weight: 650; }
.kpi .value{ font-size: 22px; font-weight: 820; margin-top: 6px; }

/* Lists */
.bullets{ padding-left: 20px; color: var(--muted); font-weight: 450; }
.tiny-note{ color: var(--muted); font-size: 14px; margin: 14px 0 0; font-weight: 450; }

/* FAQ */
.faq details{
  background:#ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 12px 0;
}
.faq summary{ font-weight: 700; font-size: 17px; cursor:pointer; }
.faq p{ margin: 10px 0 0; color: var(--muted); font-weight: 450; }

/* Footer */
.footer{
  margin-top: 60px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.80);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 18px;
}
.footer-brand{ font-weight: 800; margin-bottom: 6px; }
.footer-links{ display:flex; gap: 10px; flex-wrap:wrap; }
.footer-links a{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 560;
  font-size: 15px;
}
.footer-links a:hover{ background:#f3f4f6; color: var(--text); }

/* Responsive */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; padding-top: 34px; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card-wrap{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .kpi{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  body{ font-size: 17px; }
  .site-header{ padding: 12px 4%; }
  .hero{ gap: 18px; }
  .hero-card{ padding: 18px; }
  .tool-card-lg{ padding: 18px; }
}







