/* ============================================
   ODDSTRADER PRO - Component Styles
   ============================================ */

/* === Alert Card Components === */
.alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.alert-leader {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.alert-confidence {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.alert-market {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-event {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.alert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.alert-followers {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.alert-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* === Leaderboard Components === */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

.rank {
    width: 32px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
}

.leaderboard-item:nth-child(1) .rank { color: #fbbf24; }
.leaderboard-item:nth-child(2) .rank { color: #9ca3af; }
.leaderboard-item:nth-child(3) .rank { color: #cd7f32; }

.bookmaker {
    flex: 1;
    font-weight: 600;
}

.score {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-cyan);
}

.leader-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === Matrix Components === */
.matrix-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.matrix-leader {
    font-weight: 600;
    color: var(--accent-cyan);
}

.matrix-arrow {
    color: var(--text-muted);
}

.matrix-follower {
    font-weight: 500;
}

.matrix-score {
    margin-left: auto;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-orange);
}

/* === Pick Card Components (Copilot) === */
.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pick-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 20px;
    transition: all var(--transition-normal);
}

.pick-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.pick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pick-player {
    font-size: 1.1rem;
    font-weight: 700;
}

.pick-ev {
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-green);
}

.pick-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pick-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pick-stat-value {
    font-family: var(--font-mono);
    font-weight: 600;
}

.pick-confidence {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.confidence-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 8px;
}

.confidence-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* === Prediction Components === */
.prediction-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prediction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.prediction-follower {
    width: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.prediction-bar-container {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.prediction-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.prediction-stats {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
}

.prediction-prob {
    font-weight: 600;
    color: var(--accent-cyan);
}

.prediction-delay {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* === Toast Notification === */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.toast-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.toast-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.toast-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.toast-icon.info {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.toast-message {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

/* === Loading Spinner === */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Empty State === */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-message {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Badge Variants === */
.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* === Chart Container === */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
}

/* === Table Styles === */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* === Status Indicators === */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-indicator.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.status-indicator.offline {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

.status-indicator.busy {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* === Toggle Switch === */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-switch.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle-switch.active::after {
    left: 22px;
    background: white;
}

/* === Auth Modal Styles === */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent-cyan);
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.w-full {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
