/* Telegram Icon Plugin - Frontend Styles */

.telegram-icon-container {
    position: fixed;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Position Classes */
.telegram-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.telegram-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.telegram-position-top-right {
    top: 20px;
    right: 20px;
}

.telegram-position-top-left {
    top: 20px;
    left: 20px;
}

.telegram-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Size Classes */
.telegram-size-small .telegram-icon {
    width: 40px;
    height: 40px;
}

.telegram-size-medium .telegram-icon {
    width: 60px;
    height: 60px;
}

.telegram-size-large .telegram-icon {
    width: 80px;
    height: 80px;
}

.telegram-size-xlarge .telegram-icon {
    width: 100px;
    height: 100px;
}

/* Icon Styling */
.telegram-icon-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.telegram-icon {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    border: 2px solid #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3), 0 0 20px rgba(0, 136, 204, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.telegram-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0088cc, #229ED9, #0088cc);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.telegram-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4), 0 0 30px rgba(0, 136, 204, 0.4);
}

.telegram-icon:hover::before {
    opacity: 1;
}

.telegram-svg {
    width: 60%;
    height: 60%;
    fill: #ffffff;
    transition: all 0.3s ease;
}

.telegram-icon:hover .telegram-svg {
    fill: #ffffff;
    transform: scale(1.1);
}

/* Text Styling */
.telegram-text {
    display: block;
    color: #0088cc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.telegram-icon-link:hover .telegram-text {
    color: #229ED9;
    text-shadow: 0 1px 5px rgba(0, 136, 204, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .telegram-position-bottom-right,
    .telegram-position-bottom-left {
        bottom: 15px;
    }
    
    .telegram-position-top-right,
    .telegram-position-top-left {
        top: 15px;
    }
    
    .telegram-position-bottom-right {
        right: 15px;
    }
    
    .telegram-position-bottom-left {
        left: 15px;
    }
    
    .telegram-position-top-right {
        right: 15px;
    }
    
    .telegram-position-top-left {
        left: 15px;
    }
    
    .telegram-size-small .telegram-icon {
        width: 35px;
        height: 35px;
    }
    
    .telegram-size-medium .telegram-icon {
        width: 50px;
        height: 50px;
    }
    
    .telegram-size-large .telegram-icon {
        width: 65px;
        height: 65px;
    }
    
    .telegram-size-xlarge .telegram-icon {
        width: 80px;
        height: 80px;
    }
    
    .telegram-text {
        font-size: 10px;
        margin-top: 6px;
    }
}

/* Animation for initial load */
@keyframes telegramFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.telegram-icon-container {
    animation: telegramFadeIn 0.5s ease-out;
}

/* Pulse animation for attention */
@keyframes telegramPulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3), 0 0 20px rgba(0, 136, 204, 0.2);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3), 0 0 30px rgba(0, 136, 204, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3), 0 0 20px rgba(0, 136, 204, 0.2);
    }
}

.telegram-icon-container.telegram-pulse .telegram-icon {
    animation: telegramPulse 2s infinite;
}
