/* Telegram Button Styles */
.telegram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0088cc, #0099dd);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    border: none;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

.telegram-button:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.568 8.16c-.169 1.858-.896 6.728-.896 6.728-.302 1.297-1.121 1.527-2.286 0.956l-2.725-1.992-1.315 1.261c-.145.145-.268.268-.55.268l.197-2.759L15.678 9.26c.219-.195-.048-.303-.342-.108l-5.552 3.492-2.408-.751c-.523-.163-.533-.523.108-.775l9.408-3.622c.435-.163.816.108.676.664z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.telegram-button:hover {
    background: linear-gradient(135deg, #0099dd, #00aaee);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    color: #ffffff !important;
}

.telegram-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
}

.telegram-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.2);
}

/* Alternative telegram button styles */
.telegram-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    color: #0088cc !important;
    text-decoration: none !important;
    border: 2px solid #0088cc;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

.telegram-button-outline:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230088cc'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.568 8.16c-.169 1.858-.896 6.728-.896 6.728-.302 1.297-1.121 1.527-2.286 0.956l-2.725-1.992-1.315 1.261c-.145.145-.268.268-.55.268l.197-2.759L15.678 9.26c.219-.195-.048-.303-.342-.108l-5.552 3.492-2.408-.751c-.523-.163-.533-.523.108-.775l9.408-3.622c.435-.163.816.108.676.664z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.telegram-button-outline:hover {
    background: #0088cc;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.telegram-button-outline:hover:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.568 8.16c-.169 1.858-.896 6.728-.896 6.728-.302 1.297-1.121 1.527-2.286 0.956l-2.725-1.992-1.315 1.261c-.145.145-.268.268-.55.268l.197-2.759L15.678 9.26c.219-.195-.048-.303-.342-.108l-5.552 3.492-2.408-.751c-.523-.163-.533-.523.108-.775l9.408-3.622c.435-.163.816.108.676.664z'/%3E%3C/svg%3E");
}

/* Small telegram button */
.telegram-button-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
}

.telegram-button-small:before {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* Large telegram button */
.telegram-button-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 30px;
}

.telegram-button-large:before {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Floating telegram button (fixed position) */
.telegram-button-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    font-size: 0;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.telegram-button-floating:before {
    width: 30px;
    height: 30px;
    margin: 0;
}

.telegram-button-floating:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .telegram-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .telegram-button-floating {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .telegram-button-floating:before {
        width: 25px;
        height: 25px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .telegram-button-outline {
        border-color: #0099dd;
        color: #0099dd !important;
    }
    
    .telegram-button-outline:hover {
        background: #0099dd;
    }
}