/* Telegram Popup Styles with Font Awesome */
.telegram-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.telegram-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.telegram-popup-container {
    background: #2b2a29;
    border-radius: 2%;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px) scale(0.9);
    transition: all 0.3s ease;
    position: relative;
    color: white;
}

.telegram-popup-overlay.show .telegram-popup-container {
    transform: translateY(0) scale(1);
}

.telegram-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.telegram-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.telegram-popup-content {
    padding: 40px 30px 30px;
    text-align: center;
}

/* Кликабельная иконка Telegram */
.telegram-icon-link {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4);
    animation: telegram-pulse 2s infinite;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.telegram-icon-link:hover {
    background: #006ba1;
    color: white;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 136, 204, 0.6);
}

.telegram-icon-link:active {
    transform: scale(0.95);
}

@keyframes telegram-pulse {
    0% {
        box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 10px 40px rgba(0, 136, 204, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4);
        transform: scale(1);
    }
}

.telegram-popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.telegram-popup-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* Скрываем кнопку подписки */
.telegram-popup-button {
    display: none;
}

/* Огоньки на фоне */
.telegram-popup-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="10" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.15)"/></svg>') repeat;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Дополнительные эффекты для Font Awesome иконок */
.telegram-icon-link i {
    animation: telegram-icon-pulse 2s ease-in-out infinite;
}

@keyframes telegram-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Дополнительные стили для красоты */
.telegram-popup-title .fa-fire {
    color: #ff6b6b;
    margin-right: 8px;
    animation: fire-flicker 1.5s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
    0% {
        transform: scale(1) rotate(-1deg);
        opacity: 1;
    }
    100% {
        transform: scale(1.1) rotate(1deg);
        opacity: 0.8;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .telegram-popup-container {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .telegram-popup-content {
        padding: 30px 20px 25px;
    }
    
    .telegram-popup-title {
        font-size: 20px;
    }
    
    .telegram-popup-text {
        font-size: 14px;
    }
    
    .telegram-icon-link {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.telegram-popup-overlay.show .telegram-popup-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.telegram-popup-overlay.show .telegram-popup-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.telegram-popup-overlay.show .telegram-popup-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.telegram-popup-overlay.show .telegram-popup-content > *:nth-child(3) {
    animation-delay: 0.3s;
}

.telegram-popup-overlay.show .telegram-popup-content > *:nth-child(4) {
    animation-delay: 0.4s;
}
