/* =====================================================
 * SceneLink - Pre-Launch Polish (v1)
 * Safe, additive CSS that improves trust, conversion,
 * and launch-day feel. Nothing here breaks existing
 * working styles — all selectors are either new or
 * specifically scoped to common patterns.
 * ===================================================== */

/* ---------- EMPTY STATES (global premium look) ---------- */
.empty-state,
.sl-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: rgba(255,255,255,0.65);
    max-width: 440px;
    margin: 0 auto;
}
.empty-state-icon,
.sl-empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.02));
    border: 1px solid rgba(212,175,55,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #D4AF37;
}
.empty-state-title,
.sl-empty-state-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.empty-state-description,
.empty-state-message,
.sl-empty-state-description {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
    margin-bottom: 22px;
}
.empty-state-action,
.sl-empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    color: #0a0a0a;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(212,175,55,0.3);
}
.empty-state-action:hover,
.sl-empty-state-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(212,175,55,0.45);
}

/* Secondary action for empty states */
.sl-empty-state-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.15s ease;
}
.sl-empty-state-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(212,175,55,0.3);
    color: #fff;
}

/* ---------- TOASTS (premium, non-intrusive) ---------- */
.sl-toast,
.sl-global-toast,
.universal-toast {
    position: fixed !important;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20,20,24,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212,175,55,0.25);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.3);
    z-index: 10001;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slToastIn 0.3s cubic-bezier(0.18,0.89,0.32,1.28);
}
.sl-toast--saved,
.sl-toast.saved { border-color: rgba(46,204,113,0.4); }
.sl-toast--error,
.sl-toast.error { border-color: rgba(231,76,60,0.4); }
.sl-toast--info,
.sl-toast.info { border-color: rgba(212,175,55,0.35); }

@keyframes slToastIn {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ---------- LOGIN PROMPT (consistent framing when gated actions hit) ---------- */
.sl-login-prompt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: slFadeIn 0.2s ease;
}
.sl-login-prompt-card {
    background: linear-gradient(180deg, #1a1a22 0%, #121218 100%);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,175,55,0.1);
}
.sl-login-prompt-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #D4AF37;
}
.sl-login-prompt-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.sl-login-prompt-text {
    color: rgba(255,255,255,0.65);
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 24px;
}
.sl-login-prompt-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.sl-login-prompt-btn-primary {
    padding: 12px 28px;
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    color: #0a0a0a;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(212,175,55,0.35);
}
.sl-login-prompt-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(212,175,55,0.5);
}
.sl-login-prompt-btn-secondary {
    padding: 12px 24px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sl-login-prompt-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(212,175,55,0.3);
}
.sl-login-prompt-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s ease;
}
.sl-login-prompt-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

@keyframes slFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- LOADING SKELETONS (consistent shimmer) ---------- */
.sl-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 100%);
    background-size: 200% 100%;
    animation: slShimmerPL 1.4s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes slShimmerPL {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- FAVORITE/SAVE BUTTON CONSISTENCY ---------- */
.favorite-btn,
.sl-fav-btn {
    transition: transform 0.15s ease, color 0.15s ease;
}
.favorite-btn:hover,
.sl-fav-btn:hover {
    transform: scale(1.12);
}
.favorite-btn:active,
.sl-fav-btn:active {
    transform: scale(0.95);
}

/* Heart-pop animation on save */
.sl-fav-pop {
    animation: slFavPop 0.4s cubic-bezier(0.18,0.89,0.32,1.28);
}
@keyframes slFavPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ---------- MOBILE TAPPABLE AREAS ---------- */
@media (max-width: 640px) {
    .sl-empty-state-action,
    .sl-login-prompt-btn-primary,
    .sl-login-prompt-btn-secondary,
    .empty-state-action {
        min-height: 44px; /* Apple HIG minimum */
        padding-left: 24px;
        padding-right: 24px;
    }
    /* Make sure no content bleeds past viewport */
    .sl-toast,
    .universal-toast {
        max-width: calc(100vw - 32px);
        left: 16px;
        right: 16px;
        transform: none;
        bottom: 16px;
    }
}

/* ---------- REPORT INCORRECT INFO CTA ---------- */
.sl-report-venue-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
}
.sl-report-venue-link:hover {
    color: #D4AF37;
    background: rgba(212,175,55,0.08);
}
.sl-report-venue-link i {
    font-size: 11px;
}

/* ---------- TRUST BADGES (small "verified" / "data source" pills) ---------- */
.sl-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(46,204,113,0.1);
    color: #2ecc71;
    border: 1px solid rgba(46,204,113,0.25);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.sl-trust-badge i {
    font-size: 9px;
}
.sl-trust-badge--gold {
    background: rgba(212,175,55,0.1);
    color: #D4AF37;
    border-color: rgba(212,175,55,0.25);
}