/*
Theme Name: ABT Kora Theme v4 Pro
Theme URI: https://abtalkoora.com
Author: Abtalkoora Team
Description: قالب رياضي عربي احترافي ومتجاوب لموقع أبطال الكرة، مع هيدر ثابت ومحسن وتجهيز للتكامل مع ABT Sports Engine.
Version: 4.1.0
Text Domain: abtalkoora
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

:root{
  --primary:#ef4444;
  --primary-dark:#dc2626;
  --secondary:#0f172a;
  --secondary-2:#1e293b;
  --bg:#f8fafc;
  --card:#fff;
  --text:#1e293b;
  --muted:#64748b;
  --border:#e2e8f0;
  --success:#16a34a;
  --radius:14px;
  --container:1400px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Cairo","Segoe UI",Tahoma,Arial,sans-serif;direction:rtl;text-align:right;line-height:1.75}
img{max-width:100%;height:auto}
a{color:var(--secondary);text-decoration:none}
a:hover{color:var(--primary)}
button,input,textarea,select{font:inherit}
button,input[type=submit]{cursor:pointer}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;top:10px;right:10px;width:auto;height:auto;padding:10px 14px;background:#fff;color:#000;z-index:99999;clip:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--secondary);
  color:#fff;
  border-bottom:3px solid var(--primary);
  box-shadow:0 4px 18px rgba(15,23,42,.16);
}
.top-bar{
  max-width:var(--container);
  min-height:72px;
  margin:auto;
  padding:9px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.site-branding{min-width:0;display:flex;align-items:center}
.site-branding .brand-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#fff;
}
.custom-logo-wrap{display:flex;align-items:center;line-height:0}
.site-branding .custom-logo{
  display:block;
  width:auto;
  max-width:190px;
  height:auto;
  max-height:56px;
  object-fit:contain;
}
.brand-text{font-size:25px;font-weight:800;line-height:1.2}
.site-branding .tag{
  font-size:11px;
  color:#fecaca;
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.25);
  padding:2px 7px;
  border-radius:6px;
}
.header-search{width:min(330px,40vw);flex:0 1 330px}
.header-search form{display:flex;gap:7px;margin:0}
.header-search label{display:block;flex:1;min-width:0}
.header-search input[type=search]{
  width:100%;
  min-width:0;
  height:42px;
  padding:7px 15px;
  border:1px solid #475569;
  border-radius:24px;
  background:#1e293b;
  color:#fff;
  outline:0;
}
.header-search input[type=search]::placeholder{color:#94a3b8}
.header-search input[type=search]:focus{border-color:#f87171;box-shadow:0 0 0 3px rgba(239,68,68,.16)}
.header-search input[type=submit]{
  border:0;
  min-width:72px;
  height:42px;
  border-radius:24px;
  background:var(--primary);
  color:#fff;
  padding:7px 13px;
  font-weight:700;
}
.header-search input[type=submit]:hover{background:var(--primary-dark)}

.main-navigation{
  background:var(--secondary-2);
  border-top:1px solid #334155;
}
.main-navigation ul{
  max-width:var(--container);
  min-height:46px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:stretch;
  gap:4px;
  list-style:none;
  overflow-x:auto;
  white-space:nowrap;
  scrollbar-width:none;
}
.main-navigation ul::-webkit-scrollbar{display:none}
.main-navigation li{margin:0}
.main-navigation a{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0 13px;
  color:#cbd5e1;
  font-size:14px;
  font-weight:700;
  border-bottom:3px solid transparent;
  transition:color .2s ease,background .2s ease,border-color .2s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a,
.main-navigation .current-menu-ancestor>a{
  color:#fff;
  background:rgba(255,255,255,.04);
  border-bottom-color:var(--primary);
}

.site-container{
  max-width:var(--container);
  margin:28px auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:minmax(0,2.4fr) minmax(280px,1fr);
  gap:28px;
}
.main-content,.widget-box,.single-post{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 4px 14px rgba(15,23,42,.035);
}
.main-content{padding:24px;min-width:0}
.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
  padding-bottom:10px;
  border-bottom:2px solid var(--primary);
  font-size:20px;
  font-weight:800;
  color:var(--secondary);
}
.section-note{font-size:12px;color:var(--muted);font-weight:500}

.news-grid{display:grid;gap:18px}
.news-card{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:20px;
  padding-bottom:18px;
  border-bottom:1px solid var(--border);
}
.news-card:last-child{border-bottom:0;padding-bottom:0}
.news-thumb a,.news-thumb img{display:block}
.news-thumb{overflow:hidden;border-radius:10px}
.news-thumb img{
  width:100%;
  height:140px;
  object-fit:cover;
  transition:transform .25s ease;
}
.news-card:hover .news-thumb img{transform:scale(1.025)}
.news-content h2{margin:0;font-size:18px;line-height:1.5}
.news-content h2 a{color:var(--secondary)}
.news-content h2 a:hover{color:var(--primary)}
.news-excerpt{margin:7px 0 0;color:var(--muted);font-size:13.5px}
.post-meta{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:13px;margin:0 0 18px}
.post-meta a{color:var(--muted)}
.post-thumbnail{margin-bottom:22px}
.post-thumbnail img{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:12px}
.post-body{font-size:17px;line-height:2;color:#334155}
.post-body a{text-decoration:underline;text-decoration-thickness:1px}
.post-body iframe,.post-body video{max-width:100%}
.post-body table{width:100%;border-collapse:collapse;overflow:auto}
.post-body th,.post-body td{border:1px solid var(--border);padding:8px}

.sidebar-area{display:flex;flex-direction:column;gap:22px;min-width:0}
.widget-box{padding:20px}
.widget-box h2,.widget-box h3{margin:0 0 14px;padding-bottom:9px;border-bottom:2px solid var(--primary);font-size:17px;color:var(--secondary)}
.live-match-card{background:var(--secondary);color:#fff;padding:14px;border-radius:10px;margin-bottom:10px;border-right:4px solid var(--primary)}
.live-match-card:last-child{margin-bottom:0}
.match-header-info{display:flex;justify-content:space-between;gap:8px;color:#94a3b8;font-size:11px;margin-bottom:8px}
.live-badge{display:inline-flex;align-items:center;gap:4px;color:#fff;background:var(--primary);padding:2px 7px;border-radius:5px;font-size:10px;font-weight:800}
.live-badge.is-live::before{content:"";width:6px;height:6px;border-radius:50%;background:#fff;animation:abt-pulse 1.5s infinite}
@keyframes abt-pulse{50%{opacity:.35}}
.match-teams-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;font-weight:700;font-size:13px}
.match-score-box{background:var(--secondary-2);padding:4px 10px;border-radius:6px;white-space:nowrap}
.standings-wrap{overflow-x:auto}
.standings-table{width:100%;min-width:320px;border-collapse:collapse;font-size:13px}
.standings-table th,.standings-table td{padding:8px;border-bottom:1px solid var(--border);text-align:right}
.standings-table th{background:#f1f5f9;color:var(--secondary);font-weight:800}
.standings-table tr:last-child td{border-bottom:0}

.pagination{margin-top:24px;display:flex;justify-content:center;gap:7px;flex-wrap:wrap}
.pagination .page-numbers{padding:7px 11px;border:1px solid var(--border);border-radius:7px;background:#fff}
.pagination .current{background:var(--primary);border-color:var(--primary);color:#fff}

.site-footer{margin-top:45px;padding:30px 20px;background:var(--secondary);color:#94a3b8;border-top:3px solid var(--primary);text-align:center;font-size:13px}
.footer-inner{max-width:var(--container);margin:auto}
.footer-menu{margin:0 0 12px;padding:0;list-style:none;display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.footer-menu a{color:#cbd5e1}

.empty-state{padding:30px;text-align:center;color:var(--muted)}
@media(max-width:1024px){
  .site-container{grid-template-columns:1fr}
  .header-search{width:38vw;flex-basis:38vw}
}
@media(max-width:700px){
  .top-bar{min-height:62px;padding:7px 12px;gap:10px}
  .site-branding .custom-logo{max-width:145px;max-height:44px}
  .brand-text{font-size:19px}
  .site-branding .tag{display:none}
  .header-search{width:44vw;flex-basis:44vw}
  .header-search input[type=search]{height:38px;padding:6px 12px}
  .header-search input[type=submit]{display:none}
  .main-navigation ul{padding:0 10px;gap:0}
  .main-navigation a{min-height:42px;padding:0 11px;font-size:13px}
  .site-container{margin:18px auto;padding:0 12px;gap:16px}
  .main-content{padding:16px}
  .news-card{grid-template-columns:1fr;gap:10px}
  .news-thumb img{height:190px}
  .section-title{font-size:17px}
  .post-body{font-size:16px}
}
@media(max-width:380px){
  .site-branding .custom-logo{max-width:120px;max-height:40px}
  .header-search{width:42vw;flex-basis:42vw}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .live-badge.is-live::before,.news-thumb img{animation:none;transition:none}
}
