:root {
    --santa-red: #c62828;
    --santa-red-dark: #8e1c1c;
    --santa-green: #1f6f43;
    --santa-green-dark: #0f4a2b;
    --santa-gold: #e0b94d;
    --santa-cream: #fdf8ef;
    --santa-ink: #2a2a2a;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--santa-ink);
}

body {
    background: radial-gradient(1200px 800px at 15% -10%, #1c3f63 0%, transparent 60%),
                linear-gradient(160deg, #0b2a4a 0%, #0f3d2e 55%, #0a2a20 100%);
    background-attachment: fixed;
}

h1, h2, h3 {
    font-family: "Fredoka", "Nunito", sans-serif;
    font-weight: 600;
    color: var(--santa-green-dark);
    margin: 0 0 0.4rem;
}

a {
    color: var(--santa-green);
}

.container {
    width: 100%;
    max-width: 760px;
}

.panel {
    background: var(--santa-cream);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.panel + .panel {
    margin-top: 0;
}

.subtitle {
    color: #5a5a5a;
    margin-bottom: 1.25rem;
}

.field-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.input-festive, select.input-festive {
    flex: 1;
    min-width: 10rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 2px solid #e2dcce;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--santa-ink);
}

.input-festive:focus {
    outline: none;
    border-color: var(--santa-green);
    box-shadow: 0 0 0 3px rgba(31, 111, 67, 0.2);
}

button {
    font-family: inherit;
    cursor: pointer;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:active {
    transform: translateY(1px);
}

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

.btn-primary {
    background: linear-gradient(180deg, var(--santa-red) 0%, var(--santa-red-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(198, 40, 40, 0.35);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 8px 18px rgba(198, 40, 40, 0.45);
}

.btn-secondary {
    background: #fff;
    color: var(--santa-green-dark);
    border: 2px solid var(--santa-green);
}

.btn-ghost {
    background: transparent;
    color: var(--santa-red);
    padding: 0.4rem 0.6rem;
}

.btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-begin {
    font-size: 1.15rem;
    padding: 0.85rem 2rem;
    border-radius: 14px;
    width: 100%;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(180deg, #2a7a4c 0%, var(--santa-green-dark) 100%);
    color: #fff;
    padding: 0.4rem 0.5rem 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.chip button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    line-height: 1;
    font-size: 0.85rem;
}

.chip button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.exclusion-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exclusion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e2dcce;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
}

.exclusion-pair {
    font-weight: 700;
    color: var(--santa-green-dark);
}

.empty-hint {
    color: #8a8a8a;
    font-style: italic;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-error {
    background: #fdecea;
    color: var(--santa-red-dark);
    border: 1px solid #f5c2c0;
}

.alert-success {
    background: #e9f6ee;
    color: var(--santa-green-dark);
    border: 1px solid #bfe6cc;
}

.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e2dcce;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.5rem;
}

.link-name {
    font-weight: 700;
    color: var(--santa-green-dark);
    min-width: 7rem;
}

.link-url {
    flex: 1;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.85rem;
    color: #555;
    overflow-wrap: anywhere;
}

.wishlist {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid #e2dcce;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
}

.wishlist-item .gift-icon {
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
    color: var(--santa-red);
}

.waiting-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: #8a8a8a;
    text-align: center;
}

.waiting-box svg {
    width: 3rem;
    height: 3rem;
    opacity: 0.6;
}

#blazor-error-ui .reload {
    color: var(--santa-green-dark);
    font-weight: 700;
}
