/* License Protection System Styles */

/* Restricted Feature Notice */
.hozi-restricted-feature-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.hozi-restricted-feature-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #005a8b);
}

.hozi-restricted-feature-notice h4 {
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hozi-restricted-feature-notice p {
    color: #86868b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.hozi-restricted-feature-notice a {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.hozi-restricted-feature-notice a:hover {
    background: linear-gradient(135deg, #005a8b 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

/* License Notice Overlay */
.hozi-license-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hozi-license-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hozi-license-modal h2 {
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.hozi-license-modal p {
    color: #86868b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.hozi-license-modal .hozi-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hozi-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hozi-modal-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white;
}

.hozi-modal-btn-primary:hover {
    background: linear-gradient(135deg, #005a8b 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.hozi-modal-btn-secondary {
    background: #f8f9fa;
    color: #86868b;
    border: 1px solid #e1e5e9;
}

.hozi-modal-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Feature Lock Icon */
.hozi-feature-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    margin-right: 10px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hozi-license-modal {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .hozi-license-modal h2 {
        font-size: 20px;
    }
    
    .hozi-license-modal p {
        font-size: 14px;
    }
    
    .hozi-modal-actions {
        flex-direction: column;
    }
    
    .hozi-modal-btn {
        width: 100%;
        text-align: center;
    }
}

/* Animation for restricted features */
.hozi-restricted-feature {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.3s ease;
}

.hozi-restricted-feature::after {
    content: "🔒 ميزة متقدمة";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Success state for licensed users */
.hozi-licensed-feature {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hozi-licensed-feature::before {
    content: "✅ ميزة مفعلة";
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hozi-licensed-feature:hover::before {
    opacity: 1;
} 