/* ------------------------------------------------------------
   HB Wishlist - employee/mobile-first styles
   ------------------------------------------------------------ */

@font-face {
    font-family: 'Robelly';
    src: url('Robelly-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #fff8f2;
    --bg-card: #ffffff;
    --ink: #1f1a17;
    --ink-soft: #6b6057;
    --accent: #d94a27;
    --accent-ink: #ffffff;
    --accent-soft: #ffe7df;
    --border: #ece4dc;
    --ok: #1a7f37;
    --error: #b42318;
    --radius: 14px;
    --shadow: 0 4px 16px rgba(20, 10, 0, 0.06);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-brand: 'Robelly', 'Georgia', serif;
}

.brand-font {
    font-family: var(--font-brand);
    font-weight: normal;
    letter-spacing: .01em;
}

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

/* Font Awesome icons: consistent spacing from adjacent text.  */
.fa-solid, .fa-regular, .fa-brands { margin-right: 0.5em; }
.btn .fa-solid, .btn .fa-regular { margin-right: 0; margin-left: 0; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-bottom: 40px;
}

.app {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 16px;
}

h1 { font-size: 1.7rem; margin: 0 0 8px; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0 0 14px; }
p  { margin: 0 0 12px; }
.muted { color: var(--ink-soft); }
.sr-only {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: 600 1rem var(--font-sans);
    cursor: pointer;
    text-decoration: none;
    min-height: 48px;
    transition: transform .05s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}
.btn-primary:hover { background: #b73d1e; }
.btn-ghost {
    background: transparent;
    color: var(--error);
    border-color: transparent;
    padding: 8px 12px;
    min-height: 36px;
    font-weight: 500;
}
.btn-ghost:hover { background: #fff0ee; }
.btn-block { width: 100%; }

/* --- Flash messages --- */
.flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: .95rem;
}
.flash-ok    { background: #e7f6ec; color: var(--ok); }
.flash-error { background: #fdecea; color: var(--error); }

/* --- PIN card --- */
.pin-card {
    background: var(--bg-card);
    padding: 28px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 8vh;
    text-align: center;
}
.pin-card h1 {
    font-family: var(--font-brand);
    font-weight: normal;
    font-size: 1.8rem;
    letter-spacing: .02em;
    margin-bottom: 8px;
}
.pin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.pin-logo img {
    width: 140px;
    height: auto;
    max-width: 60%;
    display: block;
}
.pin-input {
    width: 100%;
    max-width: 220px;
    margin: 10px auto 18px;
    display: block;
    text-align: center;
    font: 700 2.2rem var(--font-sans);
    letter-spacing: 0.5em;
    padding: 12px 8px 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}
.pin-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- Wishlist hero --- */
.wl-hero {
    background: linear-gradient(135deg, #ff9b7d 0%, #d94a27 60%, #b73d1e 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(183, 61, 30, 0.22);
    overflow: hidden;
}

/* Top strip: brand + logout, subtle divider from the greeting */
.wl-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: .88rem;
}
.wl-brand {
    font-family: var(--font-brand);
    font-weight: normal;
    font-size: 1.15rem;
    letter-spacing: .04em;
    text-transform: none;
    color: #fff;
}
.wl-logout {
    color: #fff;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    font-size: .82rem;
    transition: background-color .15s ease;
}
.wl-logout:hover { background: rgba(255, 255, 255, 0.15); }

/* Greeting block: name + birthday chip */
.wl-hero-greeting {
    padding: 22px 20px 18px;
}
.wl-hero h1 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 1.85rem;
    letter-spacing: .01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.wl-hero-bday {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #b73d1e;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.wl-hero-bday .fa-solid { color: #d94a27; margin-right: 0; font-size: 1rem; }
.wl-hero-bday strong { color: #b73d1e; font-weight: 700; }

/* Info rows: two inset cards inside the hero */
.wl-hero-info {
    display: grid;
    gap: 10px;
    padding: 0 16px 18px;
}
.wl-info-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    backdrop-filter: blur(2px);
}
.wl-info-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #d94a27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}
.wl-info-icon .fa-solid { margin-right: 0; }
.wl-info-body { flex: 1; min-width: 0; line-height: 1.45; }
.wl-info-body strong {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
}
.wl-info-body small {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-size: .84rem;
    margin-top: 3px;
}

/* --- Cards --- */
.wl-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 18px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

/* --- Add form --- */
.wl-form label {
    display: block;
    margin-bottom: 12px;
}
.wl-form label > span {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px;
    color: var(--ink);
}
.wl-form input[type=text],
.wl-form input[type=url],
.wl-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    color: var(--ink);
    min-height: 48px;
}
.wl-form textarea { min-height: 72px; resize: vertical; }
.wl-form input:focus,
.wl-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- Items list --- */
.wl-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wl-item {
    border-top: 1px solid var(--border);
    padding: 14px 0;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}
.wl-item:first-child { border-top: 0; padding-top: 4px; }
.wl-item-main { flex: 1; min-width: 0; }
.wl-item-title {
    font-weight: 600;
    word-break: break-word;
}
.wl-item-note {
    color: var(--ink-soft);
    font-size: .92rem;
    margin-top: 4px;
    word-break: break-word;
}
.wl-item-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    word-break: break-all;
}
.wl-item-link:hover { text-decoration: underline; }
.wl-item-del { margin: 0; }
