/* ============================================
   Forum Creative Industries Popup
   ============================================ */

#forum-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    animation: popup-overlay-in 0.4s ease forwards;
}

@keyframes popup-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#forum-popup-overlay.hiding {
    animation: popup-overlay-out 0.35s ease forwards;
}

@keyframes popup-overlay-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

#forum-popup-card {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: linear-gradient(160deg, rgba(20, 30, 55, 0.98) 0%, rgba(12, 18, 36, 0.98) 100%);
    border-radius: 24px;
    padding: 0;
    text-align: center;
    animation: popup-card-in 0.55s cubic-bezier(0.34, 1.52, 0.64, 1) 0.1s both;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.3),
        0 0 80px rgba(139, 92, 246, 0.12),
        0 40px 80px rgba(0, 0, 0, 0.6);
}

@keyframes popup-card-in {
    from { opacity: 0; transform: scale(0.82) translateY(24px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

/* Top gradient accent bar */
#forum-popup-card .popup-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 50%, #ec4899 100%);
    background-size: 200% 100%;
    animation: gradient-shift 4s ease infinite alternate;
}

@keyframes gradient-shift {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

#forum-popup-card .popup-body {
    padding: 2.5rem 2.5rem 2rem;
}

/* Glow blob inside card */
#forum-popup-card .popup-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 65%);
    pointer-events: none;
    border-radius: 50%;
}

/* Badge */
.popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 100px;
    padding: 0.35rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 1.6rem;
}

.popup-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: badge-pulse 2s ease infinite;
    flex-shrink: 0;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Title */
.popup-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #c4b5fd 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Location tag */
.popup-location {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.popup-location i {
    color: #ec4899;
    font-size: 0.75rem;
}

/* Divider */
.popup-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

/* Description */
.popup-description {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 0.9rem;
}

.popup-description strong {
    color: #cbd5e1;
    font-weight: 600;
}

/* Tagline */
.popup-tagline {
    font-size: 0.85rem;
    color: #475569;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Buttons area */
.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popup-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.popup-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}

.popup-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.55);
}

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

.popup-cta-btn i {
    transition: transform 0.2s ease;
}

.popup-cta-btn:hover i {
    transform: translateX(3px);
}

.popup-close-btn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #475569;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    letter-spacing: 0.01em;
}

.popup-close-btn:hover {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
}

/* Footer note */
.popup-footer {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    color: #334155;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 540px) {
    #forum-popup-card .popup-body {
        padding: 2rem 1.5rem 1.75rem;
    }

    .popup-title {
        font-size: 1.35rem;
    }
}
