/**
 * CTA Widget Styles
 * Floating call-to-action button with contact channels
 */

/* Widget Container */
.cta-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9999 !important;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cta-widget.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* CTA Button */
.cta-widget .cta-button {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    transition: all 0.3s ease !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cta-widget .cta-button:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6) !important;
}

.cta-widget .cta-button.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: rotate(90deg) !important;
}

.cta-widget .cta-button svg,
.cta-widget .cta-button i {
    position: relative !important;
    z-index: 2 !important;
    display: inline-block !important;
}

/* Pulse Animation */
.cta-button-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.6);
    animation: ctaPulse 2s infinite;
    z-index: 1;
}

@keyframes ctaPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Channels List */
.cta-widget .cta-channels-list {
    position: absolute !important;
    bottom: 75px !important;
    right: 0 !important;
    width: 320px !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    overflow: hidden !important;
}

.cta-widget .cta-channels-list.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Channels Header */
.cta-widget .cta-channels-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.cta-widget .cta-channels-header h4 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
}

.cta-widget .cta-close-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    transition: all 0.2s !important;
    padding: 0 !important;
}

.cta-widget .cta-close-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) !important;
}

/* Channel Group */
.cta-widget .cta-channel-group {
    padding: 16px 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.cta-widget .cta-channel-group:last-child {
    border-bottom: none !important;
}

.cta-widget .cta-group-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.cta-widget .cta-group-icon {
    display: inline-flex !important;
    color: #667eea !important;
}

/* Channel Item */
.cta-widget .cta-channel-item {
    margin-bottom: 8px !important;
}

.cta-widget .cta-channel-item:last-child {
    margin-bottom: 0 !important;
}

.cta-widget .cta-channel-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    background: #f9fafb !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s !important;
    position: relative !important;
}

.cta-widget .cta-channel-link:hover {
    background: #f3f4f6 !important;
    transform: translateX(-3px) !important;
}

.cta-widget .cta-channel-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    flex-shrink: 0 !important;
}

.cta-widget .cta-channel-info {
    flex: 1 !important;
}

.cta-widget .cta-channel-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 2px !important;
}

.cta-widget .cta-channel-value {
    font-size: 13px !important;
    color: #6b7280 !important;
}

/* Zalo Button */
.cta-widget .cta-zalo-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    background: #0068ff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    transition: all 0.2s !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

.cta-widget .cta-zalo-btn:hover {
    background: #0052cc !important;
    transform: scale(1.1) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .cta-button {
        width: 56px;
        height: 56px;
    }
    
    .cta-channels-list {
        width: calc(100vw - 40px);
        max-width: 320px;
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .cta-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .cta-button {
        width: 50px;
        height: 50px;
    }
    
    .cta-channels-list {
        width: calc(100vw - 30px);
        right: -15px;
    }
    
    .cta-channel-link {
        padding: 10px;
    }
    
    .cta-channel-icon {
        width: 36px;
        height: 36px;
    }
    
    .cta-zalo-btn {
        width: 32px;
        height: 32px;
    }
}
