/* גלריית סרטוני Avatar - עיצוב */

.nav-avatar-gallery {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

.nav-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* רספונסיבי */
@media (max-width: 992px) {
    .nav-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .nav-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* פריט סרטון */
.nav-video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* תמונה ממוזערת */
.nav-video-thumbnail {
    position: relative;
    padding-top: 100%; /* יחס 1:1 לריבוע */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    overflow: hidden;
}

.nav-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nav-video-item:hover .nav-video-thumbnail img {
    transform: scale(1.1);
}

.nav-no-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

/* אייקון הפעלה */
.nav-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-video-thumbnail:hover .nav-play-overlay {
    opacity: 1;
}

.nav-play-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #667eea;
    padding-right: 5px;
}

/* מידע על הסרטון */
.nav-video-info {
    padding: 20px;
}

.nav-video-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.nav-video-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* כפתור הפעלה */
.nav-play-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-play-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.02);
}

.nav-play-button:active {
    transform: scale(0.98);
}

/* פגינציה */
.nav-pagination {
    text-align: center;
    margin-top: 40px;
}

.nav-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 8px;
}

.nav-pagination li {
    display: inline-block;
}

.nav-pagination a,
.nav-pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.nav-pagination .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Modal */
.nav-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-modal-content {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-modal-close {
    position: absolute;
    top: -10px;
    left: -10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-modal-close:hover {
    background: #667eea;
}

.nav-modal-video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

#nav-modal-video {
    width: 100%;
    height: auto;
    display: block;
}

/* התאמות למובייל */
@media (max-width: 768px) {
    .nav-modal-content {
        margin: 20px;
        padding: 10px;
    }
    
    .nav-avatar-gallery {
        padding: 10px;
    }
    
    .nav-gallery-grid {
        gap: 20px;
    }
}