/* إعدادات عامة */
:root {
    --primary: #c1272d;       /* أحمر مغربي */
    --primary-dark: #8a1c20;  /* أحمر غامق للعمق */
    --secondary: #006233;     /* أخضر مغربي */
    --secondary-dark: #003d20;/* أخضر غامق للعمق */
    --bg-color: #f8f9fa;
    --card-white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #7f8c8d;
    --warning: #d35400;       /* لون التحذير (برتقالي داكن) */
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0; padding: 0;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: var(--card-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img { height: 50px; width: auto; display: block; }

.login-btn {
    background: none; border: 2px solid var(--primary); color: var(--primary);
    padding: 8px 20px; border-radius: 50px; font-weight: bold; cursor: pointer;
    font-family: inherit; transition: 0.3s;
}
.login-btn:hover { background: var(--primary); color: white; }

.hero { text-align: center; padding: 60px 20px 40px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.morocco-text { color: var(--primary); }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px 60px; }

/* -------------------------------------------
   الحركة والألوان الجديدة (فخامة وجمال)
------------------------------------------- */
.match-card {
    background: var(--card-white);
    border-radius: 20px;
    padding: 3px; /* سمك الإطار الملون */
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.match-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    /* التدرج الجديد: ناعم، متناسق، وبدون بياض */
    background: conic-gradient(
        from 0deg,
        var(--primary), 
        var(--primary-dark),
        var(--secondary), 
        var(--secondary-dark), 
        var(--primary)
    );
    z-index: -2;
    animation: rotate-border 4s linear infinite;
}

.match-card-content {
    background: var(--card-white);
    border-radius: 18px;
    padding: 30px;
    height: 100%;
    position: relative;
    z-index: -1;
}

.match-card:hover { transform: translateY(-5px); }

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* ------------------------------------------- */

.teams-area { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.team { text-align: center; flex: 1; }
.flag-img {
    width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 4px solid #fff; margin-bottom: 10px;
}
.vs-badge {
    background: #f0f0f0; color: #888; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.9rem;
}

.match-details {
    display: flex; justify-content: center; gap: 30px; margin-bottom: 20px;
    color: var(--text-gray); font-size: 0.95rem; border-top: 1px solid #eee;
    border-bottom: 1px solid #eee; padding: 15px 0;
}
.detail-item { display: flex; align-items: center; gap: 8px; }
.detail-item i { color: var(--secondary); }

.price-area { text-align: center; margin-bottom: 15px; }
.price-value { font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.currency { font-size: 1rem; font-weight: normal; color: #333; }

.book-btn {
    width: 60%; margin: 0 auto 20px; display: block;
    padding: 12px 20px; background-color: var(--primary);
    color: white; border: none; border-radius: 50px;
    font-size: 1rem; font-weight: bold; cursor: pointer;
    font-family: inherit; transition: background 0.3s, transform 0.3s;
}
.book-btn:hover { background-color: #a01e23; transform: scale(1.05); }

/* --- تنسيق النصوص الجديدة (التسليم والتحذير) --- */
.policy-box {
    text-align: center;
    font-size: 0.8rem;
    background: #fff8f8;
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed #eecaca;
    margin-top: 15px;
}

.policy-item { margin-bottom: 8px; color: #555; }
.policy-item i { color: var(--secondary); margin-left: 5px; }

.warning-item { color: var(--warning); font-weight: bold; margin: 0; }
.warning-item i { margin-left: 5px; }

/* الفوتر */
footer {
    text-align: center; padding: 20px; color: #777;
    font-size: 0.8rem; margin-top: 40px; border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    .match-details { flex-direction: column; }
    .book-btn { width: 90%; }
}