/* Player Props Specific Styles */

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #00d4ff33;
}

.stat-card .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Description */
.section-desc {
    color: #888;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Filter Row */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.85rem;
    color: #aaa;
}

.filter-group select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #00d4ff44;
    background: #0f3460;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #00d4ff;
}

.refresh-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #00d4ff 0%, #0088cc 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* Legend */
.legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 15px;
    background: #0f346033;
    border-radius: 8px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-text {
    font-size: 0.85rem;
    color: #aaa;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.badge-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
}

.badge-low {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
}

.badge-h2h {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
}

.badge-career {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

/* Picks Grid */
.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Pick Card */
.pick-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #00d4ff22;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff66;
}

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

.player-info h3 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    color: #fff;
}

.player-meta {
    font-size: 0.85rem;
    color: #888;
}

.matchup-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #0f346044;
    border-radius: 6px;
}

.matchup-vs {
    color: #666;
    font-size: 0.9rem;
}

.opponent-name {
    color: #00d4ff;
    font-weight: 600;
}

.game-time {
    font-size: 0.8rem;
    color: #666;
    margin-left: auto;
}

/* Exploit Section */
.exploit-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #00d4ff22;
}

.exploit-item {
    text-align: center;
}

.exploit-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.exploit-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
}

.exploit-value.percentile {
    font-size: 1.1rem;
}

.percentile-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.percentile-elite {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.percentile-strong {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
}

.percentile-good {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #fff;
}

.percentile-avg {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: #fff;
}

/* Prop Section */
.prop-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #00d4ff22;
}

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

.prop-market {
    font-size: 0.85rem;
    color: #888;
}

.prop-bookmaker {
    font-size: 0.75rem;
    color: #666;
}

.prop-line-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prop-line {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.prop-odds {
    font-size: 1rem;
    color: #888;
    margin-left: 8px;
}

.prop-edge {
    font-size: 1.4rem;
    font-weight: 700;
}

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

.edge-negative {
    color: #ef4444;
}

.prop-projection {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}

/* Combined Score */
.combined-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.combined-score {
    text-align: center;
}

.combined-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.combined-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
}

.tier-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* Sample Info */
.sample-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    text-align: right;
}

/* Loading */
.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: #888;
    grid-column: 1 / -1;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #00d4ff33;
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

/* No Picks Message */
.no-picks-message {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-picks-message h3 {
    color: #888;
    margin-bottom: 10px;
}

.no-picks-message p {
    color: #666;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    border: 1px solid #00d4ff44;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #00d4ff22;
}

.modal-header h2 {
    margin: 0 0 5px 0;
    color: #fff;
}

.modal-header .player-meta {
    color: #888;
}

.modal-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #0f346044;
    border-radius: 8px;
}

.summary-item {
    text-align: center;
}

.summary-item .label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.summary-item .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00d4ff;
}

.summary-item .value.positive {
    color: #10b981;
}

.summary-item .value.negative {
    color: #ef4444;
}

/* Exploits Table */
.exploits-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.exploits-table th,
.exploits-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #00d4ff22;
}

.exploits-table th {
    background: #0f3460;
    color: #00d4ff;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.exploits-table td {
    color: #ddd;
}

.exploits-table tr:hover {
    background: #00d4ff11;
}

.exploits-table .highlight {
    background: #00d4ff22;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid #00d4ff22;
}

/* Responsive */
@media (max-width: 768px) {
    .picks-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }

    .legend-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .exploit-section {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-summary {
        grid-template-columns: 1fr 1fr;
    }
}
