:root {
    --jazz-ink: #111d2e;
    --jazz-night: #1d314b;
    --jazz-gold: #d4a447;
    --jazz-copper: #914c2b;
    --jazz-teal: #0f5f67;
    --jazz-cream: #fff8ed;
    --jazz-muted: #6c7480;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Rockies';
    src: url('/assets/fonts/Rockies.otf');
}

@font-face {
    font-family: 'kittithada';
    src: url('/assets/fonts/PSL240pro.ttf');
}

@font-face {
    font-family: 'kittithada-bold';
    src: url('/assets/fonts/PSL245pro.ttf');
}

body {
    font-family: 'kittithada';
    font-size: 24px;
    color: var(--jazz-ink);
    background-color: #5b88be;
    min-height: 100vh;
}

.page-title {
    font-family: 'Rockies';
    color: #fff;
    text-align: center;
}

.highlightButton {
    font-family: 'Rockies';
    color: #fff;
    text-decoration: none;
}

.highlightButton::before {
    content: '> >';
    font-family: 'Rockies';
    color: #fdb100;
    padding-right: 0.5em;
}

.highlightButton::after {
    content: '< <';
    font-family: 'Rockies';
    color: #fdb100;
    padding-left: 0.5em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.4px;
    position: relative;
}

.navbar-brand img {
    height: 30px;
    width: 200px;
    object-fit: contain;
    object-position: left center;
    position: absolute;
    top: 0;
    left: 0;
}

.jazz-navbar {
    background-color: #5b88be;
    backdrop-filter: blur(6px);
    height: 60px;
}

.admin-body .jazz-navbar {
    position: sticky;
    top: 0;
    z-index: 2000;
    min-height: 60px;
    height: auto;
    overflow: visible;
}

.admin-body main {
    position: relative;
    z-index: 1;
}

.jazz-navbar .nav-link {
    color: rgba(255, 255, 255, 0.88);
    padding-inline: 0.8rem;
}

.jazz-navbar .nav-link.active,
.jazz-navbar .nav-link:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .jazz-navbar .navbar-collapse {
        background-color: #5b88be;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .admin-body .jazz-navbar .container-fluid {
        position: relative;
    }

    .admin-body .jazz-navbar .navbar-collapse {
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        z-index: 2001;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 16px 30px rgba(17, 29, 46, 0.16);
    }
}

.btn-language {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    min-width: 48px;
}

.btn-language:hover,
.btn-language.active {
    border-color: var(--jazz-gold);
    color: #fff;
    background-color: rgba(212, 164, 71, 0.25);
}

.hero-section,
.parallax-panel {
    background-color: #5b88be;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-section::before,
.parallax-panel::before {
    content: '';
    position: absolute;
    inset: 0;
}

.hero-content,
.parallax-content {
    position: relative;
    z-index: 2;
}

.hero-section {
    min-height: 86vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-logo {
    width: 100%;
    padding-top: 100%;
    position: relative;
    margin-top: 5vh;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-mascot {
    width: 90%;
    padding-top: 90%;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.hero-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-agenda {
    width: 100%;
    padding-top: 20%;
    position: relative;
}

.hero-agenda img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-button {
    width: 100%;
    height: 20vh;
    background-color: #0f0;
}

.parallax-panel {
    min-height: 62vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.parallax-mission {
    background-image: url('https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?auto=format&fit=crop&w=1600&q=80');
}

.parallax-artist {
    background-image: url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=1600&q=80');
}

.parallax-activities {
    background-image: url('https://images.unsplash.com/photo-1501386761578-eac5c94b800a?auto=format&fit=crop&w=1600&q=80');
}

.glass-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
}

.section-card {
    background: #fff;
    border: 1px solid rgba(17, 29, 46, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(17, 29, 46, 0.08);
}

.btn-jazz {
    background: linear-gradient(120deg, var(--jazz-gold), #e2bf6e);
    border: none;
    color: #1d1d1d;
    font-weight: 600;
}

.btn-jazz:hover {
    color: #111;
    opacity: 0.92;
}

.page-hero {
    background: linear-gradient(150deg, var(--jazz-night), #274363);
    color: #fff;
    border-radius: 0 0 1.5rem 1.5rem;
    margin-bottom: 2rem;
}

.btnRegister {
    font-size: 1.2em;
}

@media (min-width: 992px) {
    .btnRegister {
        font-size: 2em;
    }
}

.page-hero .container {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
}

.admin-body code {
    font-size: 0.78rem;
}

.form-wrap,
.admin-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(17, 29, 46, 0.1);
    box-shadow: 0 10px 30px rgba(17, 29, 46, 0.07);
}

.form-wrap {
    padding: 2rem;
}

.register-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 0.25rem;
}

.register-submit-button {
    flex: 0 0 auto;
    align-self: flex-start;
    min-width: min(100%, 15rem);
}

.application-note {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(145, 76, 43, 0.28);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(255, 248, 237, 0.98), rgba(255, 233, 196, 0.9)),
        linear-gradient(135deg, rgba(212, 164, 71, 0.2), rgba(145, 76, 43, 0.16));
    box-shadow: 0 14px 30px rgba(17, 29, 46, 0.08);
    color: #7a341d;
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.08rem);
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.application-note::before {
    content: '';
    flex: 0 0 0.9rem;
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.28rem;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #fff8ed 0 18%, #d4a447 30%, #914c2b 100%);
    box-shadow: 0 0 0 0.3rem rgba(212, 164, 71, 0.2);
}

.terms-trigger {
    font-size: 0.95rem;
    color: var(--jazz-teal);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.terms-trigger:hover {
    color: var(--jazz-night);
}

.terms-modal .modal-content {
    border: none;
    border-radius: 1rem;
}

.terms-modal .modal-body {
    padding-top: 1rem;
}

.terms-modal .nav-link {
    color: var(--jazz-ink);
    font-family: 'Work Sans', sans-serif;
}

.terms-modal .nav-link.active {
    color: #fff;
    background-color: var(--jazz-night);
    border-color: var(--jazz-night);
}

.terms-copy {
    color: var(--jazz-ink);
    font-size: 1rem;
    line-height: 1.75;
}

.terms-copy:lang(en) {
    font-family: 'Work Sans', sans-serif;
}

.terms-modal .modal-title,
.terms-copy h4 {
    font-family: inherit;
    letter-spacing: normal;
    margin-bottom: 0.25rem;
}

.terms-modal .modal-title:lang(en) {
    font-family: 'Work Sans', sans-serif;
}

.terms-copy h6 {
    font-family: inherit;
    letter-spacing: normal;
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
}

.terms-copy p,
.terms-copy ul {
    margin-bottom: 1rem;
}

.terms-copy ul,
.terms-copy ol {
    padding-left: 1.25rem;
}

.terms-copy li {
    margin-bottom: 0.35rem;
}

.terms-copy section + section {
    margin-top: 1.5rem;
}

.terms-meta {
    color: var(--jazz-muted);
}

.artist-page-logo {
    max-width: 420px;
    margin: 0 auto;
}

.artist-page-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.artist-page-copy {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.artist-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.artist-section-card {
    height: 100%;
    padding: 1.25rem 1.3rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(17, 29, 46, 0.34);
    backdrop-filter: blur(10px);
}

.artist-section-title {
    margin-bottom: 0.85rem;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.artist-section-list {
    margin: 0;
    padding-left: 1.1rem;
}

.artist-section-list li + li {
    margin-top: 0.55rem;
}

.artist-grid-shell {
    padding: 0;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 40px rgba(17, 29, 46, 0.16);
    overflow: hidden;
}

.artist-grid {
    --artist-row-size: 120px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: var(--artist-row-size);
    gap: 0;
}

.artist-card {
    position: relative;
    display: block;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
    background: #0f1722;
    text-decoration: none;
    color: #fff;
}

.artist-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.06) 38%, rgba(0, 0, 0, 0.22) 100%);
    pointer-events: none;
}

.artist-card--row-2 {
    grid-row: span 2;
}

.artist-card--col-3 {
    grid-column: span 2;
}

.artist-card-static {
    cursor: default;
}

.artist-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter 160ms ease, transform 200ms ease;
}

a.artist-card:hover .artist-card-image {
    filter: brightness(1.06);
    transform: scale(1.015);
}

.artist-card-name {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: inline-block;
    max-width: 78%;
    padding: 0.55rem 0.8rem 0.6rem 0.9rem;
    background: rgba(17, 29, 46, 0.78);
    border-bottom-left-radius: 0.9rem;
    backdrop-filter: blur(8px);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: right;
    color: #fff;
}

@media (min-width: 576px) {
    .artist-grid {
        --artist-row-size: 150px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .artist-grid {
        --artist-row-size: 170px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .artist-card--col-3 {
        grid-column: span 3;
    }

    .artist-card-name {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .artist-grid {
        --artist-row-size: 190px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .artist-grid {
        --artist-row-size: 210px;
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

.admin-body {
    background: linear-gradient(180deg, #f3f6fb 0%, #e9edf5 100%);
}

.metric-card {
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
    color: #fff;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card h3 {
    margin: 0;
    font-size: 2rem;
}

.metric-card p {
    margin: 0;
    opacity: 0.95;
}

.metric-primary { background: linear-gradient(135deg, #0f5f67, #13808a); }
.metric-secondary { background: linear-gradient(135deg, #913f2d, #b55f3f); }
.metric-dark { background: linear-gradient(135deg, #1d314b, #304a70); }
.metric-gold { background: linear-gradient(135deg, #ba8a31, #d4a447); color: #1f1f1f; }

#qr-reader {
    border: 2px dashed rgba(17, 29, 46, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.result-card {
    border: 1px solid rgba(17, 29, 46, 0.12);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 20px rgba(17, 29, 46, 0.08);
}

.jazz-footer {
    background-color: #5b88be;
    color: rgba(255, 255, 255, 0.82);
}

.footer-logo {
    width: 50px;
    padding-top: 50px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.footer-contact-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-contact-item:link, .footer-contact-item:visited {
    width: 30px;
    padding-top: 30px;
    position: relative;
    display: inline-block;
}

.footer-contact-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].show {
    opacity: 1;
    transform: translateY(0);
}

.admin-body [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 991.98px) {
    .hero-section,
    .parallax-panel {
        background-attachment: scroll;
    }

    .glass-card,
    .section-card,
    .form-wrap {
        padding: 1.35rem;
    }

    .hero-section {
        min-height: 76vh;
    }

    .parallax-panel {
        min-height: 48vh;
    }

    .hero-logo {
        width: 100%;
        padding-top: 100%;
        position: relative;
        margin-top: 5vh;
    }
}

@media (min-width: 768px) {
    .register-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .application-note {
        max-width: 32rem;
    }
}

@media (max-width: 575.98px) {
    .register-actions {
        gap: 0.75rem;
    }

    .register-submit-button {
        width: 100%;
    }

    .application-note {
        align-self: flex-start;
        width: 100%;
        gap: 0.65rem;
        padding: 0.55rem 0.8rem;
        border-radius: 0.85rem;
        font-size: 0.96rem;
        line-height: 1.3;
    }

    .application-note::before {
        flex-basis: 0.72rem;
        width: 0.72rem;
        height: 0.72rem;
        margin-top: 0.24rem;
        margin-bottom: 0;
        box-shadow: 0 0 0 0.22rem rgba(212, 164, 71, 0.18);
    }
}
