/* ============================================
   GENSPARK AI POPUP STYLES - COMPACT VERSION
   Pure CSS - No Dependencies
   Upload to: /public_html/[tool-folder]/
   ============================================ */

/* Popup Overlay */
.genspark-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    animation: fadeIn 0.3s ease-out;
}

.genspark-popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup Container - SMALLER SIZE */
.genspark-popup {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    max-width: 420px;
    width: 88%;
    box-shadow: 0 15px 45px rgba(123, 31, 162, 0.4),
                0 0 30px rgba(96, 165, 250, 0.2);
    animation: slideUpBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.genspark-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(90deg, #7b1fa2, #60a5fa, #7b1fa2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Floating Robot Emoji - SMALLER */
.genspark-popup-emoji {
    position: absolute;
    top: -25px;
    right: 25px;
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(123, 31, 162, 0.6));
}

/* Close Button - SMALLER */
.genspark-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.genspark-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Badge - COMPACT */
.genspark-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.2), rgba(96, 165, 250, 0.2));
    border: 1px solid rgba(123, 31, 162, 0.4);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #60a5fa;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Header - COMPACT */
.genspark-popup-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #7b1fa2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.genspark-popup-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Features List - COMPACT */
.genspark-popup-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.genspark-popup-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 0.4rem 0;
    line-height: 1.3;
}

.genspark-popup-features li::before {
    content: "✓";
    color: #60a5fa;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

/* CTA Button - COMPACT */
.genspark-popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #7b1fa2, #60a5fa);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
    position: relative;
    overflow: hidden;
}

.genspark-popup-cta::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;
}

.genspark-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 31, 162, 0.6);
}

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

/* Trust Badges - COMPACT */
.genspark-popup-trust {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.genspark-popup-trust span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Disclosure - COMPACT */
.genspark-popup-disclosure {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.3;
}

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

@keyframes slideUpBounce {
    0% { transform: translateY(100px); opacity: 0; }
    60% { transform: translateY(-10px); }
    100% { transform: translateY(0); opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .genspark-popup { 
        padding: 1.5rem 1.25rem; 
        max-width: 92%; 
    }
    .genspark-popup-header h2 { 
        font-size: 1.3rem; 
    }
    .genspark-popup-emoji { 
        font-size: 2.2rem; 
        top: -22px; 
        right: 20px; 
    }
    .genspark-popup-cta { 
        font-size: 0.95rem; 
        padding: 0.8rem 1.25rem; 
    }
}

@media (max-width: 480px) {
    .genspark-popup { 
        padding: 1.25rem 1rem; 
        max-width: 95%;
    }
    .genspark-popup-header h2 { 
        font-size: 1.2rem; 
    }
    .genspark-popup-features li { 
        font-size: 0.8rem; 
    }
    .genspark-popup-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
}
