/* ==========================================
   מה יש פה? - תפריט צד מפואר
   ========================================== */
/* תיקון - הגמדה מעל הפוטר */
.side-menu-trigger {
    z-index: 9999 !important;
}

/* כפתור פתיחה - גמדה וטקסט בלבד */
.side-menu-trigger {
    position: fixed;
    top:10px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.side-menu-trigger:hover {
    transform: translateX(-50%) scale(1.1);
}

.side-menu-trigger img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 3px 10px rgba(246, 152, 152, 0.5));
}

.side-menu-trigger:hover img {
    transform: rotate(15deg) scale(1.1);
}

.side-menu-trigger-text {
    color: #F69898;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.side-menu-trigger:hover .side-menu-trigger-text {
    color: #FFD700;
}

/* הסתרה במובייל - כבר יש תפריט צד */
@media (max-width: 768px) {
    .side-menu-trigger {
        display: none !important;
    }
}

/* התפריט עצמו */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100%;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    border-left: 1px solid rgba(246, 152, 152, 0.2);
}

.side-menu.active {
    right: 0;
}

/* כותרת התפריט */
.side-menu-header {
    padding: 30px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(246, 152, 152, 0.2);
    position: relative;
    background: linear-gradient(180deg, rgba(246, 152, 152, 0.1) 0%, transparent 100%);
}

.side-menu-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.side-menu-logo img {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 10px rgba(246, 152, 152, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.side-menu-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F69898, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.side-menu-tagline {
    color: #888;
    font-size: 0.85rem;
}

/* כפתור סגירה */
.side-menu-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background: rgba(246, 152, 152, 0.1);
    border: 1px solid rgba(246, 152, 152, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F69898;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.side-menu-close:hover {
    background: #F69898;
    color: white;
    transform: rotate(90deg);
}

/* פריטי תפריט */
.side-menu-items {
    padding: 20px 0;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.side-menu-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, transparent, rgba(246, 152, 152, 0.1));
    transition: width 0.3s ease;
}

.side-menu-item:hover::before {
    width: 100%;
}

.side-menu-item:hover {
    color: #F69898;
    padding-right: 35px;
}

.side-menu-item i {
    width: 40px;
    height: 40px;
    background: rgba(246, 152, 152, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #F69898;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.side-menu-item:hover i {
    background: #F69898;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(246, 152, 152, 0.4);
}

.side-menu-item-text {
    display: flex;
    flex-direction: column;
}

.side-menu-item-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.side-menu-item-desc {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* הפרדה */
.side-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 152, 152, 0.3), transparent);
    margin: 15px 25px;
}

/* פוטר תפריט */
.side-menu-footer {
    padding: 25px;
    border-top: 1px solid rgba(246, 152, 152, 0.2);
    text-align: center;
    margin-top: auto;
}

.side-menu-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.side-menu-social a {
    width: 40px;
    height: 40px;
    background: rgba(246, 152, 152, 0.1);
    border: 1px solid rgba(246, 152, 152, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F69898;
    transition: all 0.3s ease;
}

.side-menu-social a:hover {
    background: #F69898;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(246, 152, 152, 0.4);
}

.side-menu-copyright {
    color: #555;
    font-size: 0.75rem;
}

/* אנימציות כניסה לפריטים */
.side-menu.active .side-menu-item {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}

.side-menu.active .side-menu-item:nth-child(1) { animation-delay: 0.1s; }
.side-menu.active .side-menu-item:nth-child(2) { animation-delay: 0.15s; }
.side-menu.active .side-menu-item:nth-child(3) { animation-delay: 0.2s; }
.side-menu.active .side-menu-item:nth-child(4) { animation-delay: 0.25s; }
.side-menu.active .side-menu-item:nth-child(5) { animation-delay: 0.3s; }
.side-menu.active .side-menu-item:nth-child(6) { animation-delay: 0.35s; }
.side-menu.active .side-menu-item:nth-child(7) { animation-delay: 0.4s; }
.side-menu.active .side-menu-item:nth-child(8) { animation-delay: 0.45s; }
.side-menu.active .side-menu-item:nth-child(9) { animation-delay: 0.5s; }
.side-menu.active .side-menu-item:nth-child(10) { animation-delay: 0.55s; }
.side-menu.active .side-menu-item:nth-child(11) { animation-delay: 0.6s; }
.side-menu.active .side-menu-item:nth-child(12) { animation-delay: 0.65s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Badge */
.side-menu-badge {
    background: linear-gradient(135deg, #F69898, #e58080);
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-right: auto;
    font-weight: 700;
}

/* פריט זהב - המשרות שלי */
.side-menu-item-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
    border-right: 3px solid #FFD700;
}

.side-menu-item-gold i {
    background: rgba(255, 215, 0, 0.2) !important;
    color: #FFD700 !important;
}

.side-menu-item-gold .side-menu-item-title {
    color: #FFD700;
}

.side-menu-item-gold:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
}

.side-menu-item-gold:hover i {
    background: #FFD700 !important;
    color: #1a1a1a !important;
}

/* פריט ורוד - למעסיקים */
.side-menu-item-pink {
    background: linear-gradient(135deg, rgba(246, 152, 152, 0.1), rgba(246, 152, 152, 0.05));
    border-right: 3px solid #F69898;
}

.side-menu-item-pink .side-menu-item-title {
    color: #F69898;
    font-weight: 800;
}

/* רספונסיבי */
@media (max-width: 480px) {
    .side-menu {
        width: 100%;
        right: -100%;
    }
    
    .side-menu-trigger {
        height: 50px;
        padding: 8px 12px 8px 15px;
        top: 8px;
        right: 15px;
    }
    
    .side-menu-trigger img {
        width: 32px;
        height: 32px;
    }
    
    .side-menu-trigger-text {
        font-size: 1rem;
    }
}
