/* subscription_styles.css - Estilos para el sistema de suscripciones */

/* Modal de suscripciones */
.subscription-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.subscription-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.subscription-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.subscription-modal-header h2 {
    margin: 0;
    color: #2563eb;
    font-size: 1.8rem;
}

.close-subscription-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-subscription-modal:hover {
    background: #f5f5f5;
    color: #333;
}

.subscription-modal-body {
    padding: 30px;
}

/* Plan actual */
.current-plan {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.current-plan h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.usage-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.usage-display p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Barra de uso */
.usage-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.usage-progress {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-text {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

/* Grid de planes */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.plan-card {
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.plan-card.current-plan {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card.current-plan::before {
    background: linear-gradient(90deg, #10b981, #059669);
    opacity: 1;
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-header h3 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 1.4rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 5px;
}

.plan-description {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.plan-features {
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #374151;
}

.plan-action {
    text-align: center;
}

.plan-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.plan-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.plan-btn.current {
    background: linear-gradient(135deg, #10b981, #059669);
    cursor: default;
}

.plan-btn.current:hover {
    transform: none;
    box-shadow: none;
}

/* Estado de suscripción */
.subscription-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscription-status.tier-free {
    background: #f3f4f6;
    color: #6b7280;
}

.subscription-status.tier-premium {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

.subscription-status.tier-vip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

/* Botones de acción */
.show-plans-btn, .manage-subscription-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    font-size: 0.9rem;
}

.show-plans-btn:hover, .manage-subscription-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.manage-subscription-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.manage-subscription-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Notificaciones */
.subscription-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    z-index: 1500;
    border-left: 4px solid #f59e0b;
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-content button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.notification-content button:hover {
    background: #2563eb;
}

.notification-content button:last-child {
    background: #6b7280;
    align-self: flex-end;
    width: 30px;
    padding: 5px;
}

/* Límites de uso en el player */
.usage-limits {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

.usage-limits .usage-bar {
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.usage-limits .usage-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Responsive */
@media (max-width: 768px) {
    .subscription-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subscription-modal-header,
    .subscription-modal-body {
        padding: 20px;
    }
    
    .plan-card {
        padding: 20px;
    }