@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Rubik+Spray+Paint&display=swap");

:root {
    --black: #050505;
    --black-soft: #101012;
    --gold: #d7ad46;
    --gold-bright: #ffe09a;
    --gold-deep: #8d6a1e;
    --white: #fff9ed;
    --muted: #d2c7ad;
    --line: rgba(255, 224, 154, 0.28);
    --danger: #ff7b7b;
    --success: #8ee0a4;
    --radius: 8px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
    letter-spacing: 0;
}

body:not(.ticket-page):not(.admin-login):not(.admin-page)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.14), rgba(5, 5, 5, 0.86) 58%, #050505),
        url("../img/turma-2b.jpeg") center top / cover no-repeat;
}

body:not(.ticket-page):not(.admin-login):not(.admin-page)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 52%, rgba(0, 0, 0, 0.76)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 7px);
    mix-blend-mode: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 5vw, 64px);
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0));
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--gold-bright);
    color: var(--gold-bright);
    background: rgba(0, 0, 0, 0.42);
    box-shadow: 5px 5px 0 rgba(215, 173, 70, 0.35);
    font-family: "Rubik Spray Paint", Impact, fantasy;
    font-size: 1.15rem;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-weight: 900;
}

.brand small,
.eyebrow {
    color: var(--gold-bright);
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 900;
}

.top-nav,
.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.top-nav a {
    border: 1px solid rgba(255, 224, 154, 0.18);
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.38);
    font-weight: 900;
    padding: 9px 13px;
    backdrop-filter: blur(12px);
}

.top-nav a:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 124px clamp(18px, 5vw, 64px) 96px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 32%, rgba(255, 224, 154, 0.24), transparent 25%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.64) 64%, rgba(0, 0, 0, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
}

.eyebrow {
    margin: 0 0 12px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1,
.film-title,
.section-heading h2,
.class-copy h2,
.invite-band h2 {
    font-family: "Rubik Spray Paint", Impact, fantasy;
    font-weight: 400;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 980px;
    margin-bottom: 0;
    color: var(--gold-bright);
    font-size: clamp(3.7rem, 11vw, 8.7rem);
    line-height: 0.86;
    text-shadow:
        4px 4px 0 #000,
        9px 9px 0 rgba(215, 173, 70, 0.26),
        0 0 38px rgba(255, 224, 154, 0.3);
}

.film-title {
    width: fit-content;
    margin: 10px 0 18px;
    padding: 8px 18px 10px;
    transform: rotate(-2deg);
    border: 2px solid var(--gold-bright);
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 7px 7px 0 rgba(215, 173, 70, 0.38);
    color: #ffffff;
    font-size: clamp(2.3rem, 7vw, 5.1rem);
    line-height: 0.95;
}

.hero-copy {
    max-width: 660px;
    margin-bottom: 0;
    color: #fff2d3;
    font-size: clamp(1.04rem, 2vw, 1.34rem);
    font-weight: 800;
    line-height: 1.6;
    text-shadow: 0 2px 12px #000;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: var(--radius);
    padding: 0 18px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 900;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px) rotate(-0.5deg);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #160f02;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.52), 0 18px 44px rgba(215, 173, 70, 0.25);
}

.btn-outline {
    border-color: var(--line);
    color: var(--gold-bright);
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(12px);
}

.btn-full {
    width: 100%;
}

.spray-tag {
    position: absolute;
    z-index: 1;
    display: none;
    font-family: "Rubik Spray Paint", Impact, fantasy;
    color: rgba(255, 224, 154, 0.18);
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.spray-one {
    display: block;
    right: 9vw;
    top: 24vh;
    transform: rotate(9deg);
    font-size: clamp(4rem, 11vw, 10rem);
}

.spray-two {
    display: block;
    right: 15vw;
    bottom: 18vh;
    transform: rotate(-8deg);
    font-size: clamp(3rem, 8vw, 7rem);
}

.event-strip {
    position: absolute;
    z-index: 3;
    left: clamp(18px, 5vw, 64px);
    right: clamp(18px, 5vw, 64px);
    bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(16px);
}

.event-strip span {
    min-width: 0;
    padding: 16px;
    color: #fff0ce;
    font-weight: 900;
    text-align: center;
}

.section {
    padding: 82px clamp(18px, 5vw, 64px);
}

.class-band,
.intro,
.info-wall,
.invite-band {
    background: rgba(5, 5, 5, 0.86);
    backdrop-filter: blur(4px);
}

.class-band {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 26px;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.class-copy {
    max-width: 820px;
}

.class-copy h2,
.section-heading h2,
.invite-band h2 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 0.98;
    color: var(--gold-bright);
    text-shadow: 3px 3px 0 #000;
}

.class-copy p,
.feature-card p,
.invite-band p {
    color: var(--muted);
    line-height: 1.7;
    font-weight: 700;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 15px;
    background: rgba(255, 224, 154, 0.09);
    color: var(--white);
    font-weight: 900;
}

.section-heading {
    width: min(860px, 100%);
    margin-bottom: 32px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card,
.stat-card,
.admin-panel,
.table-panel,
.login-panel,
.ticket-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.feature-card {
    min-height: 238px;
    padding: 24px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.34);
}

.feature-card:nth-child(2) {
    transform: rotate(-1deg);
}

.feature-card:nth-child(3) {
    transform: rotate(1deg);
}

.feature-card span {
    color: var(--gold-bright);
    font-family: "Rubik Spray Paint", Impact, fantasy;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin: 32px 0 10px;
    font-size: 1.42rem;
}

.info-wall {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding-top: 0;
    padding-bottom: 0;
}

.info-wall article {
    min-height: 144px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 24px;
    border-left: 1px solid var(--line);
    background: rgba(255, 224, 154, 0.07);
}

.info-wall article:last-child {
    border-right: 1px solid var(--line);
}

.info-wall strong {
    color: var(--gold-bright);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.info-wall span {
    font-size: 1.18rem;
    font-weight: 900;
}

.invite-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background:
        linear-gradient(90deg, rgba(215, 173, 70, 0.22), rgba(0, 0, 0, 0.82)),
        rgba(5, 5, 5, 0.92);
}

.invite-band > div {
    max-width: 820px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.76);
}

.modal.is-open {
    display: grid;
}

.modal-panel {
    position: relative;
    width: min(480px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0b0d;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.modal-panel h2,
.login-panel h1 {
    font-family: "Rubik Spray Paint", Impact, fantasy;
    color: var(--gold-bright);
    letter-spacing: 0;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--gold-bright);
    cursor: pointer;
}

.ticket-form,
.admin-panel,
.search-form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: #f2e7cf;
    font-weight: 900;
}

input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    padding: 0 13px;
    outline: none;
}

input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(215, 173, 70, 0.16);
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: rgba(255, 123, 123, 0.12);
    border: 1px solid rgba(255, 123, 123, 0.34);
    color: #ffd0d0;
}

.alert.success {
    background: rgba(142, 224, 164, 0.12);
    border-color: rgba(142, 224, 164, 0.32);
    color: var(--success);
}

.ticket-page,
.admin-login {
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(215, 173, 70, 0.18), transparent 34%),
        var(--black);
}

.ticket-shell {
    width: min(760px, 100%);
}

.floating-note {
    margin: 0 0 16px;
    color: var(--gold-bright);
    text-align: center;
}

.ticket-card {
    overflow: hidden;
}

.ticket-card.is-canceled {
    filter: grayscale(0.8);
    opacity: 0.72;
}

.ticket-top,
.ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(215, 173, 70, 0.14);
    border-bottom: 1px dashed var(--line);
}

.ticket-top strong {
    color: var(--gold-bright);
}

.ticket-body {
    padding: 30px 22px;
}

.ticket-body h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.ticket-theme {
    color: var(--gold-bright);
    font-weight: 900;
}

dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
}

dt {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 900;
}

dd {
    margin: 5px 0 0;
    font-weight: 900;
}

.ticket-footer {
    border-top: 1px dashed var(--line);
    border-bottom: 0;
}

.back-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--gold-bright);
}

.login-panel {
    width: min(420px, 100%);
    padding: 28px;
}

.admin-page {
    padding: 28px clamp(16px, 4vw, 44px);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 20px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 900;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2.4rem;
    color: var(--gold-bright);
}

.admin-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-panel,
.table-panel {
    padding: 20px;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.search-form {
    grid-template-columns: minmax(180px, 280px) auto;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

th {
    color: var(--gold-bright);
    font-size: 0.8rem;
    text-transform: uppercase;
}

td {
    color: #e5ddcd;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.status.active {
    color: #102015;
    background: var(--success);
}

.status.canceled {
    color: #2b0d0d;
    background: var(--danger);
}

.inline-form {
    margin: 0;
}

.mini-button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--gold-bright);
    cursor: pointer;
    font-weight: 900;
}

@media (max-width: 900px) {
    .site-header,
    .admin-header,
    .invite-band,
    .table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        min-height: 900px;
        padding-top: 150px;
    }

    body::before {
        background-position: center top;
    }

    .event-strip,
    .intro-grid,
    .dashboard-grid,
    .admin-layout,
    .class-band,
    .info-wall,
    dl {
        grid-template-columns: 1fr;
    }

    .event-strip {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 44px;
    }

    .tag-cloud {
        justify-content: flex-start;
    }

    .info-wall {
        padding-top: 0;
        padding-bottom: 0;
    }

    .info-wall article {
        border-right: 1px solid var(--line);
    }

    .search-form {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero h1 {
        font-size: clamp(3.15rem, 18vw, 5.2rem);
    }

    .film-title {
        font-size: clamp(2.25rem, 14vw, 3.5rem);
    }

    .top-nav a {
        padding-inline: 10px;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    body::before,
    body::after,
    .back-link,
    .ticket-footer .btn,
    .floating-note {
        display: none;
    }

    .ticket-card {
        border: 2px solid #000;
        color: #000;
        background: #fff;
    }
}
