/**
 * SketchPop: Quick App & Promo Builder
 * Premium Styles v5.1.1
 */

#skpop-wrapper {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none; /* Initially hidden, triggered by JS */
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.skpop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skpop-card {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.skpop-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 220px;
    object-fit: cover;
}

.skpop-content {
    padding: 30px;
    text-align: center;
}

.skpop-content h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.skpop-content p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.skpop-cta {
    display: block;
    padding: 15px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 15px -3px rgba(79, 102, 241, 0.4);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skpop-cta:hover {
    transform: translateY(-3px);
}

.skpop-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    background: #ffffff;
    border: none;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.skpop-close-btn:hover {
    background: #f1f5f9;
}

.skpop-brand {
    margin-top: 20px;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.skpop-brand a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 700;
}

/* Entrance Animation */
.skpop-entrance {
    animation: skpopSpring 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes skpopSpring {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
