/* ================================
   WhatsApp Elements Styles
   File: css/whatsapp.css
   IMPORTANT: Must be loaded AFTER components.css
================================ */

/* Override topbar-grid for WhatsApp button compatibility */
.topbar-grid {
    display: grid !important;
    grid-template-columns: minmax(200px, auto) auto minmax(280px, auto) !important;
    align-items: center !important;
    gap: 16px !important;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.topbar-left {
    justify-self: start;
}

.topbar-center {
    justify-self: center;
}

.topbar-right {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.contact-info {
    display: flex !important;
    gap: 16px !important;
    align-items: center !important;
    font-size: 0.9rem;
}

/* WhatsApp Button in Top Bar */
.whatsapp-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #25D366 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
    min-width: auto !important;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-btn i {
    font-size: 1.1rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    line-height: 60px;
}

/* Pulse Animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Tablet Responsive */
@media (max-width: 1200px) {
    .topbar-grid {
        grid-template-columns: auto auto 1fr !important;
        gap: 12px !important;
    }
    
    .contact-info {
        font-size: 0.85rem !important;
        gap: 12px !important;
    }
    
    .whatsapp-btn {
        font-size: 0.8rem !important;
        padding: 7px 14px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .top-bar {
        padding: 8px 0 !important;
    }
    
    .topbar-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        text-align: center !important;
    }
    
    .topbar-left,
    .topbar-center,
    .topbar-right {
        justify-self: center !important;
    }
    
    .topbar-right {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .contact-info {
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .badge-img {
        height: 50px !important;
    }
    
    .top-bar-logo {
        height: 80px !important;
    }
}

@media (max-width: 768px) {
    .contact-info span {
        font-size: 0.8rem !important;
    }
    
    .whatsapp-btn {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    
    .whatsapp-float i {
        line-height: 50px;
    }
}

@media (max-width: 576px) {
    .topbar-right {
        width: 100% !important;
    }
    
    .contact-info {
        width: 100% !important;
    }
}