/**
 * Auth Gate Styles
 * Consistent gating visuals for Side Door (read-only) users across the site.
 */

/* ── Upgrade Hint Tooltip ── */
.auth-gate-hint {
    position: fixed;
    z-index: 100000;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}
.auth-gate-hint.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.auth-gate-hint-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid rgba(135, 64, 141, 0.4);
    border-radius: 6px;
    font-size: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}
.auth-gate-hint-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
}
.auth-gate-hint-text {
    line-height: 1.3;
}
.auth-gate-hint-text strong {
    color: #fff;
}
.auth-gate-hint-btn {
    background: rgba(135, 64, 141, 0.8);
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.auth-gate-hint-btn:hover {
    background: rgba(135, 64, 141, 1);
}
.auth-gate-hint-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px;
    line-height: 1;
    flex-shrink: 0;
}
.auth-gate-hint-close:hover {
    color: #ccc;
}

/* ── Gated Feature Indicator ── */
/* Use .gated-feature on any element that requires write access for Side Door users */
.gated-feature {
    position: relative;
    opacity: 0.45;
    cursor: not-allowed !important;
    transition: opacity 0.2s ease;
}
.gated-feature:hover {
    opacity: 0.6;
}
.gated-feature * {
    pointer-events: none;
}
/* Re-enable pointer on the container so click handler fires */
.gated-feature {
    pointer-events: auto;
}

/* Lock badge on gated features */
.gated-feature::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0.6;
    pointer-events: none;
}

/* For buttons specifically — inline badge */
button.gated-feature::after,
.tool-btn.gated-feature::after,
.featured-tool-btn.gated-feature::after {
    position: static;
    transform: none;
    margin-left: 4px;
    display: inline;
}

/* Hide badge on rows that contain toggles (the toggle IS the indicator) */
.character-row.gated-feature::after,
.tool-row.gated-feature::after {
    display: none;
}

/* ── Gated Tab ── */
.gated-tab {
    opacity: 0.45 !important;
    cursor: pointer !important;
}
.gated-tab:hover {
    opacity: 0.6 !important;
}

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
    .auth-gate-hint-content {
        font-size: 0.7rem;
        padding: 6px 10px;
        gap: 6px;
    }
    .auth-gate-hint-btn {
        padding: 3px 8px;
        font-size: 0.6rem;
    }
}
