/* AI Parlay Builder WordPress Plugin Styles */

.ai-parlay-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e1b4b 0%, #7c3aed 50%, #1e1b4b 100%);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.parlay-header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 24px;
    text-align: center;
}

.parlay-header h2 {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
}

.parlay-header p {
    color: #d1d5db;
    margin: 0;
    font-size: 14px;
}

.parlay-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    min-height: 600px;
}

.parlay-inputs {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(139, 92, 246, 0.2);
    padding: 24px;
}

.input-section h3 {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
}

.field-group {
    margin-bottom: 24px;
}

.field-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}

.sports-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.sport-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sport-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sport-option.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.sport-option input {
    margin-right: 12px;
}

.sport-option label {
    color: white;
    margin: 0;
    cursor: pointer;
    flex: 1;
}

#date-range {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

#date-range option {
    background: #1e1b4b;
    color: white;
}

.risk-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.risk-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.risk-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.risk-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

#num-legs {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
    appearance: none;
}

#num-legs::-webkit-slider-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

#legs-display {
    color: #a855f7;
    font-weight: bold;
}

.bet-types {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bet-types label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    font-size: 14px;
}

.bet-types label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bet-types input {
    margin-right: 8px;
}

.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    font-weight: bold;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.4);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.parlay-results {
    background: rgba(0, 0, 0, 0.3);
    padding: 24px;
    overflow-y: auto;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.suggestions-container {
    display: none;
}

.suggestions-container.show {
    display: block;
}

.parlay-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    animation: slideInUp 0.5s ease forwards;
}

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

.parlay-header-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    padding: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

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

.parlay-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.parlay-info h3 {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-risk {
    background: rgba(255, 193, 7, 0.2);
    color: white;
}

.badge-confidence {
    background: rgba(40, 167, 69, 0.2);
    color: white;
}

.parlay-odds {
    text-align: right;
}

.odds-display {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0;
}

.probability-display {
    font-size: 12px;
    color: #d1d5db;
    margin: 0;
}

.payout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.payout-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.payout-amount {
    font-size: 16px;
    font-weight: bold;
    color: #10b981;
    margin: 0;
}

.payout-stake {
    font-size: 11px;
    color: #d1d5db;
    margin: 0;
}

.parlay-body {
    padding: 20px;
}

.selections-list {
    margin-bottom: 20px;
}

.selection-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.selection-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 8px;
}

.selection-teams {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selection-number {
    width: 24px;
    height: 24px;
    background: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.teams-info h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.teams-info p {
    color: #d1d5db;
    font-size: 12px;
    margin: 0;
}

.selection-odds {
    text-align: right;
}

.odds-value {
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.bet-type {
    color: #d1d5db;
    font-size: 11px;
    margin: 0;
    text-transform: capitalize;
}

.ai-pick {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.pick-label {
    color: #a855f7;
    font-weight: 600;
    font-size: 12px;
    margin: 0 0 4px 0;
}

.pick-details {
    color: white;
    font-size: 14px;
    margin: 0;
}

.pick-team {
    color: #a855f7;
    font-weight: 600;
}

.analysis-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.analysis-title {
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-content {
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.risk-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.2));
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.parlay-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color:#fff;
}

.empty-state p {
    color: #d1d5db;
    margin: 0 0 24px 0;
}

.feature-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    color: #a855f7;
    margin-bottom: 12px;
    font-size: 14px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item span:first-child {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .parlay-content {
        grid-template-columns: 1fr;
    }
    
    .parlay-header h2 {
        font-size: 24px;
    }
    
    .risk-buttons {
        grid-template-columns: 1fr;
    }
    
    .payout-grid {
        grid-template-columns: 1fr;
    }
    
    .parlay-actions {
        flex-direction: column;
    }
    
    .selection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* WordPress specific adjustments */
.ai-parlay-container * {
    box-sizing: border-box;
}

.ai-parlay-container input[type="checkbox"] {
    accent-color: #8b5cf6;
}

.ai-parlay-container input[type="range"] {
    accent-color: #8b5cf6;
}