/* ====================================
   WORK IN PROGRESS POPUP STYLES
   ==================================== */

.wip-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 1;
    visibility: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wip-popup.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wip-popup__content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wip-popup:not(.hidden) .wip-popup__content {
    transform: scale(1) translateY(0);
}

/* Animated background pattern */
.wip-popup__content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    animation: float-background 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float-background {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.wip-popup__icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #007BFF, #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.wip-popup__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: var(--font-headings);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.wip-popup__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

.wip-popup__message {
    font-size: 1.125rem;
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.wip-popup__message strong {
    color: #007BFF;
    font-weight: 600;
}

.wip-popup__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.wip-popup__button {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.wip-popup__button--primary {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.wip-popup__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.wip-popup__button--secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wip-popup__button--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

.wip-popup__button:hover::before {
    left: 100%;
}

.wip-popup__dismiss-hint {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 1rem;
}

.wip-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #e0e0e0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.wip-popup__close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Progress indicator */
.wip-popup__progress {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wip-popup__progress-label {
    font-size: 0.875rem;
    color: #b3b3b3;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.wip-popup__progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.wip-popup__progress-fill {
    height: 100%;
    width: 85%;
    background: linear-gradient(90deg, #007BFF, #9333EA);
    border-radius: 3px;
    position: relative;
    animation: progress-shine 2s ease-in-out infinite;
}

.wip-popup__progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shimmer 3s ease-in-out infinite;
}

@keyframes progress-shine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes progress-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .wip-popup {
        padding: 1rem;
    }
    
    .wip-popup__content {
        padding: 2rem 1.5rem;
    }
    
    .wip-popup__icon {
        font-size: 3rem;
    }
    
    .wip-popup__actions {
        flex-direction: column;
    }
    
    .wip-popup__button {
        width: 100%;
        justify-content: center;
    }
}