/**
 * Popup Announcement modal styles.
 */

/* Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Position variants */
.popup-position-center {
    align-items: center;
    justify-content: center;
}

.popup-position-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}

.popup-position-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

.popup-position-top-center {
    align-items: flex-start;
    justify-content: center;
}

/* Dialog */
.popup-dialog {
    position: relative;
    z-index: 10000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    margin: 15px;
}

/* Size variants */
.popup-dialog.popup-size-small {
    width: 100%;
    max-width: 400px;
}

.popup-dialog.popup-size-medium {
    width: 100%;
    max-width: 600px;
}

.popup-dialog.popup-size-large {
    width: 100%;
    max-width: 800px;
}

.popup-dialog.popup-size-fullscreen {
    max-width: 100vw;
    width: calc(100vw - 30px);
    height: calc(100vh - 30px);
}

/* Content */
.popup-content {
    position: relative;
    padding: 0;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    color: #666;
    padding: 0 5px;
}

.popup-close:hover {
    color: #333;
}

.popup-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
    display: block;
    object-fit: contain;
}

.popup-body {
    padding: 20px;
}

.popup-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #333;
}

.popup-content-text {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.popup-actions {
    text-align: center;
    margin-top: 20px;
}

.popup-cta {
    display: inline-block;
    padding: 10px 30px;
    font-size: 1em;
    text-decoration: none;
    border-radius: 4px;
}

.popup-position-bottom-right .popup-dialog,
.popup-position-bottom-left .popup-dialog {
    border-radius: 8px 8px 0 0;
}

.popup-position-top-center .popup-dialog {
    border-radius: 0 0 8px 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-dialog.popup-size-small,
    .popup-dialog.popup-size-medium,
    .popup-dialog.popup-size-large {
        max-width: calc(100vw - 30px);
    }

    .popup-dialog.popup-size-fullscreen {
        width: calc(100vw - 30px);
        height: calc(100vh - 30px);
    }
}
