/* System typowania - główne style */
.prediction-container {
    margin: 30px 0;
    padding: 0;
}

/* Formularz typowania */
.prediction-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.prediction-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.user-info .icon-user {
    width: 16px;
    height: 16px;
}

/* Pola wyniku */
.prediction-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 24px 0;
}

.team-prediction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 200px;
}

.team-prediction label {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.score-input {
    width: 100%;
    max-width: 120px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.score-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.score-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.separator {
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 10px;
}

/* Przyciski */
.prediction-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.btn-submit-prediction,
.btn-delete-prediction {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-prediction {
    background: white;
    color: #667eea;
}

.btn-submit-prediction:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-delete-prediction {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-delete-prediction:hover {
    background: rgba(255, 77, 77, 0.8);
    border-color: rgba(255, 77, 77, 0.8);
}

/* Info i wskazówki */
.prediction-info {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.prediction-info p {
    margin: 0;
}

.prediction-info .edit-note {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
}

/* Rozliczony typ */
.prediction-settled {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.settled-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.settled-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.points-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
}

.result-exact .points-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.result-partial .points-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.result-miss .points-badge {
    background: #e0e0e0;
    color: #666;
}

/* Porównanie wyników */
.score-comparison {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 24px 0;
}

.predicted, .actual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.predicted .label, .actual .label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.predicted .score, .actual .score {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.predicted .score {
    color: #667eea;
}

.actual .score {
    color: #11998e;
}

/* Komunikat wyniku */
.result-message {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
}

.result-message.result-exact {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    color: #11998e;
}

.result-message.result-partial {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    color: #f5576c;
}

.result-message.result-miss {
    background: #f5f5f5;
    color: #999;
}

/* Prompt logowania */
.prediction-login-prompt {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.prediction-login-prompt svg {
    margin-bottom: 16px;
    opacity: 0.8;
}

.prediction-login-prompt p {
    font-size: 18px;
    margin: 16px 0;
}

.btn-login {
    display: inline-block;
    padding: 12px 32px;
    background: white;
    color: #667eea;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Komunikat sukcesu */
.prediction-success-message {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
    transition: opacity 0.3s ease;
}

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

/* Responsive */
@media (max-width: 600px) {
    .prediction-form {
        padding: 20px 16px;
    }
    
    .prediction-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .prediction-inputs {
        gap: 12px;
    }
    
    .team-prediction label {
        font-size: 14px;
        min-height: 32px;
    }
    
    .score-input {
        height: 50px;
        font-size: 28px;
        max-width: 100px;
    }
    
    .separator {
        font-size: 36px;
    }
    
    .prediction-actions {
        flex-direction: column;
    }
    
    .btn-submit-prediction,
    .btn-delete-prediction {
        width: 100%;
    }
    
    .score-comparison {
        flex-direction: column;
        gap: 20px;
    }
    
    .predicted .score, .actual .score {
        font-size: 28px;
    }
}

/* Dodatkowy info */
.prediction-info strong {
    color: rgba(255, 255, 255, 0.9);
}
