/* RESULTS GAME CARD - MOBILE COMPONENT */

/* =======================================================================
   Mobile Game Card Layout - Used on results page for mobile view
   ======================================================================= */

/* Ensure mobile cards are visible on mobile */
@media (max-width: 767px) {
    .mobile-only {
        display: block !important;
    }
    
    /* Force hide desktop table with maximum specificity */
    .desktop-only,
    .results-table-container.desktop-only,
    .desktop-only .results-table,
    .desktop-only .results-data-table,
    .desktop-only .results-data-table tbody,
    .desktop-only .results-data-table tbody tr {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Ensure results cards container is visible */
    .results-cards-container {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
    }
}

.results-game-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.results-game-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.results-game-card.outlier-card {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.results-game-card.disabled-card {
    opacity: 0.6;
    background: #f9fafb;
}

/* Card Header */
.results-game-card .card-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.results-game-card .game-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.results-game-card .teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.results-game-card .away-team,
.results-game-card .home-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.results-game-card .away-team {
    justify-content: flex-start;
}

.results-game-card .home-team {
    justify-content: flex-end;
    text-align: right;
}

.results-game-card .team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.results-game-card .team-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    min-width: 0;
    line-height: 1.2;
}

.results-game-card .vs-indicator {
    font-size: 16px;
    color: #6b7280;
    font-weight: 700;
    flex-shrink: 0;
}

.results-game-card .game-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.results-game-card .status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-game-card .status.completed {
    background: #dcfce7;
    color: #166534;
}

.results-game-card .status.live {
    background: #fecaca;
    color: #dc2626;
    animation: pulse 2s infinite;
}

.results-game-card .time {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

/* Card Actions - Now at bottom center */
.results-game-card .card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    background: #f8f9fa;
}

.results-game-card .challenge-selection {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-game-card .challenge-checkbox {
    display: none;
}

.results-game-card .challenge-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.results-game-card .challenge-label:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.results-game-card .challenge-checkbox:checked + .challenge-label {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
}

.results-game-card .challenge-text {
    font-size: 13px;
    font-weight: 500;
}

.results-game-card .challenge-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 16px;
}

.results-game-card .expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.results-game-card .expand-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.results-game-card .expand-icon {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.results-game-card .expand-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Card Summary */
.results-game-card .card-summary {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #f3f4f6;
}

.results-game-card .prediction-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.results-game-card .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.results-game-card .summary-item .label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-game-card .summary-item .value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.results-game-card .lean-summary .value.outlier {
    color: #f59e0b;
}

.results-game-card .outlier-badge {
    font-size: 10px;
    margin-left: 4px;
}

.results-game-card .result-summary {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.results-game-card .bet-result {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.results-game-card .bet-result.win {
    background: #dcfce7;
    color: #166534;
}

.results-game-card .bet-result.loss {
    background: #fecaca;
    color: #dc2626;
}

/* Card Details (Expandable) */
.results-game-card .card-details {
    padding: 16px;
    background: white;
    border-top: 1px solid #f3f4f6;
}

.results-game-card .details-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.results-game-card .detail-section {
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.results-game-card .detail-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.results-game-card .detail-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.results-game-card .detail-value {
    font-size: 14px;
    color: #111827;
    line-height: 1.4;
}

.results-game-card .moneyline-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.results-game-card .moneyline-display div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.results-game-card .lean-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.results-game-card .recommendation {
    font-weight: 600;
    color: #111827;
}

.results-game-card .difference {
    font-size: 12px;
    color: #6b7280;
}

.results-game-card .difference.strong {
    color: #dc2626;
    font-weight: 600;
}

.results-game-card .difference.moderate {
    color: #f59e0b;
    font-weight: 500;
}

.results-game-card .outlier-indicator {
    background: #fef3c7;
    color: #92400e;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.results-game-card .score-display {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    margin-bottom: 8px;
}

.results-game-card .total-display {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 8px;
}

.results-game-card .bet-outcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.results-game-card .bet-outcome .result {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.results-game-card .bet-outcome .result.win {
    background: #dcfce7;
    color: #166534;
}

.results-game-card .bet-outcome .result.loss {
    background: #fecaca;
    color: #dc2626;
}

.results-game-card .live-indicator {
    color: #dc2626;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}





/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive adjustments for very small screens */
@media (max-width: 360px) {
    .results-game-card .card-header {
        padding: 12px;
    }
    
    .results-game-card .card-summary,
    .results-game-card .card-details {
        padding: 12px;
    }
    
    .results-game-card .teams {
        gap: 6px;
    }
    
    .results-game-card .team-name {
        font-size: 13px;
    }
    
    .results-game-card .vs-indicator {
        font-size: 14px;
    }
}

/* Dark mode temporarily disabled to keep a consistent light theme site-wide */