/* Premium Content Badges & Locked Content Styles */

/* Badge Premium en contenido bloqueado */
.premium-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.premium-badge i {
    font-size: 10px;
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Contenido bloqueado */
.locked-content {
    position: relative;
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.02);
}

.locked-content:hover {
    opacity: 0.9;
    cursor: not-allowed;
}

.locked-content .play-btn:disabled,
.locked-content .material-btn:disabled {
    cursor: not-allowed;
    background-color: #e5e7eb !important;
    border-color: #d1d5db !important;
}

.locked-content .item-title {
    color: #6b7280;
}

.locked-content .fa-lock {
    color: #f59e0b !important;
    font-size: 1.1rem;
}

/* Badge FREE (para contenido gratuito cuando hay usuario FREE) */
.badge.bg-success {
    background-color: #10b981 !important;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
}

/* Hover effect en locked content */
.video-item.locked-content:hover .premium-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Icono de candado en item-status */
.item-status .fa-lock {
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mejorar visualización de material bloqueado */
.material-item.locked-content {
    border-left: 3px solid #f59e0b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .premium-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .premium-badge i {
        font-size: 8px;
    }
}

/* Estilos para el modal de upgrade */
#premiumContentModal .modal-header {
    border-bottom: none;
}

#premiumContentModal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#premiumContentModal .fa-lock {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#premiumContentModal .list-unstyled li {
    transition: all 0.2s;
}

#premiumContentModal .list-unstyled li:hover {
    transform: translateX(5px);
}

#premiumContentModal .btn-warning {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s;
}

#premiumContentModal .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Badge de descuento */
.discount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    z-index: 20;
}

.discount-badge small {
    font-size: 10px;
    font-weight: normal;
}
