/* Responsive CSS - Pool Israel */
/* רספונסיביות מלאה עם תפריט המבורגר מקצועי RTL */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-menu-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    direction: rtl;
    display: flex;
    flex-direction: column;
}

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

/* Mobile Menu Header */
.mobile-menu-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-header h3 {
    color: white;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.mobile-menu-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Mobile Menu Navigation */
.mobile-nav-menu {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-menu li {
    margin: 0;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.3s ease forwards;
}

.mobile-nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-menu li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-menu li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-menu li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-menu li:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-menu li:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: right 0.6s ease;
}

.mobile-nav-menu a:hover::before {
    right: 100%;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    border-right-color: #f59e0b;
    transform: translateX(-8px);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
}

.mobile-nav-menu a i {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
    color: #f59e0b;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-contact-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.mobile-contact-info p {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.mobile-contact-info p:hover {
    color: #f59e0b;
}

.mobile-contact-info i {
    color: #f59e0b;
    width: 20px;
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.mobile-social-links a:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .hero {
        padding: 5rem 0 4rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .trust-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Breadcrumbs Mobile */
    .breadcrumbs {
        padding: 0.75rem 0;
        margin-top: 70px;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item span {
        display: none;
    }
    
    .breadcrumb-item a span,
    .breadcrumb-item.active span {
        display: inline;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        max-width: 100vw;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 1.9rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .trust-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .seo-tags {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .seo-tags a {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .trust-badges .badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-trust {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mobile-menu {
        width: 280px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-menu-btn {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-social-links a {
        border-width: 1px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu-overlay,
    .mobile-nav-menu li,
    .mobile-nav-menu a,
    .mobile-menu-close,
    .mobile-menu-btn {
        transition: none !important;
        animation: none !important;
    }
    
    .mobile-nav-menu li {
        opacity: 1;
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mobile-menu {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
    
    .mobile-menu-header {
        background: rgba(0, 0, 0, 0.3);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-footer {
        background: rgba(0, 0, 0, 0.4);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}
