/**
 * MACKSC Conversion Optimization Styles
 * Social proof, scroll CTA, exit intent overlay.
 * Dark theme with gold accents matching MackSC brand.
 * Managed by Ansible. Do not edit on server.
 */

/* ========== Social Proof Badge ==========
 * Styles moved to macksc-live.css to avoid duplication.
 * The .macksc-social-proof and .macksc-sp-dot classes are
 * now defined alongside the grid layout they sit above.
 */

.macksc-social-proof strong {
    color: #c9a96e;
}

/* ========== Scroll-Triggered Floating CTA ========== */

.macksc-scroll-cta {
    position: fixed;
    bottom: -120px;
    left: 0;
    right: 0;
    z-index: 9990;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.macksc-scroll-cta--visible {
    bottom: 0;
    pointer-events: auto;
}

.macksc-scroll-cta-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 20px;
    background: #1a1a1a;
    border-top: 2px solid #c9a96e;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.macksc-scroll-cta-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.macksc-scroll-cta-close:hover {
    color: #c9a96e;
}

.macksc-scroll-cta-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c9a96e;
    margin-bottom: 4px;
}

.macksc-scroll-cta-proof {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 8px;
}

.macksc-scroll-cta-models {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.macksc-scroll-cta-models::-webkit-scrollbar {
    display: none;
}

.macksc-scroll-cta-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    text-decoration: none;
    color: #e0e0e0;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

.macksc-scroll-cta-card:hover {
    border-color: #c9a96e;
}

.macksc-scroll-cta-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.macksc-scroll-cta-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
}

.macksc-scroll-cta-viewers {
    display: block;
    font-size: 11px;
    color: #888;
}

/* ========== Exit Intent Overlay ========== */

.macksc-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none;
}

.macksc-exit-overlay--visible {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.macksc-exit-box {
    position: relative;
    max-width: 520px;
    width: 90%;
    padding: 32px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.macksc-exit-overlay--visible .macksc-exit-box {
    transform: scale(1);
    opacity: 1;
}

.macksc-exit-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.macksc-exit-close:hover {
    color: #c9a96e;
}

.macksc-exit-title {
    color: #c9a96e;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.macksc-exit-subtitle {
    color: #888;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.macksc-exit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.macksc-exit-card {
    display: flex;
    flex-direction: column;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #e0e0e0;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.macksc-exit-card:hover {
    border-color: #c9a96e;
    transform: translateY(-2px);
}

.macksc-exit-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.macksc-exit-card-info {
    padding: 10px;
}

.macksc-exit-card-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.macksc-exit-card-meta {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ========== Responsive ========== */

@media (max-width: 600px) {
    .macksc-scroll-cta-inner {
        padding: 12px 14px;
    }

    .macksc-scroll-cta-models {
        gap: 8px;
    }

    /* Keep 2-column grid on mobile — never single-column */
    .macksc-exit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .macksc-exit-box {
        padding: 20px 16px;
    }

    .macksc-exit-card-thumb {
        aspect-ratio: 4 / 3;
    }
}
