﻿/* ============================================
   Default.Sections.css - الأقسام الخاصة
   ============================================ */

/* News Section */
.pinned-news {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    color: #0f172a;
}

    .pinned-news .news-title {
        font-weight: bold;
        font-size: 16px;
    }

    .pinned-news .news-date {
        font-size: 12px;
        opacity: 0.8;
    }

.news-item {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .news-item:hover {
        background: rgba(251, 191, 36, 0.1);
        transform: translateX(-5px);
    }

.news-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.news-date {
    font-size: 11px;
    color: #94a3b8;
}

/* Next Match */
.next-match {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #fbbf24;
}

.next-match-label {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 10px;
}

.next-match-teams {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Rules Card */
.rules-card-container {
    margin-top: 40px;
    margin-bottom: 20px;
}

.rules-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 25px;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    border: 2px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .rules-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    .rules-card:hover {
        transform: translateY(-5px);
        border-color: #fbbf24;
        box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
    }

.rules-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #0f172a;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(251, 191, 36, 0);
    }
}

.rules-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

    .rules-card-content h3 {
        font-size: 24px;
        margin: 0 0 10px 0;
        color: #fbbf24;
    }

    .rules-card-content p {
        color: #94a3b8;
        margin-bottom: 15px;
        font-size: 14px;
    }

.rules-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

    .rules-highlights span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(251, 191, 36, 0.1);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 12px;
        color: #fbbf24;
    }

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .read-more-btn:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
    }

/* Last Updates Card */
.last-updates-container {
    margin-top: 40px;
    margin-bottom: 20px;
}

.last-updates-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 25px;
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

    .last-updates-card:hover {
        transform: translateY(-3px);
        border-color: #fbbf24;
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.15);
    }

.last-updates-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #0f172a;
    flex-shrink: 0;
}

.last-updates-content {
    flex: 1;
}

    .last-updates-content h3 {
        font-size: 20px;
        margin: 0 0 15px 0;
        color: #fbbf24;
    }

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .update-item:hover {
        background: rgba(251, 191, 36, 0.1);
        transform: translateX(-5px);
    }

    .update-item i {
        width: 30px;
        height: 30px;
        background: rgba(251, 191, 36, 0.2);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fbbf24;
        font-size: 14px;
    }

.update-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.update-title {
    font-size: 14px;
    color: #e2e8f0;
}

.update-time {
    font-size: 11px;
    color: #94a3b8;
    direction: ltr;
    display: inline-block;
}

.update-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #94a3b8;
}

    .update-note i {
        color: #fbbf24;
    }

/* Light Mode Sections */
body.light-mode .news-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

    body.light-mode .news-item:hover {
        background: #fef9e3;
        border-color: #fbbf24;
    }

body.light-mode .news-title {
    color: #0f172a;
}

body.light-mode .news-date {
    color: #64748b;
}

body.light-mode .pinned-news {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
}

body.light-mode .next-match {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border-color: #fbbf24;
}

body.light-mode .next-match-label {
    color: #f59e0b;
}

body.light-mode .next-match-teams {
    color: #0f172a;
}

body.light-mode .rules-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

body.light-mode .rules-card-content p {
    color: #64748b;
}

body.light-mode .last-updates-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

    body.light-mode .last-updates-card:hover {
        border-color: #fbbf24;
    }

body.light-mode .update-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

    body.light-mode .update-item:hover {
        background: #fef9e3;
        border-color: #fbbf24;
    }

body.light-mode .update-title {
    color: #0f172a;
}

body.light-mode .update-time {
    color: #64748b;
}

body.light-mode .update-note {
    border-top-color: #e2e8f0;
    color: #64748b;
}

/* Responsive Sections */
@media (max-width: 768px) {
    .rules-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .rules-highlights {
        justify-content: center;
    }

    .read-more-btn {
        justify-content: center;
    }

    .last-updates-card {
        flex-direction: column;
        text-align: center;
    }

    .last-updates-icon {
        margin: 0 auto;
    }

    .update-info {
        flex-direction: column;
        align-items: flex-start;
    }
}
