/*
Theme Name: Codelines Blog
Description: Temă de blog pentru codecrm.ro și probabill.ro, cu antetul și subsolul site-urilor. Culorile și linkurile se aleg după domeniu (functions.php).
Version: 1.0
Author: Codelines Web SRL
Text Domain: codelines-blog
*/
:root{--pri:#7c3aed;--pri2:#6d28d9;--cta:#7c3aed;--ctat:#fff;--ink:#1e1b4b;--mut:#5b6478;--line:#e6e8f0;--soft:#f7f7fd;--foot:#1e1b4b;--footink:#d8d6f2;--font:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
body.b-codecrm{--pri:#1741b8;--pri2:#10308c;--cta:#ee7a14;--ctat:#fff;--ink:#14203f;--mut:#566079;--soft:#f5f7fc;--foot:#0a1633;--footink:#c9d3ee;--font:'Manrope',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;font:17px/1.7 var(--font);color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased}
a{color:var(--pri);text-decoration:none}a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.w{max-width:1160px;margin:0 auto;padding:0 20px}
/* antet */
.hd{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 4px 24px rgba(20,32,63,.05)}
.hd .w{display:flex;align-items:center;gap:22px;height:76px;max-width:1320px}
.hd .lg{flex:0 0 auto;display:block}.hd .lg img{height:48px;width:auto;max-width:none;display:block}
.hd nav{display:flex;gap:6px;align-items:center;margin-left:8px}
.hd nav a{color:var(--ink);font-weight:500;font-size:16px;padding:8px 10px;border-radius:8px;white-space:nowrap}
.hd nav a:hover,.hd nav a.on{color:var(--pri);text-decoration:none}
.hd .dr{margin-left:auto;display:flex;align-items:center;gap:18px}
.hd .dr .lo{color:var(--ink);font-weight:500;font-size:16px;white-space:nowrap;background:none;border:0;cursor:pointer;font-family:inherit;padding:8px 4px}
.lm{position:relative}.lm .lmd{display:none;position:absolute;right:0;top:100%;min-width:260px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 36px rgba(20,32,63,.14);padding:8px;z-index:60}.lm:hover .lmd,.lm:focus-within .lmd{display:block}.lm .lmd a{display:block;padding:10px 12px;border-radius:8px;color:var(--ink);font-weight:600;font-size:15px}.lm .lmd a small{display:block;font-weight:400;color:var(--mut);font-size:13px}.lm .lmd a:hover{background:var(--soft);text-decoration:none}
.btn{display:inline-block;white-space:nowrap;background:var(--cta);color:var(--ctat)!important;font-weight:700;font-size:15px;padding:11px 22px;border-radius:999px;text-decoration:none!important}
.btn:hover{filter:brightness(.94)}
.btn.o{background:transparent;color:var(--pri)!important;border:2px solid var(--pri)}
/* listă */
.top{background:var(--soft);padding:54px 0 40px;border-bottom:1px solid var(--line)}
.top h1{margin:0 0 8px;font-size:clamp(30px,4.4vw,46px);line-height:1.15;letter-spacing:-.02em}
.top p{margin:0;color:var(--mut);max-width:680px;font-size:18px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding:40px 0 20px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:0 14px 36px rgba(20,32,63,.12);transform:translateY(-2px)}
.card .im{display:block;aspect-ratio:1200/630;background:var(--soft)}.card .im img{width:100%;height:100%;object-fit:cover;display:block}
.card .bd{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h2{margin:0;font-size:19px;line-height:1.3}.card h2 a{color:var(--ink)}.card h2 a:hover{color:var(--pri);text-decoration:none}
.card .dt{font-size:13px;color:var(--mut)}.card p{margin:0;color:var(--mut);font-size:15px;line-height:1.55}
.card .mo{margin-top:auto;font-weight:700;font-size:14px}
.empty{padding:60px 0;color:var(--mut)}
.pg{display:flex;gap:8px;justify-content:center;padding:10px 0 50px}.pg a,.pg span{padding:8px 14px;border:1px solid var(--line);border-radius:8px;font-weight:600;color:var(--ink)}.pg .current{background:var(--pri);color:#fff;border-color:var(--pri)}
/* articol */
.art{max-width:760px;margin:0 auto;padding:44px 20px 20px}
.art .cr{font-size:14px;color:var(--mut);margin-bottom:14px}
.art h1{margin:0 0 12px;font-size:clamp(28px,4vw,40px);line-height:1.2;letter-spacing:-.02em}
.art .dt{color:var(--mut);font-size:14px;margin-bottom:22px}
.art .fi{margin:0 0 28px;border-radius:14px;overflow:hidden}.art .fi img{display:block;width:100%}
.art .ct h2{font-size:26px;line-height:1.25;margin:34px 0 10px}.art .ct h3{font-size:20px;margin:26px 0 8px}
.art .ct p,.art .ct li{font-size:18px;line-height:1.75}.art .ct ul,.art .ct ol{padding-left:24px}
.art .ct a{text-decoration:underline}
.art .ct img{border-radius:10px}
.cta{max-width:760px;margin:30px auto 10px;padding:0 20px}
.cta .bx{background:var(--soft);border:1px solid var(--line);border-left:5px solid var(--cta);border-radius:14px;padding:22px 24px;display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center}
.cta .bx b{font-size:19px;flex:1 1 320px}.cta .bx p{margin:4px 0 0;font-weight:400;color:var(--mut);font-size:15px}
.rel{max-width:760px;margin:0 auto;padding:10px 20px 40px}.rel h3{font-size:18px;margin:0 0 8px}.rel a{display:block;padding:6px 0;font-weight:600}
/* subsol */
.ft{background:var(--foot);color:var(--footink);margin-top:50px;padding:54px 0 0;font-size:15px}
.ft a{color:var(--footink)}.ft a:hover{color:#fff}
.ft .cols{display:grid;grid-template-columns:1.5fr repeat(var(--n,3),1fr);gap:30px}
.ft h5{color:#fff;margin:0 0 14px;font-size:15px;letter-spacing:.02em}
.ft ul{list-style:none;margin:0;padding:0}.ft li{margin:7px 0}
.ft .lgf{display:block}.ft .lgf img{height:50px;width:auto;max-width:none;display:block;margin-bottom:14px}.ft p{margin:0;line-height:1.6}
.ft .cp{border-top:1px solid rgba(255,255,255,.14);margin-top:36px;padding:18px 0;text-align:center;font-size:13.5px;color:var(--footink)}
@media(max-width:1100px){.hd nav{display:none}}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.ft .cols{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.grid{grid-template-columns:1fr}.ft .cols{grid-template-columns:1fr}.hd .w{height:68px;gap:12px}.hd .dr .lo{display:none}.hd .lg img{height:40px}body{font-size:16px}.art .ct p,.art .ct li{font-size:17px}}

/* antet identic cu site-urile (măsurat la 1204 px, 01.11.2026) */
body.b-codecrm .hd .w{max-width:1204px;padding:0 34px;height:68px;gap:0}
body.b-codecrm .hd .lg img{height:44px;width:237px}
body.b-codecrm .hd nav{margin-left:22px;gap:0}
body.b-codecrm .hd nav a{font-size:15px;font-weight:500;padding:0 15px 0 0;border-radius:0;background:none;color:#14141c;line-height:1}
body.b-codecrm .hd nav a.on,body.b-codecrm .hd nav a:hover{color:var(--pri)}
body.b-codecrm .hd .dr{gap:27px}
body.b-codecrm .hd .dr .lo{font-size:15.5px;font-weight:400;padding:0;color:#14141c;line-height:1}
body.b-codecrm .hd .btn{font-size:15px;font-weight:600;padding:10px 20px;line-height:1}
body.b-probabill .hd{position:static;box-shadow:none;border-bottom:0}
body.b-probabill .hd .w{max-width:1140px;padding:38px 12px 38px;height:auto;gap:10px;align-items:center}
body.b-probabill .hd .lg img{height:96px;width:302px}
body.b-probabill .hd .beta{background:#fef3c7;color:#92400e;border:1px solid #fde68a;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.04em;padding:3px 11px;line-height:1.4}
body.b-probabill .hd .beta:hover{text-decoration:none;background:#fde68a}
body.b-probabill .hd nav{margin-left:auto;gap:0}
body.b-probabill .hd nav a{font-size:16px;font-weight:600;padding:8px 14px;color:#334155;border-radius:0;background:none}
body.b-probabill .hd nav a.on,body.b-probabill .hd nav a:hover{color:#1e1b4b}
body.b-probabill .hd .dr{margin-left:0;gap:6px}
body.b-probabill .hd .dr .lo{font-size:16px;font-weight:600;padding:8px 14px;color:#334155}
body.b-probabill .hd .btn{font-size:16px;font-weight:500;padding:10px 22px}
@media(max-width:600px){body.b-probabill .hd .w{padding:14px 12px}body.b-probabill .hd .lg img{height:52px;width:auto}body.b-probabill .hd .beta{display:none}body.b-codecrm .hd .lg img{width:auto}}
