/* ===== Hero Section מתקדם ===== */

.premium-hero {
    margin: 40px 0 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 20px;
    position: relative;
}

.hero-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) saturate(0.9);
    will-change: transform, filter;
}

.hero-item:hover {
    transform: translateY(-10px) scale(1.02);
    filter: brightness(1.05) saturate(1.1);
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* פריסת גריד דינמית */
.hero-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.hero-item:nth-child(2),
.hero-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.hero-item:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
}

/* תמונות ווידאו */
.hero-item img,
.hero-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-item:hover img,
.hero-item:hover video {
    transform: scale(1.1);
}

/* Overlay עם גרדיאנט */
.hero-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.1) 60%,
        transparent 100%
    );
    opacity: 0.7;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.hero-item:hover::before {
    opacity: 0.9;
}

/* כיתוב */
.hero-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    color: white;
    z-index: 2;
    padding: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-item:hover .hero-caption {
    transform: translateY(0);
    opacity: 1;
}

.hero-caption h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-caption p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 80%;
}

/* כפתור קריאה לפעולה */
.hero-cta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* אינדיקטורים */
.hero-indicators {
    position: absolute;
    bottom: -40px;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(184, 90, 58, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: var(--color-primary-500);
    transform: scale(1.2);
}

.hero-indicator:hover {
    background: var(--color-primary-400);
}

/* אנימציות כניסה */
@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-item {
    animation: heroSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-item:nth-child(1) { animation-delay: 0.1s; }
.hero-item:nth-child(2) { animation-delay: 0.2s; }
.hero-item:nth-child(3) { animation-delay: 0.3s; }
.hero-item:nth-child(4) { animation-delay: 0.4s; }

/* אפקט גלובלי */
.hero-global-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(184, 90, 58, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* תגובתיות */
@media (max-width: 1024px) {
    .premium-hero {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hero-item:nth-child(1),
    .hero-item:nth-child(4) {
        grid-column: span 2;
    }
    
    .hero-caption h3 {
        font-size: 1.5rem;
    }
    
    .hero-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .premium-hero {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .hero-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        max-height: 300px;
    }
    
    .hero-caption {
        padding: 20px;
    }
    
    .hero-caption h3 {
        font-size: 1.3rem;
    }
    
    .hero-caption p {
        font-size: 0.85rem;
        max-width: 100%;
    }
    
    .hero-indicators {
        bottom: -30px;
    }
}

@media (max-width: 480px) {
    .premium-hero {
        margin: 30px 0 60px;
    }
    
    .hero-caption {
        padding: 15px;
    }
    
    .hero-caption h3 {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* מצב כהה */
body.dark-mode .hero-item {
    filter: brightness(0.85) saturate(0.8);
}

body.dark-mode .hero-item:hover {
    filter: brightness(0.95) saturate(1);
}

body.dark-mode .hero-item::before {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        transparent 100%
    );
}

/* אנימציה אוטומטית */
@keyframes heroPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.hero-item.pulse {
    animation: heroPulse 3s ease-in-out infinite;
}