/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f0f2f5;
    color: #1a1a2e;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.hide {
    display: none !important;
}

/* ===== Main Container ===== */
.container {
    max-width: 900px;
    margin: 24px auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 0;
    overflow: hidden;
}

/* ===== Header Image ===== */
.header-image {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
}

.header-image > div {
    position: relative;
    display: inline-block;
    width: 100%;
}

.header-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* ===== Event Name ===== */
.event-name {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    color: #197BFF;
    font-weight: 800;
    text-align: center;
    margin: 0;
    padding: 28px 32px 8px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

a.event-name {
    display: block;
    text-decoration: none;
}

a.event-name:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* ===== Content Area ===== */
.content {
    padding: 8px 40px 40px;
}

/* ===== Section Base ===== */
.section {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.section img {
    max-width: 100%;
    border-radius: 8px;
}

/* ===== Floating Button ===== */
.floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #197BFF 0%, #0057d9 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(25, 123, 255, 0.35);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(25, 123, 255, 0.45);
}

.floating-btn.visible {
    display: block;
    opacity: 1;
}

/* ===== Report Event Link ===== */
.report-event-link {
    text-align: right;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.report-event-link a {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.report-event-link a:hover {
    color: #ef4444;
}

.report-event-link i {
    margin-right: 4px;
}

/* ===== Grayish Buttons ===== */
.btn-grayish {
    background-color: transparent;
    color: #6b7280;
    border: 1.5px solid #d1d5db;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 50px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.btn-grayish:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer {
    background-color: transparent;
    padding: 32px 0 48px;
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: auto;
}

.footer .container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.footer .footer-text {
    color: #9ca3af;
    font-weight: 500;
}

.footer .footer-links {
    margin-top: 8px;
}

.footer .footer-links a {
    color: #6b7280;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer .footer-links a:hover {
    color: #197BFF;
}

/* ===== Mirror Effects ===== */
.mirror {
    position: absolute;
    pointer-events: none;
    opacity: 0.99;
    background: var(--mirror-url) no-repeat;
    background-size: cover;
}

@media (min-width: 768px) {
    .mirror.left {
        top: 0;
        left: calc(-1 * var(--fading-px));
        width: var(--fading-px);
        height: 100%;
        background-position: left center;
        transform: scaleX(-1);
        -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to right, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
    }
    .mirror.right {
        top: 0;
        right: calc(-1 * var(--fading-px));
        width: var(--fading-px);
        height: 100%;
        background-position: right center;
        transform: scaleX(-1);
        -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to left, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
    }
}

@media (max-width: 768px) {
    .mirror.top {
        top: calc(-1 * var(--fading-px));
        left: 0;
        width: 100%;
        height: var(--fading-px);
        background-position: top center;
        transform: scaleY(-1);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
    }
    .mirror.bottom {
        bottom: calc(-1 * var(--fading-bottom-px));
        left: 0;
        width: 100%;
        height: var(--fading-bottom-px);
        background-position: bottom center;
        transform: scaleY(-1);
        -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to top, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
    }
    .header-image {
        margin-bottom: var(--fading-bottom-px);
    }
}

/* ===== iframes ===== */
.container iframe {
    width: 100%;
    max-width: 100%;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .content {
        padding: 8px 20px 32px;
    }

    .event-name {
        font-size: 1.5rem;
        padding: 20px 20px 4px;
    }

    .form-control, .btn {
        width: 100%;
    }

    .btn-min {
        width: min-content;
    }

    .floating-btn {
        bottom: 16px;
        right: 16px;
        padding: 12px 28px;
    }
}
