/* Shared styles for the Isreal Consulting developer sites.
   Keep this file identical in both repos:
   - icllcs/dev-icllc-cc-github          (github.devs.icllc.cc)
   - j-isreal/j-isreal-devs-github-pages (j-isreal.github.devs.icllc.cc) */

:root {
  --accent: #1d4ed8;
  --accent-fg: #ffffff;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --subtle: #f1f5f9;
  --subtle-2: #f8fafc;
  --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  --radius: 10px;
  --maxw: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--fg); background: var(--bg); line-height: 1.6; }
a { color: var(--accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: 72px; }

/* Header */
header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 1.05rem; }
.brand img { width: 44px; height: 44px; }
.brand small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
nav { display: flex; gap: .25rem; flex-wrap: wrap; }
nav a { color: var(--fg); text-decoration: none; padding: .45rem .75rem; border-radius: 6px; font-weight: 500; font-size: .95rem; }
nav a:hover { background: var(--subtle); }

/* Hero */
.hero { background: var(--hero-bg); color: #fff; padding: clamp(3.5rem, 9vw, 6rem) 0; }
.hero.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; opacity: .8; margin: 0 0 .75rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 .9rem; }
.hero.center h1 { margin: 0 auto .9rem; max-width: 20ch; }
.hero p.lead { max-width: 46rem; margin: 0 0 2rem; font-size: 1.1rem; color: #dbeafe; }
.hero.center p.lead { margin: 0 auto 2rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero.center .actions { justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-light { background: #fff; color: var(--fg); border-color: var(--border); }
.btn-light:hover { background: var(--subtle-2); }
.btn svg { width: 18px; height: 18px; }

/* Sections */
section.block { padding: clamp(3rem, 7vw, 4.5rem) 0; }
section.alt { background: var(--subtle-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.section-head p { margin: .25rem 0 0; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #bfdbfe; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.card .icon { width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { margin: .25rem 0 0; font-size: 1.1rem; }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.status { color: var(--muted); grid-column: 1 / -1; padding: 1rem 0; }

/* Developer cards (hub) */
.dev-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .dev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dev-grid { grid-template-columns: 1fr; } }
.dev { align-items: flex-start; }
.dev .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--hero-bg); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.dev h3 { margin: .5rem 0 0; }
.dev .langs-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .5rem; }
.dev ul { margin: .1rem 0 1rem; padding-left: 1.2rem; color: var(--fg); font-size: .95rem; flex: 1; }
.dev ul li::marker { color: var(--accent); }
.dev .btn { padding: .6rem 1rem; font-size: .92rem; }

/* Developer profile (personal pages) */
.profile { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 2.5rem); flex-wrap: wrap; }
.profile .avatar { width: clamp(96px, 16vw, 140px); height: clamp(96px, 16vw, 140px); border-radius: 50%; border: 4px solid rgba(255,255,255,.2); background: #1e3a8a; color: #fff; display: grid; place-items: center; font-size: 2.25rem; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.profile .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-text { flex: 1; min-width: 260px; }
.profile-text p.lead { margin-bottom: 1.25rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.chips li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: .3rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.about { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }
.about-text p { margin: 0 0 1rem; font-size: 1.05rem; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.facts li { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .95rem; }
.facts svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.facts strong { color: var(--fg); font-weight: 600; }

/* Footer */
footer { background: #0f172a; color: #cbd5e1; padding: 2.5rem 0; font-size: .92rem; }
footer .cols { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: #fff; }
footer .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer .brand { color: #fff; }

@media (max-width: 640px) {
  nav { display: none; }
}
