/*
Theme Name: SportzTheme
Description: قالب مطابق للصورة المطلوبة
Author: Your Name
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --bg-color: #0e1019;
    --match-bg: #151825;
    --title-bg: #191d2d;
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    --accent-color: #00d2b5; /* لون السيان الموجود في الصورة */
    --status-bg: #2a2e40; /* لون خلفية "لم تبدأ بعد" */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    line-height: 1.5;
}

.container {
    max-width: 1100px; /* عرض مقارب للصورة */
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= HEADER ================= */
.site-header {
    background-color: var(--bg-color);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 30px;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 24px; font-weight: 700; }
.logo span { color: var(--accent-color); }
.main-menu { list-style: none; display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.main-menu a:hover { color: var(--accent-color); }

/* ================= MATCHES SECTION ================= */
.aplive-table {
    margin-bottom: 40px;
}

/* شريط عنوان المباريات والأخبار */
.LIVEVIPHead {
    background-color: var(--title-bg);
    border-radius: 6px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.LIVEVIPHead h2.boxstitle {
    font-size: 16px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* فلتر الأيام (مباريات اليوم، الغد...) */
.LIVEVIP-FilterDays {
    list-style: none;
    display: flex;
    gap: 15px;
}

.LIVEVIP-FilterDays li a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: 0.2s;
}

.LIVEVIP-FilterDays li.tod a, 
.LIVEVIP-FilterDays li a:hover {
    color: var(--text-main);
    background-color: transparent;
}

/* كارت المباراة */
.LIVEVIPMatches {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-container {
    background-color: var(--match-bg);
    border-radius: 6px;
    padding: 15px;
    position: relative;
    border: 1px solid transparent;
    transition: 0.2s;
}

.match-container:hover {
    border-color: rgba(0, 210, 181, 0.2); /* تحديد خفيف جداً عند مرور الماوس مثل المحترفين */
}

/* إخفاء تأثير الأيقونة الكبيرة الذي كان في الكود القديم */
.overlay-match { display: none !important; }

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* الفرق */
.home-team, .away-team {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

/* منتصف المباراة (النتيجة / التوقيت) */
.match-data {
    width: 40%;
    text-align: center;
}

.matchTime {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.matchTime .time, 
.matchTime .result {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

/* زر الحالة (لم تبدأ بعد / انتهت) */
.status {
    background-color: var(--status-bg);
    color: var(--text-main);
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* اسم البطولة */
.match-info {
    text-align: center;
    margin-top: 5px;
}

.match-info ul { list-style: none; }
.match-info li span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ================= NEWS SECTION ================= */
.latest-articles-section {
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة كما في الصورة */
    gap: 15px;
    margin-top: 15px;
}

.article-card {
    background-color: var(--match-bg);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.article-content {
    padding: 12px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content h3 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.article-content h3 a { color: var(--text-main); }
.article-content h3 a:hover { color: var(--accent-color); }

/* زر عرض المزيد */
.load-more-news {
    display: table;
    margin: 30px auto 0;
    background-color: var(--title-bg);
    color: var(--text-main);
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}
.load-more-news:hover { background-color: var(--accent-color); color: #000; }

/* ================= SEO TEXT BOX ================= */
.seo-box {
    background-color: var(--title-bg);
    text-align: center;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}
.seo-box h1 { font-size: 16px; margin-bottom: 10px; color: var(--text-main); }
.seo-box p { font-size: 13px; color: var(--text-muted); }

/* ================= RESPONSIVE ================= */
@media(max-width: 992px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .LIVEVIPHead { flex-direction: column; gap: 15px; text-align: center; }
    .header-inner { flex-direction: column; gap: 15px; }
    .team-name { font-size: 12px; }
}
@media(max-width: 480px) {
    .articles-grid { grid-template-columns: 1fr; }
    .team-logo img { width: 35px; height: 35px; }
}