/* popup.css - Separate CSS file for popup */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

.popup-overlay.hidden {
    display: none;
}

/* Popup Container */
.popup-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: translateY(0);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

/* Popup Header */
.popup-header {
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.8), 
        rgba(254, 202, 87, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

.popup-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 5px 0 0;
    position: relative;
    z-index: 2;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

/* Popup Content */
.popup-content {
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-message {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-family: 'Arial', sans-serif;
}

.highlight {
    color: #ff4757;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(255, 71, 87, 0.3);
}

/* Buttons Container */
.button-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.popup-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.popup-btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.85), 
        rgba(238, 90, 82, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(255, 107, 107, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.95), 
        rgba(238, 90, 82, 0.95));
    box-shadow: 
        0 6px 20px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(116, 185, 255, 0.85), 
        rgba(9, 132, 227, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(116, 185, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, 
        rgba(116, 185, 255, 0.95), 
        rgba(9, 132, 227, 0.95));
    box-shadow: 
        0 6px 20px rgba(116, 185, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0% { transform: translateX(-50px); }
    100% { transform: translateX(50px); }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .popup-container {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    .popup-message {
        font-size: 16px;
    }
}