/*
Theme Name: Saudi League Pro
Theme URI: https://github.com/saudi-league-pro
Author: Saudi League Dev
Description: قالب احترافي لموقع دوري روشن للمحترفين السعودي - يدعم RTL والعربية بالكامل
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saudi-league
Tags: arabic, rtl-language, sports, football, responsive, custom-colors
*/

/* Base reset - full styles in assets/css/main.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cairo', Arial, sans-serif; direction: rtl; }




/* ═══════════════════════════════════════
   MARGIN FIXES
   ═══════════════════════════════════════ */
.sl-section { padding: 40px 0; margin: 0; }
.sl-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sl-hero { margin-bottom: 0; }
.sl-news-grid { gap: 24px; margin: 0; }
#page-wrap { overflow-x: hidden; }
.sl-section + .sl-section { margin-top: 0; }

/* Fix footer spacing */
.sl-footer { margin-top: 0; }

/* ═══════════════════════════════════════
   BREAKING NEWS BAR
   ═══════════════════════════════════════ */
.sl-breaking-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #B71C1C 0%, #E53935 100%);
    color: #fff;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    z-index: 100;
    direction: rtl;
}
.sl-breaking-label {
    background: #fff;
    color: #E53935;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sl-breaking-text { color: #fff; text-decoration: none; flex: 1; }
a.sl-breaking-text:hover { text-decoration: underline; }
.sl-breaking-close {
    background: none; border: none; color: rgba(255,255,255,.7);
    font-size: 22px; cursor: pointer; padding: 0 4px; line-height: 1;
}
.sl-breaking-close:hover { color: #fff; }

/* Bell animation */
@keyframes sl-bell-ring {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-14deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(2deg); }
}
.sl-bell-ring { animation: sl-bell-ring 1.2s ease-in-out infinite; display: inline-block; }

/* ═══════════════════════════════════════
   POST BADGES
   ═══════════════════════════════════════ */
.sl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.4;
    white-space: nowrap;
}
.sl-badge-breaking {
    background: #E53935;
    color: #fff;
    animation: sl-badge-pulse 2s ease-in-out infinite;
}
@keyframes sl-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,.5); }
    50% { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
}
.sl-badge-new {
    background: #C9A44A;
    color: #0A0F1E;
}
.sl-badge-time {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(4px);
}

/* Badges on card overlay */
.sl-post-card .sl-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

/* ═══════════════════════════════════════
   ENHANCED NEWS CARD
   ═══════════════════════════════════════ */
.sl-post-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
}
.sl-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.sl-post-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.sl-post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.sl-post-card:hover .sl-post-card-img img {
    transform: scale(1.05);
}
.sl-post-card-body {
    padding: 16px 18px;
}
.sl-post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}
.sl-post-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0A0F1E;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sl-post-card-title a { color: inherit; text-decoration: none; }
.sl-post-card-title a:hover { color: #0B5329; }

/* ═══════════════════════════════════════
   SHARE BUTTONS
   ═══════════════════════════════════════ */
.sl-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    padding: 12px 0;
    border-top: 1px solid #eee;
}
.sl-share-label { font-size: 14px; font-weight: 600; color: #555; }
.sl-share-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff; text-decoration: none;
    border: none; cursor: pointer; transition: transform .2s;
}
.sl-share-btn:hover { transform: scale(1.15); }
.sl-share-x { background: #0A0F1E; }
.sl-share-wa { background: #25D366; }
.sl-share-tg { background: #0088cc; }
.sl-share-copy { background: #0B5329; color: #fff; }

/* ═══════════════════════════════════════
   TRENDING SIDEBAR WIDGET
   ═══════════════════════════════════════ */
.sl-trending-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sl-trending-num {
    font-size: 22px;
    font-weight: 800;
    color: #C9A44A;
    min-width: 30px;
    line-height: 1;
}
.sl-trending-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.sl-trending-title a { color: inherit; text-decoration: none; }
.sl-trending-title a:hover { color: #C9A44A; }

/* ═══════════════════════════════════════
   RESPONSIVE MARGIN FIXES
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .sl-container { padding: 0 14px; }
    .sl-section { padding: 28px 0; }
    .sl-breaking-bar { font-size: 13px; padding: 8px 14px; }
    .sl-post-card-body { padding: 12px 14px; }
    .sl-post-card-title { font-size: 14px; }
}