/**
 * Frontend CSS for Football Match Prediction Polls
 * Path: assets/css/football-poll-frontend.css
 */

 .football-poll-blur {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
 }

/* Main container */
.football-prediction-poll {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* Match information */
.football-poll-match-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee4b;
}

.football-poll-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 10px;
}

.football-poll-home-team,
.football-poll-away-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.football-poll-team-logo {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
    object-fit: contain;
}

.football-poll-team-name {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.football-poll-match-vs {
    font-size: 18px;
    font-weight: 700;
    color: #888;
}

.football-poll-match-meta {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.football-poll-match-date {
    font-weight: 500;
    margin-bottom: 3px;
}

.football-poll-options {
    margin-bottom: 15px;
}

.football-poll-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 15px;
    background-color: #ffffff05;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.football-poll-option:hover {
    background-color: #ffffff20;
}

.football-poll-option input[type="radio"] {
    margin-right: 10px;
}

.football-poll-option label {
    font-size: 15px;
    cursor: pointer;
}

.football-poll-submit {
    text-align: center;
}

.football-poll-submit-btn {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #16241D;
    color: #139860;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    min-height: 44px; /* Fixed height to prevent layout shift */
}

.football-poll-submit-btn:hover {
    background-color: #12503163;
}

.football-poll-submit-btn .message-text {
    display: none;
}

.football-poll-previous-vote {
    margin-bottom: 15px;
    font-size: 12px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-align: center;
}

.football-poll-previous-choice {
    font-weight: bold;
    margin-right: 5px;
}

/* Poll results */
.football-poll-results {
    flex: 1 0 0;
    padding: 20px;
}

.football-poll-results-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.football-poll-result-bars {
    display: flex;
    padding: 20px 0;
    height: 100%;
}

@media (max-width: 1024px) {
    .football-poll-result-bars {
        height: 300px;
    }
}

.football-poll-result-item {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.football-poll-result-label {
    font-size: 12px;
    text-align: center;
}

.football-poll-result-bar-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.football-poll-result-bar {
    width: 64px;
    transition: width 0.5s ease;
}

.football-poll-home-win-bar {
    background: linear-gradient(180deg, #F5CA32 0%, #000000 112.35%);
}

.football-poll-draw-bar {
    background: linear-gradient(180deg, #139860 0%, #000000 112.35%);
}

.football-poll-away-win-bar {
    background: linear-gradient(180deg, #DC143C 0%, #000000 112.35%);
}

.football-poll-result-value {
    font-size: 16px;
    text-align: right;
    color: #8a8a8a;
    text-align: center;
    margin-bottom: 8px;
}

.football-poll-result-percent {
    font-weight: 600;
    margin-left: 5px;
}

.football-poll-result-count {
    color: #888;
}

.football-poll-total-votes {
    font-size: 14px;
    color: #666;
    text-align: right;
    margin-bottom: 10px;
}

.football-poll-voted-message,
.football-poll-finished-message {
    font-size: 14px;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #555;
}

/* Messages */
.football-poll-message {
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    border-radius: 4px;
}

.football-poll-message.success {
    background-color: #d4edda;
    color: #155724;
}

.football-poll-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.football-poll-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.football-poll-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    text-align: center;
}


/* Responsive styles */
@media (max-width: 480px) {
    .football-prediction-poll {
        padding: 15px;
    }
    
    .football-poll-team-logo {
        height: 50px;
    }
    
    .football-poll-team-name {
        font-size: 14px;
    }
    
    .football-poll-match-vs {
        font-size: 16px;
    }
    
    .football-poll-option label {
        font-size: 14px;
    }
}