﻿/* ==========================================================================
   Ligat Ha'al - Games & Teams Page (Elite Luxury Style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;700;800&display=swap');

:root {
    --accent-gold: #d4af37;
    --accent-green: #00ff41;
    --glass-bg: rgba(30, 32, 38, 0.8);
}

/* --- הגדרות בסיס ורקע --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Assistant', sans-serif;
    background-color: #0f1012;
    background-image: url('../../images/background.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    direction: rtl;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    /* שכבת עומק כהה על הרקע */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.85) 100%);
        z-index: -1;
    }

.glowing-wave-header {
    font-family: 'Assistant', sans-serif;
    font-size: clamp(42px, 8vw, 80px); /* גודל אדפטיבי מקורי למסכים שונים */
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 12px;
    margin: 40px 0 20px 0;
    /* גרדיאנט מוזהב מקורי עם אפקט מתכתי */
    background: linear-gradient( to bottom, #ffffff 0%, var(--accent-gold) 50%, #8a6d3b 100% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* צללים ליצירת עומק תלת-ממדי מקורי */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
    position: relative;
    animation: titleEntrance 1.5s ease-out;
}

    /* אפקט נצנוץ מקורי שעובר על הטקסט */
    .glowing-wave-header::before {
        content: attr(data-text); /* דורש להוסיף data-text="LIGAT HA'AL" ב-HTML */
        position: absolute;
        inset: 0;
        background: linear-gradient( 45deg, transparent 45%, rgba(255, 255, 255, 0.6) 50%, transparent 55% );
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine 4s infinite linear;
        z-index: 1;
    }

    /* פס תחתון מעוצב מקורי (The Wave) עם אפקט התרחבות בריחוף */
    .glowing-wave-header::after {
        content: "";
        display: block;
        width: 100px;
        height: 5px;
        background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
        margin: 20px auto;
        border-radius: 50px;
        box-shadow: 0 0 20px var(--accent-gold);
        transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .glowing-wave-header:hover::after {
        width: 1200px;
        max-width: 90%;
    }

/* --- אנימציות מקוריות --- */
@keyframes titleEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        letter-spacing: 25px;
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 12px;
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* --- רשת הקבוצות עם רווחים גדולים מקוריים --- */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(7, 120px);
    gap: 40px; /* הרווח הגדול המקורי שביקשת */
    justify-content: center;
    margin: 30px auto;
    max-width: 1200px;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 120px;
    height: 140px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    font-family: 'Assistant', sans-serif;
}

    .team-card:hover {
        transform: translateY(-10px);
        background: rgba(212, 175, 55, 0.15);
        border-color: var(--accent-gold);
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    }

    .team-card img {
        width: 65px;
        height: 65px;
        object-fit: contain;
        margin-bottom: 12px;
        filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
    }

    .team-card h3 {
        font-family: 'Assistant', sans-serif;
        font-size: 14px;
        font-weight: 700;
        margin: 0;
        color: #fff;
    }

/* --- לוח משחקים (Glassmorphism) --- */
.schedule-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    margin: 30px auto;
}

.schedule-title {
    font-family: 'Assistant', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-family: 'Assistant', sans-serif;
}

    .schedule-table th {
        color: var(--accent-gold);
        text-transform: uppercase;
        font-size: 14px;
        padding: 15px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    }

    .schedule-table td {
        padding: 15px;
        background: rgba(255, 255, 255, 0.03);
        text-align: center;
        font-size: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .schedule-table tr td:first-child {
        border-radius: 0 12px 12px 0;
    }

    .schedule-table tr td:last-child {
        border-radius: 12px 0 0 12px;
    }

.team-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: bold;
}

.schedule-logo {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.3));
}

/* --- כפתור חזור --- */
.btn-back {
    display: inline-block;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: 0.3s;
    font-family: 'Assistant', sans-serif;
}

    .btn-back:hover {
        color: var(--accent-green);
        transform: translateX(-5px);
    }

/* --- התאמה למובייל --- */
@media (max-width: 1100px) {
    .teams-grid {
        grid-template-columns: repeat(4, 120px);
        gap: 30px;
    }
}

@media (max-width: 650px) {
    .teams-grid {
        grid-template-columns: repeat(2, 120px);
        gap: 20px;
    }

    .glowing-wave-header {
        font-size: 35px;
    }

    .schedule-container {
        padding: 20px;
        width: 90%;
    }
}
