/* Premier League Themed Styles */
:root {
    --pl-primary: #37003c;      /* Premier League Purple */
    --pl-secondary: #00ff87;    /* Premier League Teal */
    --pl-white: #ffffff;
    --pl-light-purple: #8b4c8e;
    --pl-dark-purple: #1a001d;
    --pl-gray: #f5f5f5;
    --pl-dark-gray: #333333;
    --pl-error: #e74c3c;
    --pl-warning: #f39c12;
    --pl-success: #27ae60;
    
    --shadow-light: 0 2px 10px rgba(55, 0, 60, 0.1);
    --shadow-medium: 0 4px 20px rgba(55, 0, 60, 0.15);
    --shadow-heavy: 0 8px 30px rgba(55, 0, 60, 0.2);
    
    --border-radius: 12px;
    --border-radius-small: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--pl-primary) 0%, var(--pl-dark-purple) 100%);
    min-height: 100vh;
    color: var(--pl-dark-gray);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--pl-white);
}

.header-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--pl-secondary);
    animation: bounce 2s infinite;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Card Styles */
.card {
    background: var(--pl-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(55, 0, 60, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--pl-primary), var(--pl-light-purple));
    color: var(--pl-white);
    padding: 20px 30px;
    border-bottom: 3px solid var(--pl-secondary);
}

.card-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content {
    padding: 30px;
}

/* Status Section */
.status-section {
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.status-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.status-label {
    font-weight: 600;
    color: var(--pl-primary);
}

.status-value {
    font-weight: 600;
    color: var(--pl-dark-gray);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #f8f9fa;
    color: #6c757d;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--border-radius-small);
    font-weight: 500;
}

.status-message.status-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--pl-success);
}

.status-message.status-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--pl-error);
}

.status-message.status-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--pl-warning);
}

/* Button Styles */
.control-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pl-primary), var(--pl-light-purple));
    color: var(--pl-white);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--pl-secondary), #00e680);
    color: var(--pl-primary);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

/* Loading Styles */
.loading-section {
    margin: 20px 0;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--pl-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

#loading-text {
    font-size: 1.1rem;
    color: var(--pl-primary);
    font-weight: 600;
}

/* Match Cards - Compact Design */
.match-card {
    background: #fff;
    border-radius: var(--border-radius-small);
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.match-header {
    background: linear-gradient(135deg, var(--pl-primary), var(--pl-light-purple));
    color: var(--pl-white);
    padding: 15px;
    text-align: center;
}

.teams {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.home-team, .away-team {
    color: var(--pl-white);
}

.vs {
    color: var(--pl-secondary);
    margin: 0 10px;
    font-weight: 400;
    font-size: 0.9rem;
}

.match-time {
    font-size: 0.8rem;
    opacity: 0.9;
}

.prediction-result {
    padding: 15px;
    text-align: center;
    background: var(--pl-gray);
    border-bottom: 1px solid #e0e0e0;
}

.prediction-text {
    font-size: 1rem;
    color: var(--pl-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.prediction-text i {
    color: var(--pl-secondary);
    font-size: 0.9rem;
}

.confidence {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

.confidence-high {
    background: #d4edda;
    color: #155724;
}

.confidence-medium {
    background: #fff3cd;
    color: #856404;
}

.confidence-low {
    background: #f8d7da;
    color: #721c24;
}

.probabilities {
    padding: 15px;
}

.probability-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.probability-bar:last-child {
    margin-bottom: 0;
}

.outcome {
    min-width: 100px;
    font-weight: 600;
    color: var(--pl-dark-gray);
    font-size: 0.85rem;
}

.bar-container {
    flex: 1;
    height: 16px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: linear-gradient(135deg, var(--pl-light-purple), var(--pl-primary));
    border-radius: 8px;
    transition: width 0.8s ease;
}

.probability-bar.selected .bar {
    background: linear-gradient(135deg, var(--pl-secondary), #00e680);
}

.percentage {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--pl-primary);
    font-size: 0.85rem;
}

.no-matches {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* Footer */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 30px 0;
    color: var(--pl-white);
    opacity: 0.8;
}

/* Grid Layout for Cards */
.predictions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .header-content {
        padding: 30px 20px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 100%;
        max-width: 300px;
    }
    
    .status-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .teams {
        font-size: 1rem;
    }
    
    .predictions-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .probability-bar {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }
    
    .outcome {
        min-width: auto;
        text-align: center;
    }
    
    .percentage {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}
