/*
Theme Name: KooraFlex
Author: KooraFlex
Version: 1.0.1
Text Domain: kooraflex
*/
:root{--kf-green:#16a34a;--kf-dark:#101827;--kf-soft:#f4f7f5;--kf-border:#e5e7eb}
*{box-sizing:border-box}body{margin:0;font-family:"Cairo",Tahoma,Arial,sans-serif;background:#f7f8fa;color:#18202b;direction:rtl}
a{color:inherit;text-decoration:none}.container{width:min(1180px,calc(100% - 28px));margin:auto}
.site-header{background:#fff;border-bottom:1px solid var(--kf-border);position:sticky;top:0;z-index:30}
.header-row{min-height:68px;display:flex;align-items:center;gap:24px}.brand{font-size:25px;font-weight:900;color:var(--kf-green)}nav{display:flex;gap:18px;font-weight:700;font-size:14px}
.hero{padding:34px 0 18px}.hero h1{margin:0 0 8px;font-size:clamp(28px,5vw,48px)}.hero p{color:#667085;margin:0;line-height:1.9}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border:1px solid var(--kf-border);border-radius:18px;overflow:hidden;box-shadow:0 4px 18px rgba(16,24,39,.04)}
.card img{width:100%;aspect-ratio:16/9;object-fit:cover}.card-body{padding:16px}.card h2{font-size:18px;line-height:1.6;margin:0 0 8px}.meta{font-size:12px;color:#7b8494}.excerpt{color:#5f6b7a;line-height:1.9;font-size:14px}
.article{background:#fff;border:1px solid var(--kf-border);border-radius:20px;padding:clamp(18px,4vw,38px);margin:28px auto;max-width:900px}.article h1{font-size:clamp(28px,4vw,44px);line-height:1.45}.article .lead{font-size:19px;color:#667085;line-height:1.9}.article-content{font-size:17px;line-height:2.1}.article-content p{margin:0 0 22px}.article img{max-width:100%;height:auto;border-radius:16px}
.section-title{margin:26px 0 16px;font-size:24px}
.matches-board{background:#fff;border:1px solid var(--kf-border);border-radius:20px;padding:16px;margin:8px 0 28px;box-shadow:0 6px 24px rgba(16,24,39,.05);overflow:hidden}
.matches-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#f3f6f4;padding:6px;border-radius:14px}
.matches-tab{border:0;background:transparent;padding:12px 10px;border-radius:10px;font:inherit;font-weight:800;cursor:pointer;color:#667085}
.matches-tab.is-active{background:#fff;color:var(--kf-green);box-shadow:0 2px 10px rgba(16,24,39,.08)}
.matches-panel{display:none;padding-top:16px}.matches-panel.is-active{display:block}
.matches-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.matches-panel-head h2{font-size:20px;margin:0}.matches-panel-head span{font-size:12px;color:#7b8494}
.match-list{display:grid;gap:12px}
.match-row{display:grid;align-items:center;gap:12px;padding:14px;border:1px solid var(--kf-border);border-radius:16px;background:#fff;transition:.2s}
.match-row:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(16,24,39,.06)}
.match-row-rich{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);min-height:118px}
.team-side{display:flex;align-items:center;gap:12px;min-width:0}.team-home{justify-content:flex-start}.team-away{justify-content:flex-end}
.team-logo-wrap{width:62px;height:62px;border-radius:18px;background:#f7f9f8;border:1px solid var(--kf-border);display:grid;place-items:center;flex:0 0 62px;overflow:hidden}
.team-logo{width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;object-fit:contain!important;display:block!important;aspect-ratio:auto!important}
.team-logo-fallback{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#ecfdf3;color:#166534;font-weight:900}
.team-name{font-weight:900;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.match-center{min-width:94px;text-align:center;display:grid;gap:5px;justify-items:center}
.match-time{font-size:13px;font-weight:900;color:var(--kf-dark);background:#f3f6f4;padding:6px 10px;border-radius:999px}
.match-vs{font-size:11px;font-weight:900;color:#98a2b3;letter-spacing:.08em}
.empty-matches{padding:18px;text-align:center;color:#7b8494;background:#f8faf9;border-radius:12px}
.site-footer{margin-top:50px;padding:32px 0;background:#101827;color:#d0d5dd}
@media(max-width:800px){
.grid{grid-template-columns:1fr}.header-row{flex-wrap:wrap;padding:12px 0}nav{width:100%;overflow:auto;padding-bottom:4px}.article{border-radius:0;border-left:0;border-right:0}
.matches-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.matches-tab{font-size:12px;padding:10px 6px}
.match-row-rich{grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);gap:8px;padding:12px 8px;min-height:112px}
.team-side{flex-direction:column;gap:6px;text-align:center;justify-content:center}.team-logo-wrap{width:54px;height:54px;flex-basis:54px;border-radius:16px}
.team-logo{width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important}.team-name{font-size:12px}.match-center{min-width:64px}.match-time{font-size:11px;padding:5px 7px}
}
