/*
   modern-betting.css
   Modern, Material Design 3-inspired styling for the betting page.
   ========================================================================== */

/* === Core Styles & Variables === */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Material Design 3 - Light Theme Palette */
    --md-sys-color-primary: #6750A4;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #EADDFF;
    --md-sys-color-on-primary-container: #21005D;
    --md-sys-color-secondary: #625B71;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #E8DEF8;
    --md-sys-color-on-secondary-container: #1D192B;
    --md-sys-color-tertiary: #7D5260;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #FFD8E4;
    --md-sys-color-on-tertiary-container: #31111D;
    --md-sys-color-error: #B3261E;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #F9DEDC;
    --md-sys-color-on-error-container: #410E0B;
    --md-sys-color-background: #FFFBFE;
    --md-sys-color-on-background: #1C1B1F;
    --md-sys-color-surface: #FFFBFE;
    --md-sys-color-on-surface: #1C1B1F;
    --md-sys-color-surface-variant: #E7E0EC;
    --md-sys-color-on-surface-variant: #49454F;
    --md-sys-color-outline: #79747E;
    --md-sys-color-shadow: #000000;
    --md-sys-color-inverse-surface: #313033;
    --md-sys-color-inverse-on-surface: #F4EFF4;
    --md-sys-color-inverse-primary: #D0BCFF;

    /* Custom Variables */
    --card-background-color: var(--md-sys-color-surface);
    --card-border-radius: 12px;
    --card-box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --card-box-shadow-hover: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --font-family-main: 'Roboto', 'Segoe UI', sans-serif;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    font-family: var(--font-family-main);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* === Header & Navigation === */
h1, h2 {
    color: var(--md-sys-color-primary);
    font-weight: 500;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
}

/* === Match Card Styling === */
.match-card {
    background-color: var(--card-background-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-box-shadow);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--md-sys-color-outline);
    overflow: hidden;
}

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

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--md-sys-color-surface-variant);
}

.match-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.match-meta {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
}

.match-body {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.team {
    display: flex;
    align-items: center;
    flex: 1;
}

.team-flag {
    width: 40px;
    height: 26px; /* Maintain aspect ratio for most flags */
    margin-right: 10px;
    border: 1px solid #ccc;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.score-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 150px;
}

.score-input input[type="number"],
input[type="number"] {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 8px;
    background-color: #ffffff;
    color: #000000;
    font-size: 1.2rem;
    -moz-appearance: textfield; /* Firefox */
}

.score-input input[type="number"]::-webkit-outer-spin-button,
.score-input input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* === Form & Button Styles === */
.form-container {
    background: var(--md-sys-color-surface);
    padding: 2rem;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-box-shadow);
    margin-top: 2rem;
    text-align: center;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 20px; /* Pill shape */
    font-family: var(--font-family-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.btn-primary:hover {
    background-color: #5A4391; /* Darker shade of primary */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border: 1px solid var(--md-sys-color-outline);
}

.btn-secondary:hover {
    background-color: #DCD2E8; /* Darker shade */
}

/* === Responsive Adjustments - Bootstrap 5 Standard === */
@media (max-width: 767.98px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 0 10px;
    }
    .match-body {
        flex-direction: column;
        gap: 1rem;
    }
    .team {
        width: 100%;
        justify-content: center;
    }
    .score-input {
        width: 100%;
        justify-content: center;
    }
}
