/*  main.css
    https://owui.samantix.com/s/0dc938a3-c08b-4aa2-842f-134fd2e845d6
*/


body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333; /* Dark grey text */
    background-color: #f4f4f9; /* Light background */
}

:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #ff00ff; /* Magenta */
    --accent-color: #ffc107; /* Yellow */
    --text-color: #000333;
    --background-color: #f4f4f9;
}

a, .highlight {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
}

nav a {
    margin-right: 15px;
    text-decoration: none;
    color: white;
}

nav a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

th {
    background-color: var(--secondary-color);
    color: white;
}

.tournament-name, .winner {
    font-weight: bold;
    color: var(--accent-color);
}

.score {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    table, th, td {
        font-size: 14px;
    }

    nav a {
        margin-right: 10px;
    }
    .datepicker-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        padding: 15px;
    }
    .datepicker-wrapper label {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.player-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.object-fit-cover {
    object-fit: cover;
}

.team-header {
    border-left: 5px solid var(--primary-color);
}

.badge-info {
    background-color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Date Picker Styling */
.datepicker-wrapper {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.datepicker-wrapper:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.datepicker-wrapper label {
    margin-bottom: 0;
    margin-right: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#asof_date {
    border: 1px solid #eee;
    background-color: #fcfcfc;
    padding: 5px 12px;
    border-radius: 3px;
    color: var(--text-color);
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

#asof_date:hover, #asof_date:focus {
    border-color: var(--accent-color);
}

/* Make it look a bit more custom in webkit browsers */
#asof_date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

#asof_date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Tournament Header Styling */
.tournament-header-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border-top: 6px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tournament-header-card::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--primary-color);
    opacity: 0.03;
    border-radius: 50%;
}

.league-logo-wrapper {
    margin-right: 30px;
    flex-shrink: 0;
}

.league-logo-large {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.tournament-info {
    flex-grow: 1;
}

.league-split {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tournament-full-name {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.1;
}

.tournament-dates {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 6px 15px;
    border-radius: 20px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .tournament-header-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .league-logo-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .tournament-full-name {
        font-size: 1.6rem;
    }
}