/* START OF FILE popup/telegram-popup.css */

/* --- Base Styles for Popup Container & Overlay --- */
#telegram-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#telegram-popup-container.show {
    opacity: 1;
    visibility: visible;
}

.telegram-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* --- Popup Box: Desktop First Styles --- */
.telegram-popup-box {
    position: relative;
    background-color: #ffffff;
    color: #212529;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 420px; /* Centered modal on desktop */
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: 'Poppins', sans-serif;
}

#telegram-popup-container.show .telegram-popup-box {
    transform: scale(1);
}

/* Content */
.telegram-popup-box h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

.telegram-popup-box p {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.5;
}
.telegram-popup-box p.support-text {
    margin-bottom: 25px;
}

/* Close Button */
.telegram-popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #adb5bd;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.telegram-popup-close-btn:hover {
    color: #495057;
}

/* Action Buttons: Desktop Layout (Side-by-Side) */
.telegram-popup-buttons {
    display: flex;
    flex-direction: row; /* Side-by-side on desktop */
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.telegram-popup-btn {
    flex: 1; /* Make buttons take equal width */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telegram-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    filter: none;
    color: #fff !important;
}

.telegram-popup-btn.channel-btn { background-color: #0088cc; }
.telegram-popup-btn.support-btn { background-color: #25D366; }
.telegram-popup-btn i { font-size: 1.2rem; }

/* Skip Options */
.telegram-popup-skip-options {
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 15px;
}
.telegram-popup-skip-options .skip-link {
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}
.telegram-popup-skip-options .skip-link:hover {
    color: #007bff;
    text-decoration: underline;
}


/* --- Mobile Responsive Styles --- */
@media (max-width: 600px) {
    .telegram-popup-box {
        padding: 25px 20px;
    }

    .telegram-popup-box h2 {
        font-size: 1.3rem; /* Slightly smaller title on mobile */
    }

    .telegram-popup-box p {
        font-size: 0.9rem; /* Slightly smaller text on mobile */
    }

    /* Stack buttons vertically on mobile */
    .telegram-popup-buttons {
        flex-direction: column;
    }

    .telegram-popup-btn {
        font-size: 0.95rem; /* Adjust button font size */
    }
}
