/* public/css/main.css */

/* --- 1. משתנים והגדרות בסיס --- */
:root {
    --bg-dark: #0b0b0e;
    --text-main: #ffffff;
    --card-bg: #1a1a1f;
    
    /* ברירת מחדל אם משהו משתבש בטעינת הצבעים */
    --primary: #00ff88;
    --secondary: #7000ff;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Heebo', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* --- 2. Hero Section (עיצוב בסיסי לכל משחק) --- */
/* זה העיצוב שיופיע אם לא יצרת CSS ספציפי למשחק */

.hero-section {
    position: relative;
    min-height: 89vh; /* גובה מינימלי */
    display: flex;
    align-items: center;
    padding: 0 10%;
    
    /* הגדרות רקע ברירת מחדל */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    
    /* אנימציית זום עדינה כברירת מחדל */
    overflow: hidden;
}

/* שכבת הכהה מעל תמונת הרקע (כדי שהטקסט יהיה קריא תמיד) */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-family: 'Heebo', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 5vw, 5rem); /* רספונסיבי */
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
}

.hero-content .highlight-text {
    color: var(--primary); /* צבוע בצבע הראשי של המשחק */
}

.hero-content .sub-text {
    font-size: 1.2rem;
    color: #ddd;
    max-width: 600px;
    margin-bottom: 40px;
    border-right: 4px solid var(--primary); /* פס צד */
    padding-right: 20px;
}

/* --- 3. כפתור פעולה ראשי (CTA) - ברירת מחדל --- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    background-color: var(--primary);
    color: black;
    
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    background-color: white;
}

/* --- 4. כרטיסיית חדשות צפה (Hero News Card) --- */
.hero-news-card {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 20;
    
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-right: 4px solid var(--primary);
    
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-news-card:hover {
    transform: translateY(-5px);
}

.news-badge {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
}

.news-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 0.2;
}

/* --- 5. כותרות עמודים פנימיים --- */
.page-header {
    padding: 80px 10% 40px;
    position: relative;
}

.page-header h1 {
    font-family: 'Teko', sans-serif;
    font-size: 4.5rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.page-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary);
    margin-top: 10px;
    box-shadow: 0 0 15px var(--primary);
}

/* --- 6. גריד כרטיסיות (Guides / Maps) --- */
.guides-container {
    padding: 0 10% 100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.guide-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 16/9; /* יחס תמונה קבוע */
}

.guide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.7);
}

.guide-card:hover .guide-bg-img {
    transform: scale(1.1);
    filter: brightness(1);
}

.guide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.guide-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* --- 7. התאמות למובייל (Global) --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }

    .hero-content .sub-text {
        border-right: none;
        padding-right: 0;
        margin: 0 auto 30px auto;
    }

    .hero-news-card {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: 30px;
        box-sizing: border-box;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
}

/* --- 8. אנימציות גלובליות (Keyframes) --- */
/* העתק את זה לסוף הקובץ main.css */

/* כניסה חלקה מלמטה למעלה (עבור כרטיסיות חדשות) */
@keyframes fadeSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* כניסה חלקה מהצד (עבור כותרות) */
@keyframes fadeSlideIn {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* אפקט זום עדין לרקע של ההירו */
@keyframes heroBackgroundZoom {
    from { 
        transform: scale(1.1); 
        filter: blur(3px); 
    }
    to { 
        transform: scale(1); 
        filter: blur(0); 
    }
}

/* פעימה (עבור הנקודה האדומה בחדשות/לייב) */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* צמיחה של פס גבול (עבור הטקסט המשני) */
@keyframes borderGrow {
    from { height: 0; }
    to { height: 100%; }
}