/* 
 * Feature Gating UI Styles
 * Premium badges, locked features, and upgrade prompts
 */

/* ==================== Premium Badges ==================== */
.premium-badge {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    opacity: 0.8;
}

.premium-badge i {
    display: none; /* Hide crown icon for simplicity */
}

/* Alternative badge style for enterprise tier */
.enterprise-badge {
    background-color: #5a6268;
}

/* ==================== Locked Features ==================== */
.locked-feature {
    opacity: 0.65;
    cursor: pointer !important;
    position: relative;
    transition: all 0.2s ease;
}

.locked-feature::after {
    content: "\f023"; /* Font Awesome lock icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    color: #6c757d;
    font-size: 0.9rem;
    opacity: 0.7;
}

.locked-feature:hover {
    opacity: 0.85;
    /* Remove background color change on hover - let AdminLTE handle it */
}

.locked-feature:hover::after {
    opacity: 1;
    /* Keep lock icon same color on hover */
}

/* ==================== Upgrade Modal Styles ==================== */
#upgradeModal .modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

#upgradeModal .modal-header {
    background: #007bff; /* Bootstrap primary blue */
    border-bottom: none;
    padding: 1.5rem;
}

#upgradeModal .modal-header .modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

#upgradeModal .modal-header .modal-title i {
    margin-right: 8px;
}

#upgradeModal .feature-highlight {
    padding: 1rem 0;
}

#upgradeModal .feature-highlight i {
    color: #007bff;
}

#upgradeModal .feature-highlight h4 {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

#upgradeModal .upgrade-benefits ul {
    list-style: none;
    padding-left: 0;
}

#upgradeModal .upgrade-benefits ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

#upgradeModal .upgrade-benefits ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #28a745;
    font-size: 0.9rem;
}

#upgradeModal .pricing-info {
    border-left: 4px solid #007bff;
}

#upgradeModal .btn-upgrade {
    background: #007bff;
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

#upgradeModal .btn-upgrade:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* ==================== Premium Feature Cards ==================== */
.premium-feature-card {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-feature-card:hover {
    border-color: #007bff;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.premium-feature-card i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.premium-feature-card h5 {
    color: #333;
    font-weight: 600;
}

.premium-feature-card .upgrade-hint {
    color: #007bff;
    font-weight: 600;
    margin-top: 1rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    #upgradeModal .modal-dialog {
        margin: 1rem;
    }

    #upgradeModal .pricing-info {
        flex-direction: column !important;
        text-align: center;
    }

    #upgradeModal .pricing-info .text-right {
        text-align: center !important;
        margin-top: 0.5rem;
    }

    .premium-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        margin-left: 4px;
    }

    .locked-feature::after {
        right: 10px;
        font-size: 0.8rem;
    }
}

/* ==================== Accessibility ==================== */
.locked-feature:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

#upgradeModal [data-dismiss="modal"]:focus {
    outline: 2px solid white;
    outline-offset: -2px;
}

/* ==================== Print Styles ==================== */
@media print {
    .premium-badge,
    .locked-feature::after,
    #upgradeModal {
        display: none !important;
    }
}

