/**
 * ChannelBridge Frontend Styles
 *
 * @package EgniTech\ChannelBridge
 */

/* Floating Widget Styles */
.channelbridge-floating-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.channelbridge-floating-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channelbridge-floating-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.channelbridge-floating-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.channelbridge-floating-link:active {
    transform: scale(0.95);
}

.channelbridge-floating-telegram {
    background: #0088cc;
    color: #fff;
}

.channelbridge-floating-telegram:hover {
    background: #006699;
}

.channelbridge-floating-whatsapp {
    background: #25d366;
    color: #fff;
}

.channelbridge-floating-whatsapp:hover {
    background: #1da851;
}

.channelbridge-floating-icon {
    width: 32px;
    height: 32px;
}

.channelbridge-floating-icon-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Animation for floating widget */
@keyframes channelbridge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.channelbridge-floating-link {
    animation: channelbridge-float 3s ease-in-out infinite;
}

.channelbridge-floating-link:nth-child(2) {
    animation-delay: 0.5s;
}

/* Responsive for floating widget */
@media screen and (max-width: 768px) {
    .channelbridge-floating-widget {
        bottom: 15px;
        right: 15px;
    }

    .channelbridge-floating-link {
        width: 50px;
        height: 50px;
    }

    .channelbridge-floating-icon {
        width: 28px;
        height: 28px;
    }

    .channelbridge-floating-icon-img {
        width: 35px;
        height: 35px;
    }
}

/* Shortcode Container Styles */
.channelbridge-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.channelbridge-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.channelbridge-description {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-align: center;
    opacity: 0.95;
}

.channelbridge-description a {
    color: #fff;
    text-decoration: underline;
}

.channelbridge-description a:hover {
    opacity: 0.8;
}

.channelbridge-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.channelbridge-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.channelbridge-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.channelbridge-link:hover::before {
    left: 100%;
}

.channelbridge-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.channelbridge-telegram {
    background: #0088cc;
    color: #fff;
}

.channelbridge-telegram:hover {
    background: #006699;
    color: #fff;
}

.channelbridge-whatsapp {
    background: #25d366;
    color: #fff;
}

.channelbridge-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

.channelbridge-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.channelbridge-text {
    position: relative;
    z-index: 1;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .channelbridge-container {
        padding: 20px;
    }

    .channelbridge-title {
        font-size: 20px;
    }

    .channelbridge-links {
        flex-direction: column;
        width: 100%;
    }

    .channelbridge-link {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Alternative minimal style */
.channelbridge-container[data-style="minimal"] {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    box-shadow: none;
}

.channelbridge-container[data-style="minimal"] .channelbridge-title {
    color: #333;
}

.channelbridge-container[data-style="minimal"] .channelbridge-description {
    color: #666;
}

.channelbridge-container[data-style="minimal"] .channelbridge-description a {
    color: #0088cc;
}

.channelbridge-container[data-style="minimal"] .channelbridge-link {
    border: 2px solid currentColor;
}

.channelbridge-container[data-style="minimal"] .channelbridge-telegram {
    background: transparent;
    color: #0088cc;
}

.channelbridge-container[data-style="minimal"] .channelbridge-telegram:hover {
    background: #0088cc;
    color: #fff;
}

.channelbridge-container[data-style="minimal"] .channelbridge-whatsapp {
    background: transparent;
    color: #25d366;
}

.channelbridge-container[data-style="minimal"] .channelbridge-whatsapp:hover {
    background: #25d366;
    color: #fff;
}
