/* Value Bet Scanner Styles */

.value-scanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.value-scanner-overlay.visible {
    opacity: 1;
}

.value-scanner-modal {
    background: var(--bg-card, #1a1a2e);
    width: 100%;
    max-width: 800px;
    height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-scanner-overlay.visible .value-scanner-modal {
    transform: translateY(0);
}

/* Header */
.scanner-header {
    padding: 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.scanner-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scanner-header i {
    animation: radar-spin 4s linear infinite;
}

@keyframes radar-spin {
    0% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
    100% { opacity: 0.5; }
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Tabs */
.scanner-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    gap: 4px;
}

.scanner-tab {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0aec0);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.scanner-tab.active {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.1);
    border-bottom-color: #60a5fa;
}

.scanner-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* Content */
.scanner-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-card, #1a1a2e);
    position: relative;
}

.scanner-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.scanner-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Value Bet Card */
.value-bet-card {
    background: var(--bg-tertiary, #2d3748);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.value-bet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.game-matchup {
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.ev-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.bet-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.bet-selection {
    font-size: 16px;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 4px;
}

.bet-market {
    font-size: 12px;
    color: var(--text-secondary, #a0aec0);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-info {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px;
}

.book-name {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.book-odds {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.prob-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-secondary, #ccc);
}

.prob-row strong {
    color: #34d399;
}

.edge-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.edge-fill {
    height: 100%;
    background: linear-gradient(90deg, #34d399, #10b981);
    border-radius: 3px;
}

.bet-action-btn {
    width: 100%;
    background: #3b82f6;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.bet-action-btn:hover {
    background: #2563eb;
}

/* Arb Card */
.arb-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.arb-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.profit-badge {
    color: #fbbf24;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.arb-game {
    font-size: 13px;
    color: var(--text-secondary, #ccc);
}

.arb-legs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.arb-leg {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
}

.leg-book {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-secondary, #ccc);
    margin-bottom: 4px;
    padding-left: 8px; /* For border-left */
}

.leg-selection {
    font-size: 13px;
    color: white;
}

.arb-divider {
    font-weight: 800;
    color: var(--text-muted, #666);
    font-size: 12px;
}

.arb-calc-info {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary, #aaa);
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary, #888);
    font-style: italic;
}

/* Player Props Styles */
.prop-value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.prop-value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.prop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.prop-player-info {
    flex: 1;
}

.prop-player-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.prop-player-meta {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.prop-confidence-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-high {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.confidence-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.confidence-low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.prop-matchup-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 16px;
}

.prop-game-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.matchup-rating {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.rating-easy {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.rating-average {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.rating-tough {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.prop-bet-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.1));
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.prop-main-bet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prop-type {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prop-recommendation {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rec-over {
    color: #10b981;
}

.rec-under {
    color: #ef4444;
}

.rec-arrow {
    font-size: 20px;
}

.prop-odds {
    font-size: 16px;
    font-weight: 700;
    color: white;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.prop-book-badge {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.prop-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.prop-stat {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.prop-stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.prop-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.edge-positive {
    color: #10b981;
}

.ev-positive {
    color: #3b82f6;
}

.prop-trend-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
    position: relative;
}

.prop-history-chart {
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.prop-history-chart svg {
    display: block;
}

.trend-icon {
    font-size: 24px;
}

.trend-aligned {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.trend-neutral {
    opacity: 0.6;
}

.trend-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.prop-action-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.prop-action-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.prop-action-btn:active {
    transform: translateY(0);
}
