/*
 * @file schedule.css
 * @author David Kvaček (davidkvacek@seznam.cz)
 * @brief Source code of the Firebase web app schedule page style.
 * @date 2025-02-19
 */

/* SCHEDULE CONTENT */

main .schedule-content {
    background-color: #00141e;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    min-width: fit-content;
    padding: 8px;
    width: 976px;
}

body.light-mode main .schedule-content {
    background-color: #ffffff;
}

/* SEASON PART */

main .season-part {
    background-color: #0f2d37;
    border: none;
    border-radius: 8px;
    color: #c8cdcd;
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    margin-bottom: 4px;
    padding: 8px;
}

main .season-part:hover {
    background-color: #555e61;
    color: #eeeeee;
}

body.light-mode main .season-part {
    background-color: #eeeeee;
    color: #555e61;
}

body.light-mode main .season-part:hover {
    background-color: #c8cdcd;
    color: #001e28;
}

main .season-part.selected, body.light-mode main .season-part.selected {
    background-color: #ff0046;
    color: #ffffff;
}

/* ANNOUNCEMENT */

main .announcement-icon {
    color: #c8cdcd;
    display: block;
    font-size: 64px;
    margin-bottom: 16px;
    margin-top: 64px;
    opacity: 0.3;
    text-align: center;
}

main .announcement-text {
    color: #c8cdcd;
    margin-bottom: 64px;
    text-align: center;
}

body.light-mode main .announcement-icon, body.light-mode main .announcement-text {
    color: #555e61;
}

/* SCHEDULE HEADER */

main .schedule-header {
    background-color: #01203e;
    border-radius: 8px;
    color: #ffcd00;
    margin-top: 8px;
    min-width: fit-content;
    padding: 4px;
}

main .schedule-header .schedule-flag {
    height: 14px;
    margin-right: 8px;
    padding-left: 8px;
    width: auto;
}

main .schedule-header .schedule-name {
    font-size: 14px;
}

body.light-mode main .schedule-header {
    background-color: #eef7ff;
    color: #555e61;
}

/* SCHEDULE CARD */

main .schedule-card {
    align-items: center;
    border-bottom: 1px solid #0f2d37;
    border-radius: 2px;
    display: grid;
    grid-template-areas:
        "date-status home-logo home-name home-score"
        "date-status away-logo away-name away-score";
    grid-template-columns: 4fr 1fr 16fr 4fr;
    grid-template-rows: repeat(2, 1fr);
    padding: 8px 0;
    row-gap: 8px;
    text-decoration: none;
}

main .schedule-card.none {
    display: none;
}

main .schedule-card:hover {
    background-color: rgba(153, 153, 153, 0.2);
    cursor: pointer;
}

main .schedule-card:last-child {
    margin-bottom: 8px;
}

main .schedule-card .date-status {
    color: #999999;
    font-weight: normal;
    grid-area: date-status;
    justify-self: center;
}

main .schedule-card .home-name {
    color: #eeeeee;
    font-weight: normal;
    grid-area: home-name;
}

main .schedule-card .away-name {
    color: #eeeeee;
    font-weight: normal;
    grid-area: away-name;
}

main .schedule-card .home-logo {
    height: auto;
    grid-area: home-logo;
    margin-right: 8px;
    max-height: 24px;
    padding-left: 8px;
    width: 28px;
}

main .schedule-card .away-logo {
    height: auto;
    grid-area: away-logo;
    margin-right: 8px;
    max-height: 24px;
    padding-left: 8px;
    width: 28px;
}

main .schedule-card .time {
    color: #999999;
    font-weight: normal;
    grid-area: home-score / home-score / away-score / away-score;
    justify-self: center;
}

main .schedule-card .home-score {
    color: #eeeeee;
    font-weight: bold;
    grid-area: home-score;
    justify-self: center;
}

main .schedule-card .away-score {
    color: #eeeeee;
    font-weight: bold;
    grid-area: away-score;
    justify-self: center;
}

main .schedule-card .winner-team {
    font-weight: bold;
}

body.light-mode main .schedule-card {
    border-bottom: 1px solid #eeeeee;
}

body.light-mode main .schedule-card:hover {
    background-color: rgba(200, 205, 205, 0.2);
}

body.light-mode main .schedule-card .home-name, body.light-mode main .schedule-card .away-name, body.light-mode main .schedule-card .home-score, body.light-mode main .schedule-card .away-score {
    color: #001e28;
}

/* ROUND PICKER */

main .round-picker {
    background-color: #010a0f;
    border: 1px solid rgba(153, 153, 153, 0.3);
    border-radius: 8px;
    color: #c8cdcd;
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    padding: 8px;
    position: relative;
}

main .round-picker-icons {
    font-size: 18px;
}

main .round-picker:hover {
    background-color: rgba(153, 153, 153, 0.3);
    color: #ffffff;
}

main .round-picker-options {
    background-color: #010a0f;
    border: 1px solid rgba(153, 153, 153, 0.3);
    border-radius: 8px;
    color: #c8cdcd;
    display: none;
    right: 0;
    padding: 4px 8px;
    position: absolute;
    top: 102%;
}

main .round-picker-options .chosen {
    background-color: #ff0046;
    color: #ffffff;
}

main .round-picker-options div {
    border-radius: 4px;
    cursor: pointer;
    margin: 8px 2px;
    padding: 4px 12px;
}

main .round-picker-options div:hover:not(.chosen, :focus-within) {
    background-color: rgba(153, 153, 153, 0.3);
    color: #ffffff;
}

body.light-mode main .round-picker {
    background-color: #ffffff;
    border: 1px solid rgba(200, 205, 205, 0.3);
    color: #555e61;
}

body.light-mode main .round-picker:hover {
    background-color: rgba(200, 205, 205, 0.3);
    color: #001e28;
}

body.light-mode main .round-picker-options {
    background-color: #ffffff;
    border: 1px solid rgba(200, 205, 205, 0.3);
    color: #555e61;
}

body.light-mode main .round-picker-options .chosen {
    background-color: #ff0046;
    color: #ffffff;
}

body.light-mode main .round-picker-options div {
    background-color: #ffffff;
    color: #555e61;
}

body.light-mode main .round-picker-options div:hover:not(.chosen, :focus-within) {
    background-color: rgba(200, 205, 205, 0.3);
    color: #001e28;
}

/* PREVIOUS AND NEXT ROUND */

main .previous-round, main .next-round {
    background-color: #010a0f;
    border: 1px solid rgba(153, 153, 153, 0.3);
    border-radius: 8px;
    color: #c8cdcd;
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    padding: 8px;
}

main .previous-round:hover, main .next-round:hover {
    background-color: rgba(153, 153, 153, 0.3);
    color: #ffffff;
}

body.light-mode main .previous-round, body.light-mode main .next-round {
    background-color: #ffffff;
    border: 1px solid rgba(200, 205, 205, 0.3);
    color: #555e61;
}

body.light-mode main .previous-round:hover, body.light-mode main .next-round:hover {
    background-color: rgba(200, 205, 205, 0.3);
    color: #001e28;
}

/* SCHEDULE ALIGNMENT */

main .schedule-alignment {
    display: flex;
    justify-content: space-between;
}

main .schedule-alignment .schedule-left {
    display: inline-block;
    margin-right: auto;
}

main .schedule-alignment .schedule-right {
    display: inline-block;
    margin-left: auto;
}

/* MEDIA QUERY (1024px) */

@media screen and (max-width: 1024px) {

    /* SCHEDULE CONTENT */

    main .schedule-content {
        margin-left: 8px;
        margin-right: 8px;
        width: auto;
    }
}

/* MEDIA QUERY (512px) */

@media screen and (max-width: 512px) {

    /* SCHEDULE ALIGNMENT */

    main .schedule-alignment {
        display: block;
        text-align: center;
    }

    main .schedule-alignment .schedule-right {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}
