/* popup.css - Holiday Beach Styling */

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    direction: ltr;
    border: 3px solid #d4af37;
}

/* Logo in popup */
.popup-logo {
    width: 80px;
    height: 80px;
    margin: -60px auto 15px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 3px solid #d4af37;
}

.popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Success Icon - Green */
.popup-icon-success {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 45px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
    border: 4px solid rgba(255,255,255,0.5);
    animation: pulseSuccess 2s infinite;
}

/* Error Icon - Red */
.popup-icon-error {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 45px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
    border: 4px solid rgba(255,255,255,0.5);
    animation: pulseError 2s infinite;
}

/* Popup Title */
.popup-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
}

.popup-title.success {
    color: #4CAF50;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.popup-title.error {
    color: #f44336;
    text-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

/* Popup Message */
.popup-message {
    margin: 0 0 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Amiri', serif;
    padding: 0 10px;
}

/* Popup Button */
.popup-button {
    background: #d4af37;
    color: white;
    border: none;
    padding: 12px 50px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #d4af37;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.popup-button:hover {
    background: transparent;
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.popup-button:active {
    transform: translateY(0);
}

.popup-button:focus {
    outline: none;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,0,0,0.8));
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

/* Loading Logo */
.loading-logo-container {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
    border: 4px solid #d4af37;
    padding: 15px;
}

.loading-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(212, 175, 55, 0.2);
    border-top: 5px solid #d4af37;
    border-right: 5px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: white;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.loading-text span {
    color: #d4af37;
}

/* Utility Classes */
.no-interaction {
    pointer-events: none;
    opacity: 0.7;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(212, 175, 55, 0.5);
    }
}

@keyframes pulseSuccess {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(76, 175, 80, 0.5);
    }
}

@keyframes pulseError {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(244, 67, 54, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        width: 85%;
    }

    .popup-logo {
        width: 60px;
        height: 60px;
        margin: -40px auto 15px;
    }

    .popup-icon-success,
    .popup-icon-error {
        width: 60px;
        height: 60px;
        font-size: 35px;
    }

    .popup-title {
        font-size: 24px;
    }

    .popup-message {
        font-size: 14px;
    }

    .popup-button {
        padding: 10px 40px;
        font-size: 14px;
    }

    .loading-logo-container {
        width: 100px;
        height: 100px;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
    }

    .loading-text {
        font-size: 18px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .popup-content {
        padding: 15px;
    }

    .popup-icon-success,
    .popup-icon-error {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-message {
        font-size: 13px;
    }
}