/**
 * Cards Component
 * Status cards, gradient cards, info/warning/danger boxes
 */

/* Status Card */
.status-card {
    background: var(--background);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Note: .status-indicator moved to badges.css component */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-disconnected {
    background: var(--secondary-color);
}

.dot-connected {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.dot-broadcasting {
    background: var(--danger-color);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Gradient Cards */
.card-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-gradient-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.card-white-alpha-15 {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
}

.card-white-alpha-20 {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
}

/* Info/Warning/Danger Boxes */
.info-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
}

.tip-box {
    background: #e0f2fe;
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    color: #075985;
}

.danger-box {
    background: #fee2e2;
    border-radius: 8px;
    padding: 12px;
}

.countdown-box {
    background: #fee2e2;
    border-radius: 8px;
    padding: 12px;
}

/* Budget Progress Bar */
.budget-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.budget-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s, background 0.3s;
}

.budget-fill.warning {
    background: #f59e0b;
}

.budget-fill.danger {
    background: var(--danger-color);
}

/* Role Selection Cards */
.role-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.role-card {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.role-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.role-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.role-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.role-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Metric Card Component */
.metric-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--border-color);
    transition: var(--transition-base);
}

.metric-card:hover {
    box-shadow: var(--shadow-lg);
}

.metric-card.primary {
    border-left-color: var(--primary-color);
}

.metric-card.success {
    border-left-color: var(--success-color);
}

.metric-card.warning {
    border-left-color: var(--warning-color);
}

.metric-card.danger {
    border-left-color: var(--danger-color);
}

.metric-card.info {
    border-left-color: var(--info-color);
}

.metric-card h3 {
    margin: 0 0 12px 0;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: var(--font-semibold);
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Metric Value Color States */
.metric-good {
    color: var(--success-color);
}

.metric-warning {
    color: var(--warning-color);
}

.metric-bad {
    color: var(--danger-color);
}

.metric-neutral {
    color: var(--text-secondary);
}

/* Performance Card Component */
.performance-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.performance-metric {
    padding: 16px;
    background: var(--background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.performance-metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.performance-metric-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

.performance-metric-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .status-card {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .role-selection {
        grid-template-columns: 1fr;
    }
}
