/*
  REDESIGN V2 - BETTING PAGE STYLES
  Date: 28-JUL-2025
  Theme: Light (White & Red)
*/
.betting-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.upcoming-match-section,
.betting-form-section {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: 100%;
    border: 1px solid var(--border-color);
    text-align: center;
}

.upcoming-match-section h2,
.betting-form-section h2 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.upcoming-match-section h2::after,
.betting-form-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--hapoel-red);
    margin: 0 auto;
    border-radius: 2px;
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
}

.match-card {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.teams-info {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.team img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.team h3 {
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 700;
}

.vs {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 900;
    color: var(--hapoel-red);
    margin: 0 20px;
    text-shadow: 0 0 10px rgba(213, 0, 0, 0.2);
}

.match-details {
    width: 100%;
    margin-top: 15px;
    font-size: 1.1em;
    color: var(--text-secondary);
}
.match-details p {
    margin: 5px 0;
}

.countdown {
    margin-top: 20px;
    background-color: var(--hapoel-red);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.countdown p {
    margin: 0 0 15px;
    font-size: 1.2em;
    font-weight: 500;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 900;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.time-unit span:first-child {
    font-size: clamp(2rem, 8vw, 3.5rem);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.unit-label {
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Betting Form Section */
.betting-area .login-prompt p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-secondary);
}

#google-login-button {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid #ccc;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
#google-login-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #aaa;
}
#google-login-button img {
    width: 24px;
    height: 24px;
}


#bet-form.hidden { display: none; }

.user-greeting {
    font-size: 1.2em;
    color: var(--text-primary);
    margin-bottom: 25px;
}
.user-greeting span {
    color: var(--hapoel-red);
    font-weight: 700;
}

.score-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.score-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-input label {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-secondary);
}

.score-input input[type="number"] {
    width: 80px;
    padding: 10px;
    font-size: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    background-color: var(--background-light);
    color: var(--text-primary);
    border-radius: 8px;
    transition: var(--transition-fast);
    -moz-appearance: textfield;
}
.score-input input::-webkit-outer-spin-button,
.score-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.score-input input[type="number"]:focus {
    outline: none;
    border-color: var(--hapoel-red);
    box-shadow: 0 0 8px rgba(213, 0, 0, 0.3);
}

.score-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hapoel-red);
    padding-top: 30px; /* Align with inputs */
}

.message {
    margin-top: 25px;
    font-size: 1.1em;
    font-weight: 600;
}
.message[style*="green"] { color: var(--success-green); }
.message[style*="red"] { color: var(--error-red); }

@media (max-width: 500px) {
    .teams-info {
        flex-direction: column;
        gap: 20px;
    }
    .vs { display: none; }
    .team img { width: 80px; height: 80px; }
    .timer { gap: 10px; }
    .score-input-container { gap: 10px; }
    .score-input input[type="number"] { width: 60px; font-size: 1.5rem; }
}