/**
 * Basic Public CSS for AI Sports Picks
 *
 * @since 1.0.0
 */

.ai-sports-picks-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
}

.ai-picks-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ai-picks-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.ai-picks-header p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

.sport-selector {
    margin-bottom: 25px;
}

.sport-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.sport-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.sport-selector select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#games-container {
    margin-top: 20px;
}

.game-card {
    border: 1px solid #e1e1e1;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-card h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.game-card .game-time {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.button {
    background: #0073aa;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.button-primary {
    background: #0073aa;
}

.button-success {
    background: #28a745;
}

.pick-result {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.pick-result strong {
    color: #2c3e50;
}

.upgrade-notice {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #0073aa;
    border-radius: 8px;
    text-align: center;
}

.upgrade-notice h4 {
    color: #0073aa;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
}

.upgrade-notice p {
    margin: 10px 0;
    color: #2c3e50;
}

.upgrade-notice code {
    background: #ffffff;
    color: #e83e8c;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', 'Monaco', 'Inconsolata', 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #e1e1e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-sports-picks-widget {
        margin: 10px;
        padding: 15px;
    }
    
    .ai-picks-header h3 {
        font-size: 24px;
    }
    
    .upgrade-notice {
        padding: 20px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success States */
.success {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

/* Error States */
.error {
    background: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}
