/**
 * Login Nudge Tooltip Styles
 * Subtle notification for guest users accessing restricted features
 */

.login-nudge-tooltip {
    position: fixed;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.login-nudge-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.login-nudge-content {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.12));
    padding: var(--space-2, 8px);
}

.login-nudge-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-2, 8px) var(--space-3, 12px);
    background: var(--color-accent, #4a7c5d);
    color: var(--color-accent-contrast, #fff) !important;
    border-radius: var(--radius-sm, 6px);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
    cursor: pointer;
}

.login-nudge-btn:hover {
    background: var(--color-accent-hover, #3d6b4f);
    color: var(--color-accent-contrast, #fff) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.login-nudge-btn svg {
    flex-shrink: 0;
}

/* Position above when near bottom of screen */
.login-nudge-tooltip.position-bottom {
    transform: translateY(-8px);
}

.login-nudge-tooltip.position-bottom.show {
    transform: translateY(0);
}

/* Restricted nav item styling for sidebar */
.rippli-nav-restricted {
    opacity: 0.6;
    cursor: not-allowed !important;
    position: relative;
}

/* Hide all other CSS tooltips for restricted items - only show login-nudge tooltip */
.rippli-nav-restricted[data-tooltip]::before,
.rippli-nav-restricted[data-tooltip]::after,
.rippli-nav-restricted::before,
.rippli-nav-restricted::after {
    display: none !important;
    content: none !important;
}

.rippli-nav-restricted:hover {
    opacity: 0.8;
}

.rippli-nav-restricted .nav-icon,
.rippli-nav-restricted .nav-text {
    pointer-events: none;
}

/* Lock icon indicator for restricted items */
.rippli-nav-restricted::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

/* Hide lock icon when sidebar is collapsed */
.rippli-sidebar.collapsed .rippli-nav-restricted::after {
    display: none;
}

/* Dark theme adjustments */
[data-theme="dark"] .login-nudge-content {
    background: var(--color-surface, #1a1a1a);
    border-color: var(--color-border, #333);
}

[data-theme="dark"] .rippli-nav-restricted::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}
