/**
 * Poor Developers Popup Manager - Retro Style
 * Beautiful retro 3D popup design
 */

/* Popup Overlay */
.pd-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

/* Popup Container - Retro 3D Design */
.pd-popup-container {
    background: #ffffff;
    border: 4px solid #1a1a1a;
    box-shadow: 8px 8px 0px #1a1a1a, 12px 12px 0px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    position: relative;
    max-width: 90%;
    width: 100%;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.pd-popup-container.pd-popup-show {
    transform: scale(1);
    opacity: 1;
}

/* Close Button */
.pd-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fa5c5c;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.pd-popup-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 6px 6px 0px #1a1a1a;
}

.pd-popup-close:active {
    transform: scale(0.95) rotate(90deg);
    box-shadow: 2px 2px 0px #1a1a1a;
}

/* Popup Content */
.pd-popup-content {
    padding: 40px;
    position: relative;
}

.pd-popup-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #fa5c5c;
    padding-bottom: 15px;
}

.pd-popup-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.pd-popup-body p {
    margin: 0 0 15px 0;
}

.pd-popup-body p:last-child {
    margin-bottom: 0;
}

.pd-popup-body img {
    max-width: 100%;
    height: auto;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    box-shadow: 4px 4px 0px #1a1a1a;
    margin: 15px 0;
}

.pd-popup-body ul,
.pd-popup-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.pd-popup-body li {
    margin: 8px 0;
}

/* Popup Footer */
.pd-popup-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* Popup Button - Retro Style */
.pd-popup-button {
    display: inline-block;
    background: #fa5c5c;
    color: #ffffff;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
    border-radius: 8px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 1px;
}

.pd-popup-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1a1a1a;
    background: #ff6b6b;
}

.pd-popup-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #1a1a1a;
}

/* Animations */
.pd-animation-fade .pd-popup-container {
    animation: pdFadeIn 0.4s ease forwards;
}

.pd-animation-slide .pd-popup-container {
    animation: pdSlideUp 0.4s ease forwards;
}

.pd-animation-bounce .pd-popup-container {
    animation: pdBounce 0.6s ease forwards;
}

.pd-animation-zoom .pd-popup-container {
    animation: pdZoomIn 0.4s ease forwards;
}

@keyframes pdFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pdSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pdBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        transform: scale(1.05) translateY(10px);
    }
    70% {
        transform: scale(0.95) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pdZoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Position Variations */
.pd-popup-overlay[data-position="top"] {
    align-items: flex-start;
    padding-top: 50px;
}

.pd-popup-overlay[data-position="bottom"] {
    align-items: flex-end;
    padding-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pd-popup-container {
        max-width: 95%;
        margin: 20px;
    }
    
    .pd-popup-content {
        padding: 30px 20px;
    }
    
    .pd-popup-title {
        font-size: 24px;
    }
    
    .pd-popup-body {
        font-size: 14px;
    }
    
    .pd-popup-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .pd-popup-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: -12px;
        right: -12px;
    }
}

/* Loading State */
.pd-popup-overlay.loading {
    pointer-events: none;
}

.pd-popup-container.loading {
    opacity: 0.7;
}

