/* =================================================================
   TIER RESTRICTION COMPONENTS
   ================================================================= */

/* Upgrade prompt overlay */
.tier-upgrade-overlay {
    position: relative;
    display: inline-block;
}

.tier-upgrade-overlay.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.tier-upgrade-overlay.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    border-radius: inherit;
    z-index: 1;
}

/* Upgrade prompt tooltip */
.tier-upgrade-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 17, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 8px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.tier-upgrade-overlay:hover .tier-upgrade-prompt {
    opacity: 1;
    visibility: visible;
}

/* Upgrade button in prompt */
.tier-upgrade-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(99, 102, 241, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.tier-upgrade-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(99, 102, 241, 1));
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Inline upgrade prompt (for form elements) */
.tier-inline-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.tier-inline-prompt .upgrade-icon {
    width: 14px;
    height: 14px;
    color: rgba(59, 130, 246, 0.8);
}

/* Disabled form elements */
.tier-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.tier-disabled select,
.tier-disabled input {
    background: rgba(55, 55, 60, 0.3) !important;
    border-color: rgba(55, 55, 60, 0.2) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Tier badge */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-badge.free {
    background: rgba(107, 114, 128, 0.2);
    color: rgba(156, 163, 175, 0.9);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.tier-badge.professional {
    background: rgba(59, 130, 246, 0.2);
    color: rgba(96, 165, 250, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tier-badge.enterprise {
    background: rgba(168, 85, 247, 0.2);
    color: rgba(196, 181, 253, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Feature lock icon */
.tier-lock-icon {
    width: 12px;
    height: 12px;
    color: rgba(156, 163, 175, 0.6);
    margin-left: 4px;
}

/* Upgrade call-to-action banner */
.tier-upgrade-banner {
    background: linear-gradient(135deg, rgba(15, 15, 17, 0.9), rgba(23, 23, 23, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.tier-upgrade-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-upgrade-banner-icon {
    width: 20px;
    height: 20px;
    color: rgba(59, 130, 246, 0.8);
}

.tier-upgrade-banner-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
}

.tier-upgrade-banner-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(99, 102, 241, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.tier-upgrade-banner-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(99, 102, 241, 1));
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tier-upgrade-prompt {
        font-size: 0.7rem;
        padding: 8px 12px;
    }
    
    .tier-upgrade-btn {
        font-size: 0.65rem;
        padding: 3px 6px;
        margin-left: 6px;
    }
    
    .tier-upgrade-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .tier-upgrade-banner-content {
        justify-content: center;
    }
    
    .tier-upgrade-banner-btn {
        text-align: center;
    }
}

/* Professional upgrade button for sticky notifications */
.tier-upgrade-button-professional {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.025em;
}

.tier-upgrade-button-professional:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .tier-upgrade-button-professional {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}
