/**
 * Beta Badge Component Styles
 *
 * Styling for the beta tester badge that appears in the header
 * and on the profile page.
 */

/* Base badge style */
.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    animation: beta-pulse 3s ease-in-out infinite;
}

.beta-badge::before {
    content: '✦';
    font-size: 10px;
}

/* Pulse animation */
@keyframes beta-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 2px 16px rgba(99, 102, 241, 0.5);
    }
}

/* Small variant for header */
.beta-badge--small {
    padding: 2px 8px;
    font-size: 9px;
    border-radius: 8px;
}

.beta-badge--small::before {
    font-size: 8px;
}

/* Large variant for profile page */
.beta-badge--large {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 16px;
    gap: 6px;
}

.beta-badge--large::before {
    font-size: 14px;
}

/* Static variant (no animation) */
.beta-badge--static {
    animation: none;
}

/* Header integration */
.prism-header .beta-badge {
    margin-left: 8px;
    vertical-align: middle;
}

/* Profile header integration */
.profile-header .beta-badge {
    margin-top: 8px;
}

/* Beta status card on profile page */
.beta-status-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.beta-status-card .beta-badge {
    margin-bottom: 16px;
}

.beta-status-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

.beta-status-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.beta-enrolled-date {
    font-size: 12px;
    color: #666;
    margin-top: 12px;
}

/* Feature flag toggles */
.beta-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beta-feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.beta-feature-item:last-child {
    border-bottom: none;
}

.beta-feature-info {
    flex: 1;
}

.beta-feature-name {
    font-size: 14px;
    color: #fff;
    margin: 0 0 4px 0;
}

.beta-feature-description {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Toggle switch */
.beta-feature-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.beta-feature-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.beta-feature-toggle .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
}

.beta-feature-toggle .toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.beta-feature-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.beta-feature-toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Usage stats */
.beta-usage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.beta-usage-stat {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
}

.beta-usage-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.beta-usage-value {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.beta-usage-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.beta-usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s;
}

.beta-usage-subtext {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

/* Beta bonus indicator */
.beta-bonus-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    margin-left: 8px;
}

.beta-bonus-indicator::before {
    content: '+';
}
