/**
 * Enhanced Prop Bet Generator Styles
 * Version: 2.0.1 - WordPress Content Area Optimized
 */

/* Base Styles - WordPress Content Area Optimized */
.prop-bet-generator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
}

.prop-bet-generator * {
    box-sizing: border-box;
}

/* Container - WordPress Optimized */
.pbg-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: white;
    width: 100%;
}

/* Header */
.pbg-header {
    text-align: center;
    margin-bottom: 40px;
}

.pbg-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive title sizing */
@media (max-width: 768px) {
    .pbg-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .pbg-title {
        font-size: 1.8rem;
    }
}

.pbg-subtitle {
    font-size: 1.2rem;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

/* Status Indicators */
.pbg-status-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pbg-status-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pbg-status-icon {
    font-size: 1.1rem;
}

/* Main Content - Full Width Vertical Layout */
.pbg-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

/* Form Section - Full Width */
.pbg-form-section {
    width: 100%;
}

/* Results Section - Full Width */
.pbg-results-section {
    width: 100%;
}

/* Form Section */
.pbg-form-section,
.pbg-results-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
}

.pbg-form-section h3,
.pbg-results-section h3 {
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Form Styles */
.pbg-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pbg-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pbg-field label {
    font-weight: 600;
    font-size: 1rem;
}

.pbg-field input,
.pbg-field select {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pbg-field input:focus,
.pbg-field select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pbg-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.pbg-field option {
    background: #333;
    color: white;
}

/* Radio Groups */
.pbg-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pbg-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.pbg-radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pbg-radio-label input[type="radio"] {
    margin: 0;
    width: auto;
    height: auto;
}

/* Player List */
.pbg-player-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.pbg-player-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pbg-player-btn:last-child {
    border-bottom: none;
}

.pbg-player-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pbg-player-btn.pbg-selected {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.pbg-player-name {
    font-weight: 600;
    font-size: 1rem;
}

.pbg-player-info {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.pbg-player-position {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Prop Types - WordPress Content Area Optimized */
.pbg-prop-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Single column for narrow WordPress content areas */
@media (max-width: 600px) {
    .pbg-prop-list {
        grid-template-columns: 1fr;
    }
}

.pbg-prop-label {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.pbg-prop-label:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.pbg-prop-label input[type="checkbox"] {
    margin-bottom: 8px;
    width: auto;
    height: auto;
}

.pbg-prop-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.pbg-prop-line {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Buttons */
.pbg-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.pbg-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.pbg-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.pbg-btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Spinner */
.pbg-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: pbg-spin 1s linear infinite;
}

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

/* Results */
.pbg-results {
    min-height: 300px;
}

.pbg-results-empty {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.8;
}

.pbg-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.pbg-loading-results {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Recommendation Cards */
.pbg-recommendation {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pbg-recommendation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.pbg-rec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.pbg-rec-player h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.pbg-rec-player p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.pbg-rec-confidence {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.pbg-confidence-high {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.pbg-confidence-medium {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.pbg-confidence-low {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.pbg-rec-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pbg-stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pbg-stat-box label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.pbg-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.pbg-odds-value {
    color: #34d399;
}

.pbg-stat-box small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 2px;
}

.pbg-rec-explanation {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pbg-rec-explanation label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.pbg-rec-explanation p {
    margin: 0;
    line-height: 1.6;
}

/* Footer */
.pbg-footer {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

.pbg-footer p {
    margin: 5px 0;
}

.pbg-disclaimer {
    font-size: 0.8rem !important;
    opacity: 0.7 !important;
}

/* Error Display */
.pbg-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

/* Loading State */
.pbg-loading {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
    font-style: italic;
}

/* Theme Variations */
.pbg-theme-light .pbg-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
}

.pbg-theme-light .pbg-title {
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pbg-theme-light .pbg-field input,
.pbg-theme-light .pbg-field select {
    background: rgba(255, 255, 255, 0.8);
    border-color: #cbd5e1;
    color: #334155;
}

.pbg-theme-light .pbg-field input::placeholder {
    color: #94a3b8;
}

/* Responsive Design - WordPress Content Area Optimized */
@media (max-width: 600px) {
    .prop-bet-generator {
        padding: 5px;
    }
    
    .pbg-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .pbg-form-section,
    .pbg-results-section {
        padding: 15px;
    }
    
    .pbg-subtitle {
        font-size: 1rem;
    }
    
    .pbg-status-indicators {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .pbg-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .pbg-rec-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .pbg-rec-stats {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
.pbg-field input:focus,
.pbg-field select:focus,
.pbg-btn:focus,
.pbg-player-btn:focus,
.pbg-prop-label:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .prop-bet-generator {
        background: white !important;
        color: black !important;
    }
    
    .pbg-container {
        background: white !important;
        box-shadow: none !important;
    }
    
    .pbg-form-section {
        display: none !important;
    }
}
