/* Popup Modal Styles */
.popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999999 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--light-dark-color);
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

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

.popup-content {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Hidden SEO keywords - visible to search engines and screen readers */
.popup-seo-hidden {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1px !important;
    line-height: 1px !important;
    color: transparent !important;
    background: transparent !important;
}

.popup-seo-keyword {
    display: inline-block;
    margin-right: 5px;
    font-size: 1px !important;
    line-height: 1px !important;
    color: transparent !important;
}

/* Visible styles (for future use if needed) */
.popup-title {
    margin: 0;
    padding: 20px 25px 10px 25px;
    font-size: 24px;
    font-weight: bold;
    color: var(--white-color);
    text-align: center;
    font-family: var(--theme-font);
    background: var(--light-gray-color);
    border-bottom: 1px solid var(--default-color);
}

.popup-message {
    margin: 0;
    padding: 15px 25px 20px 25px;
    font-size: 16px;
    color: var(--body-color);
    text-align: center;
    font-family: var(--theme-font);
    line-height: 1.5;
    background: var(--light-gray-color);
    border-top: 1px solid var(--default-color);
}

.popup-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* Close button styles removed - only using bottom close button */

.popup-actions {
    padding: 20px 25px;
    background: var(--light-gray-color);
    border-top: 1px solid var(--default-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.popup-button {
    vertical-align: middle;
    display: inline-block;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    font-family: var(--theme-font);
    font-size: 14px;
    line-height: 1;
    transition: all ease 0.4s;
    padding: 0;
}

.popup-button:before {
    content: '';
    z-index: -1;
    position: absolute;
    left: 5.5px;
    right: 5.5px;
    top: 0;
    bottom: 0;
    transform: skewX(10deg);
    background-image: var(--bs-gradient-5);
}

.popup-button:after {
    content: '';
    position: absolute;
    top: -5%;
    left: -30%;
    width: 20px;
    height: 110%;
    opacity: 0.7;
    visibility: visible;
    background-color: var(--white-color);
    transition: all ease 0.6s;
    transform: skewX(10deg);
}

.popup-button:hover:after {
    left: 120%;
    opacity: 0.3;
}

.popup-button.primary {
    color: var(--white-color);
    padding: 18px 38px;
    font-size: 14px;
}

.popup-button.secondary {
    color: var(--body-color);
    padding: 18px 38px;
    font-size: 14px;
}

.popup-button.secondary:before {
    background-image: var(--bs-gradient-5);
}

.popup-button.secondary:hover {
    color: var(--white-color);
}

.popup-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--body-color);
    font-family: var(--theme-font);
}

.popup-checkbox input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--default-color);
    cursor: pointer;
}

.popup-checkbox label {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.popup-checkbox label:hover {
    color: var(--default-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        max-width: 95%;
        margin: 10px;
        border-radius: 12px;
    }
    
    .popup-actions {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
        gap: 12px;
    }
    
    .popup-button {
        width: 100%;
        margin: 5px 0;
        padding: 18px 30px;
        font-size: 15px;
    }
    
    .popup-checkbox {
        justify-content: center;
        font-size: 15px;
    }
    
    /* Hidden text doesn't need responsive styles */
}

@media (max-width: 480px) {
    .popup-container {
        max-width: 98%;
        margin: 5px;
        border-radius: 10px;
    }
    
    .popup-image {
        max-height: 60vh;
    }
    
    .popup-actions {
        padding: 12px 15px;
    }
    
    .popup-button {
        padding: 16px 24px;
        font-size: 14px;
    }
    
    /* Hidden text doesn't need responsive styles */
}
