body {
    font-family: 'Inter', sans-serif;
}

/* ---------------------------------
           Brand colors (easy to align later)
        ----------------------------------*/
:root {
    --qv-indigo: 63, 43, 150;
    /* #3f2b96 */
    --qv-cosmic: 108, 99, 255;
    /* #6c63ff */
    --qv-light: 245, 245, 245;
    /* #f5f5f5 */
    --qv-dark: 26, 26, 46;
    /* #1a1a2e */
    --qv-dan-blue: 5, 8, 33;
    /* #050821 */
}

.color-cosmic {
    color: rgba(var(--qv-cosmic));
}

.color-dan-blue {
    color: #373a84;
}

.color-dark {
    color: rgba(var(--qv-dark));
}

.color-indigo {
    color: rgba(var(--qv-indigo));
}

.color-light {
    color: rgba(var(---qv-light));
}

.dblue {
    color: #012970;
}

.bg-dblue {
    background-color: #012970;
}

.dprimary {
    color: #1776a1;
}

.bg-dprimary {
    background-color: #1776a1;
}

.btn-cosmic {
    background: linear-gradient(45deg,
            rgb(var(--qv-indigo)),
            rgb(var(--qv-cosmic)));
    color: #fff;
    border: none;
}

.btn-cosmic:hover,
.btn-cosmic:focus {
    color: #e4d232;
    opacity: 0.90;
    transform: translateY(-1px);
}


/* ---------------------------------
           Animations
        ----------------------------------*/
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(var(--qv-dan-blue)), rgba(var(--qv-dark)));
    color: #fff;
    text-align: center;
    padding: 0px 20px 0px 20px;
    position: relative;
    /* min-height: 55vh; */
}

.hero .logo {
    max-height: 60px;
}

.hero h1 {
    font-size: 3rem;
    margin-top: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-top: 15px;
}

/* Watermark Q */
#waterMark::before {
    content: "";
    position: absolute;

    width: 900px;
    /* control size */
    height: 900px;

    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-image: url("../ims/q-logo-transQ.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.15;
    /* replaces rgba text color */
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    #waterMark::before {
        width: 400px;
        height: 400px;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Section styling */
section {
    padding: 80px 0;
}

.section-dark {
    background-color: rgb(var(--qv-dark));
    color: #fff;
}

.section-light {
    background-color: rgb(var(--qv-light));
    color: #333;
}

.section-medium {
    background-color: rgb(var(--qv-indigo), .8);
    color: #fff;
}

/* Icon Circles */
.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--qv-indigo);
    margin: 0 auto 1rem;
    position: relative;
}

.icon-circle::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(rgba(var(--qv-indigo), 0.9) 0deg,
            rgba(var(--qv-indigo), 0.7) 120deg,
            rgba(var(--qv-cosmic), 0.7) 240deg,
            rgba(var(--qv-cosmic), 0.9) 300deg,
            rgba(var(--qv-indigo), 0.8) 360deg);
    z-index: -1;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.fade-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-up.delay-2 {
    animation-delay: 0.4s;
}

.fade-up.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#acknowledge {
    display: none;
}
html,
body {
    min-height: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.event-public {
    min-height: 100vh;
    margin: 0;
    color: #fff;
    background:
        linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .72)),
        radial-gradient(circle at top left, #334155, #020617 65%);
}

.event-details {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.event-details-panel {
    width: min(760px, 100%);
    text-align: center;
}

.event-code {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-weight: 700;
    letter-spacing: .2em;
}

.event-details h1,
.upload-panel h1 {
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    line-height: 1;
    margin: 0 0 20px;
}

.event-date,
.event-venue {
    font-size: clamp(1.05rem, 3vw, 1.5rem);
    margin-bottom: 8px;
}

.event-description {
    max-width: 62ch;
    margin: 24px auto 0;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.media-page,
.show-page {
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    color: #fff;
    background: #000;
}

.show-page {
    overflow: hidden;
}

.upload-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.upload-panel {
    width: min(620px, 100%);
    text-align: center;
}

.upload-form {
    margin-top: 28px;
}

.file-picker {
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 2px dashed #fff;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 18px;
    padding: 20px;
    transition: background .2s ease, border-color .2s ease;
}

.file-picker.dragover {
    background: rgba(255, 255, 255, .12);
    border-color: #93c5fd;
}

.file-picker input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.file-picker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    color: #111;
    background: #fff;
    border-radius: 8px;
    font-weight: 700;
}

.drop-copy {
    margin: 12px 0 0;
    color: #cbd5e1;
}

.upload-note {
    color: #cbd5e1;
}

.selected-media-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.selected-media-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 8px;
    background: #111827;
}

.selected-media-item img,
.selected-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.selected-media-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    letter-spacing: .08em;
    background: #1f2937;
}

.remove-media {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    color: #111;
    background: #fff;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.selected-media-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 6px 6px;
    color: #fff;
    font-size: .72rem;
    line-height: 1.1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}

.upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .86);
}

.upload-overlay-card {
    width: min(520px, 100%);
    color: #111;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 70px rgba(0, 0, 0, .45);
}

.clippy-image {
    display: block;
    max-width: min(300px, 75vw);
    max-height: 300px;
    margin: 0 auto 18px;
}

.clippy-image[hidden] {
    display: none;
}

.upload-progress {
    height: 28px;
    margin-bottom: 18px;
    border-radius: 999px;
    overflow: hidden;
}

.upload-file-status {
    min-height: 1.4em;
    margin-bottom: 12px;
    color: #111827;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.upload-progress .progress-bar {
    background: #111827;
}

.upload-message {
    min-height: 3.4em;
    display: grid;
    place-items: center;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 700;
}

.upload-complete-modal {
    color: #fff;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, .2);
}

.upload-complete-modal .modal-header {
    border-bottom-color: rgba(255, 255, 255, .14);
}

.show-stage {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;
}

.media-frame {
    display: grid;
    place-items: center;
    width: fit-content;
    height: fit-content;
    max-width: 100%;
    max-height: 100%;
    border: 8px solid #fff;
    background: #000;
    box-shadow: 0 0 40px rgba(255, 255, 255, .18);
    overflow: hidden;
}

.media-frame img,
.media-frame video {
    display: block;
    max-width: calc(100vw - 64px);
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.show-empty {
    color: #fff;
    font-size: clamp(2rem, 8vw, 6rem);
    text-align: center;
}
