/**
 * Pro Subscription Styles
 * Styles for Pro button and subscription modal
 */

/* Pro Button */
.pro-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid transparent;
    background: transparent;
    color: #fbbf24;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pro-btn:hover {
    color: #f59e0b;
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.1);
}

/* Pro Modal */
.pro-modal-content {
    max-width: 1400px;
    width: 95%;
}

/* Subscription Status Card */
#proSubscriptionStatus {
    margin: 20px 0;
}

.subscription-status-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.subscription-status-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.subscription-status-badge {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.subscription-status-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-status-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.subscription-status-value {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.manage-subscription-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manage-subscription-btn:hover:not(:disabled) {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.6);
}

.manage-subscription-btn:disabled {
    cursor: wait;
    opacity: 0.6;
}

.pro-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.pro-plan {
    padding: 24px;
    background: rgba(39, 39, 42, 0.2);
    border: 1px solid #27272a;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pro-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pro-plan-featured:hover {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.08);
}

.pro-plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #fbbf24;
    color: black;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 14px;
}

.pro-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pro-plan-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.pro-plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

.pro-plan-period {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pro-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.pro-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.feature-check {
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-top: 2px;
}

.pro-subscribe-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pro-subscribe-btn:hover:not(:disabled) {
    background: #e6e6e6;
}

.pro-subscribe-btn-featured {
    background: #fbbf24;
}

.pro-subscribe-btn-featured:hover:not(:disabled) {
    background: #f59e0b;
}

.pro-subscribe-btn-disabled {
    background: #3f3f46 !important;
    color: #71717a !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.pro-subscribe-btn-loading {
    cursor: wait !important;
}

/* Spinner animation */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .header-actions .pro-btn {
        display: none;
    }

    .pro-plans {
        grid-template-columns: 1fr;
    }
}
