/* Pink/black theme. Black is still a placeholder shade — swap it if you send exact hex codes for it too. */
:root {
    --color-black: #121014;
    --color-black-soft: #1d1a20;
    --color-pink: #F02A8A;
    --color-pink-hover: #EA2A84;
    --color-pink-highlight: #F03090;
    --color-text: #f5eef2;
    --color-text-muted: #cbb9c6;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, var(--color-black-soft), var(--color-black) 70%);
    color: var(--color-text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

h1, h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--color-pink-highlight);
    margin-top: 0;
}

a {
    color: var(--color-pink);
}

h1:focus {
    outline: none;
}

.validation-message {
    color: var(--color-pink);
    font-size: 0.9rem;
}

.blazor-error-boundary {
    background: var(--color-black-soft);
    border: 1px solid var(--color-pink-hover);
    padding: 1rem;
    color: var(--color-text);
    border-radius: var(--radius);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    background: var(--color-pink-hover);
    color: white;
    padding: 0.75rem 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
}

/* Public RSVP page */
.rsvp-page {
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 4rem;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-black) url("/images/background-a.webp") center/cover no-repeat;
    filter: brightness(1.35) saturate(1.1);
    z-index: 0;
}

.hero-figures {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1300px;
}

.hero-figure {
    max-width: min(46vw, 560px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

@media (max-width: 640px) {
    .hero-figures {
        flex-direction: column;
        gap: 1.25rem;
    }

    .hero-figure {
        max-width: min(78vw, 480px);
    }
}

.scroll-hint {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    color: var(--color-pink-highlight);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.pool-section {
    min-height: 100vh;
    background: url("/images/pool-a.webp") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.pool-banner {
    display: none;
}

@media (max-width: 640px) {
    .pool-section {
        min-height: auto;
        background: none;
        background-color: var(--color-black);
        padding: 0 0 3rem;
    }

    .pool-banner {
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: 1.5rem;
    }
}

.rsvp-card, .admin-card {
    background: var(--color-black-soft);
    border: 1px solid var(--color-pink-hover);
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(240, 42, 138, 0.18);
    padding: 2rem;
    max-width: 560px;
    width: 100%;
}

.admin-login-card {
    max-width: 360px;
}

.event-meta {
    color: var(--color-pink-highlight);
    margin: 0.25rem 0;
}

.event-description {
    color: var(--color-text-muted);
}

.rsvp-card hr {
    border: none;
    border-top: 1px solid var(--color-pink-hover);
    margin: 1.5rem 0;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--color-pink-highlight);
    font-size: 0.9rem;
}

.field input, .field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--color-pink-hover);
    background: var(--color-black);
    color: var(--color-text);
    font-size: 1rem;
}

.field-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.field-row input {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--color-pink-hover);
    background: var(--color-black);
    color: var(--color-text);
}

.attend-toggle {
    display: flex;
    gap: 0.75rem;
}

.attend-toggle button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--color-pink-hover);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    font-size: 0.95rem;
}

.attend-toggle button.selected.yes {
    background: var(--color-pink);
    color: var(--color-black);
    border-color: var(--color-pink);
}

.attend-toggle button.selected.no {
    background: var(--color-pink-hover);
    color: var(--color-text);
    border-color: var(--color-pink-hover);
}

.submit-button {
    background: var(--color-pink);
    color: var(--color-black);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    background: var(--color-pink-hover);
}

.submit-button:disabled, .link-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.saved-hint {
    margin-left: 0.75rem;
    color: var(--color-pink-highlight);
}

.confirmation {
    text-align: center;
}

.link-button {
    background: none;
    border: none;
    color: var(--color-pink);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.link-button.danger {
    color: #ff6b6b;
}

.error-text {
    color: #ff6b6b;
}

/* Admin */
.admin-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.admin-card {
    max-width: none;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-tile {
    background: var(--color-black-soft);
    border: 1px solid var(--color-pink-hover);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-pink);
}

.stat-label {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.invitee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.invitee-table th, .invitee-table td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--color-pink-hover);
}

.invite-link {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    word-break: break-all;
}

.badge {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.badge.yes {
    background: var(--color-pink);
    color: var(--color-black);
}

.badge.no {
    background: var(--color-black);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.badge.pending {
    background: var(--color-black);
    border: 1px solid var(--color-pink-hover);
    color: var(--color-text-muted);
}
