/* reset.css */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}
body {
    line-height: 1;
}
ol,
ul {
    list-style: none;
}
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/***** COMMON *****/
:root {
    --foreground-color: oklch(98.4% 0.003 247.858);
    --background-color: oklch(12.9% 0.042 264.695);
    --primary-color: oklch(72.3% 0.219 149.579);
    --secondary-color: oklch(70.4% 0.04 256.788);
    --border-color: oklch(37.2% 0.044 257.287);
}
body {
    background-color: var(--background-color);
    color: var(--foreground-color);
    font-family: "Be Vietnam Pro", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--foreground-color);
}

.container {
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.btn,
.search-form button,
.basic-form button {
    color: var(--background-color);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 15px 30px;
    font-size: 14px;
    background-color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.search-form input,
.search-form select,
.search-form button,
.basic-form input,
.basic-form select {
    padding: 10px 10px;
    font-size: 1rem;
    outline: none;
}

.search-form input,
.search-form select,
.basic-form input,
.basic-form select {
    background-color: var(--background-color);
    color: var(--foreground-color);
    border: 1px solid var(--border-color);
    flex-grow: 1;
}

.search-form button,
.basic-form button {
    font-size: 14px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.grid .item-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.grid .item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
}

.grid .item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.grid .item .info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grid .item .info .location {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 14px;
}

.grid .item .info h3 {
    font-weight: bold;
    font-size: 18px;
}

.grid .item .info .count {
    font-style: italic;
}

.site-banner {
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: -1;
    filter: blur(5px) brightness(60%);
}

.basic-info {
    max-width: 640px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.basic-info div,
.basic-info p {
    line-height: 1.5;
}

.basic-info img {
    width: 150px;
    height: 150px;
    border-radius: 20px;
}

.basic-info h1 {
    font-weight: bold;
    font-size: 32px;
}

.site-content {
    margin-top: 30px;
    line-height: 1.5;
}

.site-content p {
    margin: 20px 0;
}

.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4,
.site-content h5,
.site-content h6 {
    font-weight: 600;
    margin-bottom: 15px;
}

.site-content h1 {
    font-size: 2rem;
}

.site-content h2 {
    font-size: 1.75rem;
}

.site-content h3 {
    font-size: 1.5rem;
}

/* Đoạn văn */
.site-content p {
    line-height: 1.8;
}

/* Liên kết */
.site-content a {
    color: #007bff;
    text-decoration: none;
}

.site-content a:hover {
    text-decoration: underline;
}

/* Hình ảnh */
.site-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

/* Nút cơ bản */
.site-content .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    transition: background 0.3s;
    text-decoration: none;
}

.site-content .button:hover {
    background-color: #0056b3;
}

/* Danh sách */
.site-content ul,
.site-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}

/* Blockquote */
.site-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-style: italic;
}

.site-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}

.site-content th,
.site-content td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: center;
}

.site-content th {
    background-color: var(--primary-color);
    color: var(--background-color);
    font-weight: bold;
}

.site-content caption {
    caption-side: top;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.basic-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.basic-form .field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.basic-form .message {
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.basic-form .required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

/***** MOBILE *****/

/* layout */
.site-header {
    padding-top: 24px;
    padding-bottom: 24px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    color: var(--foreground-color);
    line-height: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    text-decoration: none;
}

.site-header .logo img {
    margin-right: 12px;
}

.site-header .logo sup {
    font-size: 16px;
    margin-top: -16px;
    display: inline-block;
    color: var(--primary-color);
}

.site-header .logo sup img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(53%) saturate(6476%)
        hue-rotate(115deg) brightness(104%) contrast(104%);
    width: 16px;
    height: 16px;
}

.site-header nav {
    position: fixed;
    top: 0px;
    right: 0px;
    max-width: 260px;
    width: 100%;
    height: 100%;
    background-color: oklch(27.9% 0.041 260.031);
    z-index: 10;
    display: none;
    flex-direction: column;
    padding: 15px 5px;
}

.site-header nav a {
    color: var(--foreground-color);
    display: block;
    padding: 15px 20px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    display: block;
}

.site-footer {
    margin-top: 30px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    color: var(--secondary-color);
}

label[for="toggle-menu"] {
    color: var(--foreground-color);
}

label[for="toggle-menu"] svg {
    width: 32px;
    height: 32px;
}

.site-header nav label {
    margin-left: auto;
}

label[for="toggle-menu"].overlay {
    background-color: var(--background-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0.8;
}

input#toggle-menu {
    display: none;
}

input#toggle-menu:checked ~ nav {
    display: flex;
}

input#toggle-menu:checked ~ .overlay {
    display: block;
}

/* home page */
.home-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.home-banner img {
    width: 100%;
}

.home-intro {
    border-left: 10px solid var(--primary-color);
    display: block;
    padding-left: 10px;
    line-height: 1.5;
    margin: 30px 0;
}

.data-table {
    max-width: 100%;
    overflow: auto;
    margin-top: 20px;
}

.data-table + h2,
h2 + .data-table {
    margin-top: 40px;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.data-table table {
    min-width: 100%;
}

.data-table thead {
    background-color: var(--primary-color);
    color: var(--background-color);
    font-weight: bold;
}

.data-table tr {
    border: 1px solid var(--border-color);
}

.data-table th:first-child {
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 15px;
    vertical-align: middle;
}

.data-table .info .info-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.data-table .info .info-wrapper img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
}

.data-table .info .info-wrapper .name {
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.data-table .info .info-wrapper .id {
    font-size: 14px;
}

.data-table .info .info-wrapper .id:before {
    content: "#";
}

.data-table .point,
.data-table .match,
.data-table .location,
.data-table .rank,
.data-table .tour-matches,
.data-table .tour-wins,
.data-table .highest-round {
    text-align: center;
}

.data-table .winner {
    background-color: rgba(var(--primary-color) / 0.1);
    font-weight: bold;
}

.data-table .badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    background-color: var(--border-color);
    display: inline-block;
}

.data-table .winner-badge {
    background-color: var(--primary-color);
    color: var(--background-color);
    font-weight: bold;
}

.data-table tr.rank-1 {
    background-color: rgba(255, 215, 0, 0.1);
}

.data-table tr.rank-2 {
    background-color: rgba(192, 192, 192, 0.1);
}

.data-table tr.rank-3 {
    background-color: rgba(205, 127, 50, 0.1);
}

/* tour */
.tour-intro {
    text-align: center;
    height: 310px;
}

.tour-intro h1 {
    font-size: 64px;
    font-weight: bold;
}

.tour-intro p {
    line-height: 1.5;
    margin-top: 20px;
    font-size: 18px;
}

/* user info */
.user-info table {
    width: 100%;
}

.user-info table tr {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.user-info table td {
    padding: 15px 30px;
}

.user-info table td.label {
    color: var(--secondary-color);
}

.user-info table td.value {
    font-weight: bold;
}

.player-banner {
    height: 500px;
}

/* register */
.register-player {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/***** PC *****/
@media (min-width: 768px) {
    .site-header nav {
        align-items: center;
        position: static;
        flex-direction: row;
        background-color: transparent;
        max-width: 100%;
        width: fit-content;
        display: flex !important;
    }

    .site-footer .container {
        flex-direction: row;
    }

    .grid .item-wrapper {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }

    label[for="toggle-menu"] {
        display: none;
    }

    .search-form {
        flex-direction: row;
    }

    .tour-intro {
        height: 290px;
    }

    .user-info h1 {
        font-size: 64px;
    }

    .player-banner {
        height: 600px;
    }

    .register-player {
        flex-direction: row;
        align-items: start;
    }

    .register-player .content,
    .register-player form {
        width: 50%;
        flex: 0 0 50%;
    }
}
