@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --bg: #f2ede6;
    --bg-soft: #f8f5f0;
    --paper: #fffdf9;
    --ink: #1f1a17;
    --muted: #6a5f56;
    --brand: #8c1f28;
    --brand-strong: #5f141b;
    --accent: #d89b3d;
    --line: #e3d6c6;
    --shadow: 0 18px 45px rgba(36, 24, 11, 0.12);
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -5%, rgba(216, 155, 61, 0.22), transparent 45%),
        radial-gradient(circle at 86% 3%, rgba(140, 31, 40, 0.16), transparent 40%),
        linear-gradient(180deg, #f7f3ec 0%, #f0e8dd 58%, #eee4d8 100%);
    min-height: 100vh;
    padding-top: 90px;
}

a,
a:visited,
a:hover,
a:active {
    color: inherit;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--brand);
}

main,
section {
    position: relative;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    color: #fff;
    background: linear-gradient(110deg, rgba(37, 16, 20, 0.92), rgba(91, 26, 35, 0.88));
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 34px rgba(26, 14, 8, 0.32);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.logo {
    float: none;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(1rem, 2vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.logo img {
    width: 36px;
    height: 36px;
    display: block;
}

nav ul {
    float: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
}

nav ul li {
    display: inline-flex;
    margin: 0;
}

nav ul li a {
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.94rem;
    line-height: 1.2;
    text-decoration: none;
}

nav ul li a {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

nav ul li a:hover {
    color: #fff;
    transform: translateY(-1px);
    background: rgba(216, 155, 61, 0.34);
    border-color: rgba(255, 255, 255, 0.36);
}

nav ul li {
    color: rgba(255, 255, 255, 0.9);
}

.logout-icon {
    position: relative;
    min-width: 2.2rem;
    justify-content: center;
}

.logout-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #15090b;
    color: #fff;
    padding: 0.24rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.logout-icon:hover::after,
.logout-icon:focus::after {
    opacity: 1;
}

.hero {
    min-height: calc(100vh - 90px);
    background-image:
        linear-gradient(110deg, rgba(17, 10, 6, 0.8), rgba(89, 24, 31, 0.62)),
        url(assets/graphics/bck.jpeg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.4rem 2rem;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    animation: fade-up 0.7s ease both;
}

.hero h1 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(2.05rem, 5vw, 3.7rem);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    line-height: 1.16;
}

.hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.38rem);
    margin-bottom: 1.8rem;
}

.about,
.performances,
.contact {
    padding: clamp(3rem, 5vw, 4.7rem) 0;
}

.about,
.contact {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 238, 0.84));
}

.performances {
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.7), rgba(252, 247, 239, 0.95));
}

.about .container,
.performances .container,
.contact .container {
    padding: 1.9rem;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 244, 0.96));
    border: 1px solid rgba(232, 218, 197, 0.75);
    box-shadow: var(--shadow);
}

h1,
h2,
h3,
h4 {
    line-height: 1.26;
}

h2 {
    text-align: center;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    color: var(--brand-strong);
    margin-bottom: 1.8rem;
}

h3 {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--brand);
    margin-bottom: 0.52rem;
}

p {
    margin-bottom: 0.8rem;
}

.show,
.blog-entry-card,
.reservation-item,
.reservation-details,
.reservation-view,
.selected-act {
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(70, 42, 24, 0.08);
}

.show {
    max-width: 900px;
    margin: 0 auto 1.2rem;
    padding: 1.3rem 1.35rem;
}

.show:last-child {
    margin-bottom: 0;
}

.selected-act {
    margin: 0.75rem 0 1.5rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--accent);
    color: #4f2417;
    font-weight: 600;
}

.reservation-info-paid {
    background: #edf7ff;
    border-color: #b9d9f5;
    color: #1f4f73;
}

.reservation-info-unpaid {
    background: #ffeceb;
    border-color: #f1b6b4;
    color: #7d2323;
}

.reservation-view {
    margin: 0 0 1.5rem;
    max-width: 560px;
    display: grid;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
}

.reservation-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.reservation-center select {
    margin: 0 auto;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-header-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.reservation-details {
    font-size: 0.95rem;
    color: #402e23;
    padding: 0.6rem 0.8rem;
}

.admin-panel {
    margin-top: 1.2rem;
    text-align: left;
}

.filter-panel {
    width: 100%;
}

.admin-panel .form-row {
    margin-bottom: 1rem;
}

.admin-panel label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #4d3526;
}

.form-hint {
    margin-top: 0.4rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.admin-panel input[type="text"],
.admin-panel input[type="email"],
.admin-panel input[type="password"],
.admin-panel input[type="number"],
.admin-panel input[type="date"],
.admin-panel input[type="time"],
.admin-panel input[type="url"],
.admin-panel select,
.admin-panel textarea {
    width: 100%;
    max-width: 520px;
}

.inline-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.42rem 0.74rem;
    font-size: 0.85rem;
}

.status,
.admin-panel .status {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid;
}

.status.error,
.admin-panel .status.error {
    background: #ffefef;
    border-color: #f1b1b1;
    color: #7a1c1c;
}

.status.success,
.admin-panel .status.success {
    background: #ecf9f1;
    border-color: #9fd3b3;
    color: #145632;
}

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

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reservation-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.reservation-item {
    padding: 0.85rem 1rem;
}

.reservation-item.is-deleted {
    opacity: 0.65;
    border-style: dashed;
}

.payment-status-paid {
    color: #1f7a1f;
    font-weight: 700;
}

.payment-status-unpaid {
    color: #b42318;
    font-weight: 700;
}

.payment-status-free {
    color: #175cd3;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(43, 27, 14, 0.07);
}

.reservation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    background: #fff;
}

.reservation-table th,
.reservation-table td {
    border: 1px solid #eadfce;
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.reservation-table thead {
    background: #f8f1e5;
    color: #573926;
}

.reservation-table tr:nth-child(even) {
    background: #fffcf7;
}

.reservation-table tr.is-deleted {
    opacity: 0.6;
    background: #fbfbfb;
}

.reservation-actions {
    margin-top: 0.5rem;
}

.remarks-form,
.remarks-block {
    display: grid;
    gap: 0.5rem;
    margin: 0.25rem 0 0.75rem;
}

.remarks-form textarea {
    width: 100%;
    min-height: 60px;
}

.remarks-toggle {
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.admin-portal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.blog-list {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
    text-align: left;
}

.blog-entry-card {
    padding: 1.1rem 1.25rem;
}

.blog-entry-card h3 {
    margin-bottom: 0.35rem;
    color: #4d1a1f;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.blog-text {
    margin-bottom: 0.95rem;
}

.blog-text h1,
.blog-text h2,
.blog-text h3 {
    margin: 0.5rem 0;
    text-align: left;
}

.blog-text ul,
.blog-text ol {
    margin: 0.45rem 0 0.7rem 1.2rem;
}

.blog-text p {
    margin-bottom: 0.55rem;
}

.blog-text-center {
    text-align: center;
}

.blog-inline-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0.65rem auto;
    border-radius: 8px;
    border: 1px solid #d8ccb9;
}

.blog-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.blog-images img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d8ccb9;
}

.blog-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #d8ccb9;
    margin-right: 0.25rem;
}

form {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

form input,
form textarea,
form select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="url"],
textarea,
select {
    padding: 0.78rem 0.9rem;
    margin-bottom: 0.9rem;
    border: 1px solid #d8c7b1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    background: #fffdfa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form textarea,
textarea {
    min-height: 130px;
}

form input:focus,
form textarea:focus,
form select:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #c37f33;
    box-shadow: 0 0 0 3px rgba(216, 155, 61, 0.2);
}

button,
.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.btn,
button[type="submit"],
input[type="submit"] {
    width: fit-content;
    padding: 0.82rem 1.45rem;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(130deg, #9f2430, #741821);
    box-shadow: 0 10px 22px rgba(95, 20, 27, 0.27);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(95, 20, 27, 0.35);
    filter: saturate(1.08);
}

.contact-info {
    margin-top: 2rem;
    text-align: left;
}

.mytickets-form {
    max-width: 920px;
    margin-top: 1.2rem;
    padding: 1rem 1.15rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(175deg, #fffdf9, #fdf6ec);
    box-shadow: 0 10px 24px rgba(55, 34, 18, 0.08);
}

.mytickets-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
}

.mytickets-row .mytickets-email-row {
    grid-column: 2;
}

.mytickets-row .mytickets-code-row {
    grid-column: 1;
    justify-self: start;
}

.mytickets-form .form-row {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mytickets-form label {
    font-weight: 600;
    color: #4d3526;
}

.mytickets-form input {
    margin-bottom: 0;
}

.mytickets-form #reservation_code {
    width: 18ch;
    min-width: 18ch;
    text-align: center;
    letter-spacing: 0.08em;
}

.mytickets-form .btn {
    margin-top: 0.95rem;
}

.mytickets-reservation-list {
    max-width: 920px;
    margin-top: 1.1rem;
    display: grid;
    gap: 0.75rem;
}

.mytickets-reservation-list h3 {
    margin: 0;
    color: #4d1a1f;
}

.mytickets-reservation-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffdfa;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(50, 31, 17, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mytickets-reservation-item:hover {
    transform: translateY(-2px);
    border-color: #d6a15b;
    box-shadow: 0 10px 20px rgba(50, 31, 17, 0.14);
}

.mytickets-reservation-title {
    font-weight: 700;
    color: #4d1a1f;
}

.mytickets-payment {
    font-weight: 600;
}

.mytickets-payment.is-paid {
    color: #1e6b3a;
}

.mytickets-payment.is-unpaid {
    color: #7d2323;
}

.seat-grid-wrap {
    overflow-x: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    scrollbar-color: #9f2430 rgba(236, 226, 212, 0.6);
}

.seat-grid {
    display: grid;
    gap: 6px;
    justify-content: center;
    align-items: center;
    width: max-content;
}

.seat,
.desk,
.stage,
.cell {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell {
    background: transparent;
}

.seat {
    border: 1px solid #1f6f3f;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
}

.seat:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.seat-available {
    background-color: #2ecc71;
    color: #0f2e1c;
}

.seat-marked {
    background-color: #f1c40f;
    color: #5c4a05;
}

.seat-booked {
    background-color: #9aa0a6;
    color: #2c2f33;
}

.desk {
    background-color: #d2b48c;
    color: #4a3620;
}

.stage {
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.64rem;
}

.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2rem;
    justify-content: center;
    text-align: center;
}

.seat-grid.read-only .seat {
    pointer-events: none;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.legend-swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-block;
}

.seat.seat-booked {
    cursor: not-allowed;
}

.seat-highlight {
    outline: 3px solid #ffb100;
    outline-offset: 1px;
}

footer {
    background: linear-gradient(110deg, #2a1217, #511620);
    color: #fff7ec;
    padding: 2.1rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer a:hover {
    color: #ffd89f;
}

.social-media {
    margin-top: 1rem;
}

.social-media a {
    color: #fff;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    text-decoration: none;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 930px) {
    body {
        padding-top: 108px;
    }

    .hero {
        min-height: calc(100vh - 108px);
    }

    header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.8rem 0;
    }

    .logo {
        text-align: center;
    }

    .logo a {
        justify-content: center;
    }

    nav ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1.2rem 1rem;
    }

    .about .container,
    .performances .container,
    .contact .container {
        padding: 1.25rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .hero p {
        font-size: 1.1rem;
    }

    nav ul li a {
        padding: 0.3rem 0.65rem;
        font-size: 0.87rem;
    }

    .mytickets-row {
        grid-template-columns: auto 1fr;
    }

    .seat-grid-wrap {
        justify-content: flex-start;
    }

    .seat-grid {
        justify-content: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
