/**
 * WhatsApp Banner Styles
 * 
 * @package MashaalDigital
 * @version 1.0.0
 */

/* ================================
   WHATSAPP BANNER SECTION
   ================================ */
.whatsapp-banner-section {
    width: 100%;
    margin: 40px 0;
    padding: 0;
}

.whatsapp-banner-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-banner-link:hover {
    transform: translateY(-3px);
}

.whatsapp-banner-container {
    background: linear-gradient(135deg, #4a0e0e 0%, #2d0808 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
}

.whatsapp-banner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(187,25,25,0.1) 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.whatsapp-banner-content {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 30px;
    padding: 30px 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ================================
   TEXT CONTENT
   ================================ */
.whatsapp-text-content {
    color: white;
    text-align: right;
}

.whatsapp-banner-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.whatsapp-banner-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    margin: 0 0 20px 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.whatsapp-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #4a0e0e;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.whatsapp-banner-link:hover .whatsapp-cta-button {
    background: #25D366;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 6px 25px rgba(37,211,102,0.4);
}

.whatsapp-cta-button i {
    font-size: 1rem;
}

/* ================================
   PHONE MOCKUP
   ================================ */
.whatsapp-phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 200px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 35px;
    padding: 12px;
    box-shadow: 
        0 0 0 6px #2a2a2a,
        0 0 0 8px #1a1a1a,
        0 15px 40px rgba(0,0,0,0.5);
    position: relative;
    transition: transform 0.3s ease;
}

.whatsapp-banner-link:hover .phone-frame {
    transform: scale(1.05) rotate(-2deg);
}

/* Phone Notch */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* WhatsApp Pattern Background */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
    opacity: 0.5;
}

.whatsapp-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-icon i {
    font-size: 60px;
    color: #25D366;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(37,211,102,0.4);
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1200px) {
    .whatsapp-banner-content {
        padding: 25px 35px;
        gap: 25px;
        grid-template-columns: 1fr 180px;
    }
    
    .whatsapp-banner-title {
        font-size: 1.8rem;
    }
    
    .phone-frame {
        width: 170px;
        height: 340px;
    }
    
    .whatsapp-icon {
        width: 85px;
        height: 85px;
    }
    
    .whatsapp-icon i {
        font-size: 50px;
    }
}

@media (max-width: 992px) {
    .whatsapp-banner-content {
        grid-template-columns: 1fr 160px;
        gap: 20px;
        padding: 25px 25px;
    }
    
    .whatsapp-banner-title {
        font-size: 1.6rem;
    }
    
    .whatsapp-banner-description {
        font-size: 0.95rem;
    }
    
    .phone-frame {
        width: 150px;
        height: 300px;
        border-radius: 30px;
        padding: 10px;
    }
    
    .phone-screen {
        border-radius: 22px;
    }
    
    .whatsapp-icon {
        width: 75px;
        height: 75px;
    }
    
    .whatsapp-icon i {
        font-size: 45px;
    }
}

@media (max-width: 768px) {
    .whatsapp-banner-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 25px 20px;
    }
    
    .whatsapp-text-content {
        text-align: center;
    }
    
    .whatsapp-banner-title {
        font-size: 1.5rem;
    }
    
    .whatsapp-banner-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .whatsapp-cta-button {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
    
    .whatsapp-phone-mockup {
        margin-top: 15px;
    }
    
    .phone-frame {
        width: 160px;
        height: 320px;
    }
    
    .whatsapp-icon {
        width: 80px;
        height: 80px;
    }
    
    .whatsapp-icon i {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .whatsapp-banner-content {
        padding: 20px 15px;
    }
    
    .whatsapp-banner-title {
        font-size: 1.3rem;
    }
    
    .whatsapp-banner-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .whatsapp-cta-button {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
    
    .phone-frame {
        width: 140px;
        height: 280px;
        border-radius: 28px;
        padding: 8px;
    }
    
    .phone-frame::before {
        width: 80px;
        height: 18px;
    }
    
    .phone-screen {
        border-radius: 20px;
    }
    
    .whatsapp-icon {
        width: 70px;
        height: 70px;
    }
    
    .whatsapp-icon i {
        font-size: 42px;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */
.whatsapp-banner-link:focus {
    outline: 3px solid #25D366;
    outline-offset: 4px;
}

.whatsapp-banner-link:focus .whatsapp-banner-container {
    box-shadow: 0 0 0 4px rgba(37,211,102,0.3);
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .whatsapp-banner-section {
        display: none;
    }
}
