/* ========================================
   כותרת נקייה ומסודרת - מה יש פה?
   ======================================== */

/* ==========================================
   הסתרת אלמנטים ישנים
   ========================================== */

/* הסתרת שעון משרות ישן */
.simple-job-timer,
div[class*="timer"],
.timer-text {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
}

/* הסתרת כפתור פעמון */
.job-alerts-floating-btn {
    display: none !important;
}

/* הסתרת התפריט הישן */
.main-nav {
    display: none !important;
}

/* הסתרת כפתור שיתוף ישן בכותרת */
.header-share-btn {
    display: none !important;
}

/* הסתרת sidebar ישן */
.sidebar-toggle,
.sidebar-overlay,
.sidebar-menu {
    display: none !important;
}

/* מניעת גמדה גדולה בטעינה */
.side-menu-trigger {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-menu-trigger.loaded {
    opacity: 1;
}

/* ==========================================
   כותרת ראשית
   ========================================== */

.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(34, 34, 34, 0.98)) !important;
    backdrop-filter: blur(15px) !important;
    z-index: 9999 !important;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    border-bottom: 2px solid rgba(246, 152, 152, 0.3) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 25px;
    position: relative;
}

/* ==========================================
   לוגו וסלוגן
   ========================================== */

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-gnome {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 3px 8px rgba(246, 152, 152, 0.4));
    transition: transform 0.3s ease;
}

.header-gnome:hover {
    transform: scale(1.1) rotate(5deg);
}

.header-text {
    display: flex;
    flex-direction: column;
}

.text-logo {
    color: #F69898;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #F69898, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-slogan {
    color: #cccccc;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ==========================================
   שעון משרות חי
   ========================================== */

.live-job-counter {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(246, 152, 152, 0.1);
    border: 1px solid rgba(246, 152, 152, 0.3);
    border-radius: 25px;
    padding: 8px 20px;
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
}

.counter-icon {
    font-size: 1.1rem;
}

.counter-number {
    color: #F69898;
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 45px;
    text-align: center;
}

.counter-label {
    color: #cccccc;
    font-size: 0.85rem;
}

.counter-divider {
    width: 1px;
    height: 25px;
    background: rgba(246, 152, 152, 0.3);
}

.counter-time {
    color: #FFD700;
    font-weight: 600;
}

.counter-pulse {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ==========================================
   התאמת ה-hero
   ========================================== */

.hero-section {
    padding-top: 100px !important;
    margin-top: 0 !important;
}

/* ==========================================
   תפריט נייד - דסקטופ (הסתרה)
   ========================================== */

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* ==========================================
   רספונסיבי - טאבלט
   ========================================== */

@media (max-width: 992px) {
    .header-inner {
        padding: 10px 20px;
    }
    
    .text-logo {
        font-size: 1.5rem;
    }
    
    .header-slogan {
        font-size: 0.75rem;
    }
    
    .live-job-counter {
        padding: 6px 15px;
        gap: 12px;
    }
    
    .counter-item {
        font-size: 0.8rem;
    }
    
    .counter-number {
        font-size: 1rem;
    }
}

/* ==========================================
   רספונסיבי - מובייל
   ========================================== */

@media (max-width: 768px) {
    /* כפתור התפריט - fixed בשמאל למעלה */
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        right: auto !important;
        z-index: 1003 !important;
        background: linear-gradient(135deg, #F69898, #e58080) !important;
        border: 2px solid white !important;
        border-radius: 10px !important;
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        color: white !important;
        cursor: pointer !important;
        font-size: 1.2rem !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
        margin: 0 !important;
    }
    
    /* מרווח לכותרת כדי שלא תיחתך */
    .header-inner {
        flex-wrap: wrap;
        padding: 10px 15px !important;
        padding-left: 70px !important;
        gap: 10px;
    }
    
    .header-brand {
        flex: 1;
    }
    
    .header-gnome {
        width: 40px;
        height: 40px;
    }
    
    .text-logo {
        font-size: 1.3rem;
    }
    
    .header-slogan {
        font-size: 0.7rem;
    }
    
    .live-job-counter {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 8px 15px;
        margin-top: 5px;
        background: rgba(246, 152, 152, 0.15);
    }
    
    .counter-divider {
        display: none;
    }
    
    .hero-section {
        padding-top: 140px !important;
    }
    
    /* התפריט הנייד עצמו */
    .mobile-menu {
        display: none;
        position: fixed !important;
        top: 130px !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        z-index: 1001 !important;
        padding: 20px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
        max-height: calc(100vh - 130px) !important;
        overflow-y: auto !important;
    }
    
    .mobile-menu.active {
        display: block !important;
    }
    
    /* הסתר כפתור פעמון */
    .job-alerts-floating-btn {
        display: none !important;
    }
    
    /* הסתר כפתור תפריט צד */
    .side-menu-trigger {
        display: none !important;
    }
}

/* ==========================================
   רספונסיבי - מובייל קטן
   ========================================== */

@media (max-width: 480px) {
    .mobile-menu-toggle {
        top: 12px !important;
        left: 12px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    
    .header-inner {
        padding: 8px 12px !important;
        padding-left: 60px !important;
    }
    
    .header-gnome {
        width: 35px;
        height: 35px;
    }
    
    .text-logo {
        font-size: 1.1rem;
    }
    
    .header-slogan {
        font-size: 0.65rem;
        max-width: 120px;
    }
    
    .live-job-counter {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .counter-item {
        font-size: 0.75rem;
    }
    
    .counter-number {
        font-size: 0.9rem;
        min-width: 35px;
    }
    
    .counter-label {
        font-size: 0.7rem;
    }
    
    .hero-section {
        padding-top: 150px !important;
    }
}

/* ==========================================
   תיקון תפריט צד - כותרת גלויה
   ========================================== */

/* רקע התפריט */
.side-menu-overlay {
    z-index: 10000 !important;
}

/* התפריט עצמו */
.side-menu {
    z-index: 10001 !important;
}

/* כותרת התפריט - רווח מלמעלה */
.side-menu-header {
    padding-top: 80px !important;
}

/* לוגו התפריט */
.side-menu-logo {
    margin-top: 10px !important;
}
