/**
 * TUM User Subscription Widget Styles
 */

.tum-user-subscription {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Header */
.tum-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.tum-plan-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.tum-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tum-status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.tum-status-badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Expiry */
.tum-subscription-expiry {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
}

.tum-subscription-expiry i {
    color: #9ca3af;
}

/* Limits */
.tum-subscription-limits {
    margin-bottom: 20px;
}

.tum-limit-item {
    margin-bottom: 16px;
}

.tum-limit-item:last-child {
    margin-bottom: 0;
}

.tum-limit-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: orange;
    margin-bottom: 8px;
}

.tum-limit-label i {
    color: orange;
    font-size: 16px;
}

.tum-limit-value {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.tum-limit-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.tum-limit-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Footer */
.tum-subscription-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.tum-upgrade-button {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(270deg, #667eea, #764ba2, #f093fb, #4facfe, #667eea);
    background-size: 400% 400%;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: tum-gradient-animation 8s ease infinite;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.tum-upgrade-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: tum-shine 3s infinite;
}

.tum-upgrade-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: #fff;
    animation: tum-gradient-animation 3s ease infinite;
}

@keyframes tum-gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes tum-shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tum-subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tum-plan-name {
        font-size: 20px;
    }
}
