/*
Theme Name: Codesys Teknik Forum
Theme URI: https://forum.codesysegitim.com/
Author: Codesys Egitim Portali
Description: Modern, responsive WordPress theme for bbPress forum communities.
Version: 1.4.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: codesys-teknik-forum
License: GPL-2.0-or-later
*/
:root{--bg:#12171d;--panel:#1d252d;--panel2:#242e38;--edge:#34414c;--ink:#edf2f5;--muted:#aebcc6;--red:#c50911;--red2:#e52c34;--width:1240px;--shadow:0 14px 30px rgba(0,0,0,.15)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 system-ui,-apple-system,'Segoe UI',Arial,sans-serif}a{color:#ff797d;text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button{cursor:pointer}.wrap{max-width:var(--width);margin:auto;padding:0 22px}.skip-link{position:absolute;top:-100px;left:12px;background:#fff;color:#111;padding:9px;z-index:1000}.skip-link:focus{top:8px}.topline{background:#0d1116;color:#bac4cf;font-size:13px}.topline .wrap{min-height:34px;display:flex;align-items:center;justify-content:space-between}.sitehead{background:#1a2027;border-bottom:3px solid var(--red)}.headinner{display:flex;align-items:center;justify-content:space-between;gap:25px;min-height:90px}.brand{display:flex;align-items:center;gap:13px;color:#fff;min-width:240px}.brand:hover{text-decoration:none}.brandmark{width:49px;height:49px;display:grid;place-items:center;background:linear-gradient(145deg,#ed3d43,#a1080b);border-radius:12px;color:#fff;font-weight:900;font-size:23px;box-shadow:0 0 0 5px #ffffff10}.brand strong{font-size:20px;display:block;line-height:1.2}.brand small{color:#c2cbd4;letter-spacing:.5px}.navlinks{display:flex;gap:22px;align-items:center;flex-wrap:wrap}.navlinks a{color:#e1e7eb;font-weight:650}.navlinks a:hover{color:#fff}.pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;background:var(--red);color:#fff!important;padding:10px 17px;font-weight:700;border:1px solid #ffffff15}.pill:hover{background:#e01b24;text-decoration:none}.pill.outline{background:transparent;border:1px solid #69747d}.hero{padding:43px 0;background:radial-gradient(ellipse at 90% 20%,#c5091129,transparent 50%),linear-gradient(145deg,#202831,#121820);border-bottom:1px solid var(--edge)}.eyebrow{color:#ff6c72;font-weight:800;font-size:12px;letter-spacing:2px;text-transform:uppercase}.hero h1{font-size:clamp(28px,4vw,45px);line-height:1.14;letter-spacing:-.9px;margin:10px 0}.hero p{color:#c9d2da;max-width:690px;margin:0 0 23px}.heroactions{display:flex;gap:12px;flex-wrap:wrap}.searchline{margin:26px 0 22px;display:flex;gap:10px}.searchline input{width:100%;min-width:0;padding:14px 18px;border:1px solid #4a5763;border-radius:9px;background:#222c35;color:#fff}.searchline button{padding:12px 22px;border:0;border-radius:9px;background:var(--red);color:#fff;font-weight:750}.mainlayout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:25px;padding-top:28px;padding-bottom:65px}.primary{min-width:0}.sectiontitle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.sectiontitle h2{font-size:20px;margin:0}.sectiontitle span{font-size:12px;color:var(--muted)}.statsline{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:26px}.stat{padding:17px;background:var(--panel);border:1px solid var(--edge);border-radius:11px;text-align:center}.stat strong{display:block;font-size:23px;color:#fff}.stat small{color:var(--muted)}.forumcat{margin-bottom:20px;border:1px solid var(--edge);border-radius:12px;overflow:hidden;background:var(--panel);box-shadow:var(--shadow)}.cathead{background:linear-gradient(90deg,#b3080f,#d51420);color:#fff;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.cathead a{color:white;font-size:17px;font-weight:800}.cathead p{font-size:12px;margin:3px 0 0;color:#fff;opacity:.85;max-width:650px}.cathead button{font-weight:700;background:#fff2;border:1px solid #fff5;border-radius:8px;padding:6px 12px;color:#fff}.forumrow{display:grid;grid-template-columns:50px minmax(0,1fr) 110px 180px;align-items:center;gap:15px;padding:17px 18px;border-bottom:1px solid #ffffff12}.forumrow:last-child{border-bottom:0}.forumrow:hover{background:#ffffff07}.forumicon{width:46px;height:46px;display:grid;place-items:center;background:#34414d;border-radius:10px;font-size:21px;color:#fff}.forumname{font-size:16px;font-weight:800;color:#f0f5f8}.forumdesc{font-size:13px;color:var(--muted);margin-top:2px}.countmeta{font-size:12px;color:#bfc9d0;text-align:center}.countmeta strong{display:block;font-size:15px;color:white}.lastmeta{font-size:12px;color:var(--muted);line-height:1.4}.lastmeta a{display:block;color:#fff;font-weight:700;font-size:13px;overflow-wrap:anywhere}.panel{background:var(--panel);border:1px solid var(--edge);border-radius:12px;margin-bottom:20px;padding:20px;overflow:hidden}.panel h2,.panel h3{margin:0 0 14px;font-size:17px}.sideitem{padding:10px 0;border-bottom:1px solid #ffffff15}.sideitem:last-child{border:0}.sideitem a{color:#f7f8f9;font-weight:650;display:block}.sideitem small{color:var(--muted)}.sideinfo{font-size:13px;color:var(--muted)}.sideinfo a{font-weight:650}.topicrow{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:14px 16px;border-bottom:1px solid var(--edge)}.topicrow:last-child{border:0}.topicrow a{color:#f7f7f7;font-weight:700}.topicrow small{display:block;color:var(--muted);margin-top:2px}.topicrow .num{color:#ff9b9f;white-space:nowrap}.topiclist{background:var(--panel);border:1px solid var(--edge);border-radius:10px;overflow:hidden;margin-bottom:26px}.contentcard{background:var(--panel);border:1px solid var(--edge);border-radius:12px;padding:24px;min-width:0;overflow-wrap:anywhere}.contentcard h1{font-size:27px;line-height:1.3;margin-top:0}.contentcard h2{font-size:22px}.contentcard img{max-width:100%;height:auto}.entry-meta{color:var(--muted);font-size:13px}.sitefoot{border-top:3px solid var(--red);background:#0f1419;color:#aeb9c2;padding:30px 0}.footerflex{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.sitefoot a{color:#e4e8ec}.pagination{padding:18px 0}.pagination .page-numbers{background:#2d3740;color:#fff;padding:7px 11px;border-radius:5px}.pagination .current{background:var(--red)}.bbpress #bbpress-forums{color:var(--ink);font-size:14px}.bbpress #bbpress-forums a{color:#ff8d92}.bbpress #bbpress-forums ul.bbp-forums,.bbpress #bbpress-forums ul.bbp-topics,.bbpress #bbpress-forums ul.bbp-replies,.bbpress #bbpress-forums div.bbp-reply-header,.bbpress #bbpress-forums div.bbp-topic-header{border-color:var(--edge);background:transparent}.bbpress #bbpress-forums li.bbp-header,.bbpress #bbpress-forums li.bbp-footer{background:#303943;color:#fff;border-color:var(--edge)}.bbpress #bbpress-forums li.bbp-body ul.forum,.bbpress #bbpress-forums li.bbp-body ul.topic,.bbpress #bbpress-forums div.bbp-reply-header,.bbpress #bbpress-forums div.bbp-topic-header{background:#242d36;color:var(--ink);border-color:var(--edge)}.bbpress #bbpress-forums div.bbp-reply-content,.bbpress #bbpress-forums div.bbp-topic-content{color:var(--ink)}.bbpress #bbpress-forums fieldset.bbp-form{border:1px solid var(--edge);background:#1b232a}.bbpress #bbpress-forums fieldset.bbp-form legend{color:#fff}.bbpress #bbpress-forums input[type=text],.bbpress #bbpress-forums input[type=password],.bbpress #bbpress-forums textarea,.bbpress #bbpress-forums select{max-width:100%;color:#14202b;background:#fff;padding:9px}.bbpress #bbpress-forums button,.bbpress #bbpress-forums input[type=submit]{background:var(--red);border:0;border-radius:6px;color:#fff;padding:10px 14px}.bbpress #bbpress-forums .bbp-breadcrumb,.bbpress #bbpress-forums .bbp-pagination{color:var(--muted)}.bbpress #bbpress-forums .bbp-template-notice{background:#293842;color:#f1f1f1;border-color:#667986}.bbpress #bbpress-forums .bbp-template-notice p{color:#f1f1f1}.bbpress #bbpress-forums .bbp-reply-author img.avatar,.bbpress #bbpress-forums .bbp-topic-author img.avatar{border-radius:50%}.bbpress #bbpress-forums .bbp-reply-content a,.bbpress #bbpress-forums .bbp-topic-content a{text-decoration:underline}.muted{color:var(--muted)}@media(max-width:900px){.mainlayout{grid-template-columns:minmax(0,1fr)}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.sidebar .panel{margin-bottom:0}.navlinks{gap:12px}.headinner{flex-wrap:wrap;padding-top:14px;padding-bottom:14px}.forumrow{grid-template-columns:44px minmax(0,1fr) 95px}.lastmeta{display:none}}@media(max-width:620px){.wrap{padding:0 13px}.headinner{gap:14px}.brand strong{font-size:17px}.brandmark{width:42px;height:42px}.navlinks{gap:11px;font-size:13px}.pill{padding:8px 10px}.hero{padding:26px 0 34px}.mainlayout{padding-top:18px}.statsline{grid-template-columns:repeat(2,1fr)}.sidebar{display:block}.sidebar .panel{margin-bottom:15px}.forumrow{grid-template-columns:35px minmax(0,1fr);gap:10px;padding:13px 10px}.forumicon{width:34px;height:34px;font-size:17px}.countmeta{display:none}.cathead{padding:13px 11px}.cathead a{font-size:15px}.cathead button{font-size:12px}.contentcard{padding:15px}.bbpress #bbpress-forums{font-size:12px}.bbpress #bbpress-forums div.bbp-reply-author,.bbpress #bbpress-forums div.bbp-topic-author{width:70px}.bbpress #bbpress-forums div.bbp-reply-content,.bbpress #bbpress-forums div.bbp-topic-content{margin-left:80px}}

/* v1.2: configurable branding, container banner and understated footer statistics */
.brand-logo{display:block;width:min(430px,36vw);max-height:96px;height:auto;object-fit:contain;object-position:left center}
.bannerwrap{padding:18px 0 0;background:transparent}.site-banner{width:100%;height:clamp(170px,18vw,250px);background-color:#141920;background-position:center center;background-size:cover;border:1px solid var(--edge);border-radius:16px;box-shadow:var(--shadow)}
.footerstats{padding:7px 0 22px;margin-bottom:20px;display:flex;flex-wrap:wrap;gap:10px 26px;border-bottom:1px solid #ffffff20;font-size:13px;color:#b6c0cb}
.footerstats strong{color:#f4f6f8;font-weight:750}
.sitefoot{padding-top:26px}
.hero{padding:26px 0 34px}
.hero h1{font-size:clamp(26px,3vw,37px)}
@media(max-width:900px){.brand-logo{width:min(390px,68vw);max-height:86px}.site-banner{height:210px}}
@media(max-width:620px){.brand-logo{width:min(315px,92vw);max-height:72px}.bannerwrap{padding-top:12px}.site-banner{height:142px;background-position:center center;border-radius:12px}.footerstats{gap:9px 17px}}


/* v1.4: category logos, centered footer stats, mobile refinements */
.catcopy{min-width:0}
.catmeta{display:flex;align-items:center;gap:14px;flex-shrink:0}
.catbrandlogo{display:block;width:64px;height:64px;object-fit:contain;padding:6px;background:rgba(10,14,18,.24);border:1px solid rgba(255,255,255,.18);border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.footerstats{justify-content:center;text-align:center}
.footerstats span{display:inline-flex;align-items:center;gap:6px}
@media(max-width:900px){.catbrandlogo{width:56px;height:56px}}
@media(max-width:620px){.cathead{align-items:flex-start}.catmeta{gap:10px}.catbrandlogo{width:46px;height:46px;padding:5px;border-radius:11px}.footerstats{justify-content:flex-start}}
