/**
 * TM Demos4 Chat Styles
 * Live stream ready - demo vypnutí konkurenčních widgetů
 */

/* Hlavní chat container */
.chatSupport-parent {
    background: #fff 0% 0% no-repeat padding-box;
    box-shadow: 0 10px 20px #00000029;
    border-radius: 36px;
    width: 70px;
    cursor: pointer;
    position: fixed;
    right: 25px;
    bottom: 100px;
    height: 70px;
    z-index: 9999; /* Vyšší než konkurenční widgety */
    transition: all 0.3s ease;
}

/* Expanded stav */
.chatSupport-parent.expanded {
    height: unset;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Wrapper */
.chatSupport-wrap {
    position: relative;
}

/* Hlavní ikona (toggle) */
.chatSupport-main-icon {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chatSupport-main-icon:hover {
    transform: scale(1.1);
}

.chatSupport-main-icon img {
    display: block;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Notification bubble */
.chatSupport-bubble {
    position: absolute;
    width: 10px;
    border-radius: 99px;
    background: #31bf24;
    height: 10px;
    border: 1px solid #fff;
    right: 5px;
    top: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Chat položky (skryté ve výchozím stavu) */
.chatSupport-item {
    color: white !important;
    font-family: "Arial", sans-serif;
    font-size: 10px;
    font-weight: 500;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px;
}

/* Aktivní chat položky */
.chatSupport-item.active {
    display: flex;
    animation: slideInUp 0.3s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover efekty */
.chatSupport-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ikony položek */
.chatSupport-item-icon {
    padding-bottom: 5px;
    transition: transform 0.2s ease;
}

.chatSupport-item:hover .chatSupport-item-icon {
    transform: scale(1.1);
}

/* Speciální styly pro jednotlivé kanály */
.chatSupport-item[href*="whatsapp"] {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.chatSupport-item[href*="apple"] {
    background: linear-gradient(135deg, #007AFF, #0051D5);
}

.chatSupport-mluvii-icon {
    background: linear-gradient(135deg, #9C88FF, #667eea);
}

/* Responzivní design */
@media (max-width: 768px) {
    .chatSupport-parent {
        right: 15px;
        bottom: 90px;
        width: 60px;
        height: 60px;
    }
    
    .chatSupport-main-icon {
        height: 60px;
    }
    
    .chatSupport-main-icon img {
        width: 30px;
        height: 30px;
    }
    
    .chatSupport-item-icon {
        width: 30px !important;
        height: 30px !important;
    }
}

/* iMessage - skrýt na non-Apple zařízeních */
.hidden-non-apple {
    display: none !important;
}

/* Debug režim pro live stream */
.tm-demos4-debug {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    z-index: 10000;
}

/* Potlačení konkurenčních widgetů - LIVE STREAM DEMO */
.mluvii_widget,
.tm-prenos-cisla-widget,
.tm-chat-fy-widget,
[data-mluvii-id]:not(#tm-demos4-chat *),
.feedyou-widget {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Animace pro live demo */
.tm-demos4-highlight {
    animation: highlightDemo 3s ease-in-out infinite;
}

@keyframes highlightDemo {
    0%, 100% { 
        box-shadow: 0 10px 20px #00000029; 
    }
    50% { 
        box-shadow: 0 10px 30px #ff6b6b80, 0 0 20px #ff6b6b40; 
    }
}