/* Fonts are served from this site (Fredoka, Great Vibes, Montserrat, Orbitron, Playfair Display; all SIL Open Font License) so visitors' browsers never contact Google. */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/fredoka-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/great-vibes-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/montserrat-300.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/montserrat-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/montserrat-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/orbitron-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/playfair-display-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   Digital Shed Invite - invitation card, event cards, manage page, RSVP page
   ========================================================================== */

/* ---- The invitation itself (form preview, manage page, guest RSVP page) ---- */
.invite-frame { container-type: inline-size; width: 100%; max-width: 450px; margin: 0 auto; }
.invite-card {
    aspect-ratio: 2 / 3;
    width: 100%;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8cqw;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    overflow-wrap: anywhere;
}
.invite-card #preview-intro, .invite-card #preview-on { font-size: 4cqw; margin-bottom: 1cqw; opacity: .8; letter-spacing: 1px; }
.invite-card #preview-title { font-size: 10cqw; margin-bottom: 2cqw; font-weight: bold; line-height: 1.1; }
.invite-card #preview-date { font-size: 6cqw; margin-bottom: 4cqw; padding: 5px 0; }
.invite-card #preview-desc { font-size: 4.5cqw; line-height: 1.4; white-space: pre-line; }   /* keeps the line breaks typed in the description */

/* ---- Theme picker (event form) ---- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: .7rem; }
.theme-option { position: relative; cursor: pointer; margin: 0; }
.theme-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.theme-option img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.theme-option:hover img { transform: translateY(-3px); }
.theme-option input:checked + img {
    border-color: var(--ds-accent);
    box-shadow: 0 0 0 3px rgba(59, 224, 195, .35), 0 8px 18px rgba(0, 0, 0, .25);
    transform: translateY(-3px) scale(1.04);
}
.theme-option input:focus-visible + img { outline: 3px solid var(--ds-blue); outline-offset: 2px; }
.theme-name { font-size: .85rem; color: var(--ds-muted); min-height: 1.3em; }

/* ---- Events list ---- */
.ev-card { height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.ev-card:hover { transform: translateY(-5px); box-shadow: var(--ds-shadow-lg); }
.ev-banner {
    position: relative;
    height: 116px;
    background-size: cover;
    background-position: center 30%;
    background-color: #cfdceb;
}
.ev-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 41, 68, 0) 40%, rgba(10, 41, 68, .45)); }
.ev-date {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: -26px;
    min-width: 56px;
    text-align: center;
    padding: .35rem .6rem .4rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(10, 41, 68, .25);
    line-height: 1.05;
}
.ev-date .d { display: block; font-size: 1.5rem; font-weight: 700; color: var(--ds-navy); }
.ev-date .m { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-blue); }
.ev-when {
    position: absolute; z-index: 2; right: 12px; top: 12px;
    font-size: .74rem; font-weight: 700; letter-spacing: .04em;
    padding: .3rem .65rem; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--ds-navy);
}
.ev-when.soon { background: var(--ds-accent); }
.ev-body { padding: 2.1rem 1.15rem 1rem; flex: 1; }
.ev-body h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .15rem; color: var(--ds-navy); overflow-wrap: anywhere; }
.ev-body .when-long { color: var(--ds-muted); font-size: .88rem; }
.ev-foot { padding: .85rem 1.15rem 1.1rem; display: flex; gap: .5rem; }
.ev-foot .btn { flex: 1; }

.rsvp-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #e6edf4; margin: .8rem 0 .5rem; }
.rsvp-bar span { display: block; height: 100%; transition: width .4s ease; }
.rsvp-bar .yes { background: #1f9d6b; }
.rsvp-bar .no { background: #d6334a; }
.rsvp-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .8rem; color: var(--ds-muted); }
.rsvp-legend b { color: var(--ds-ink); }

.ev-empty { text-align: center; padding: 3.5rem 1.5rem; }
.ev-empty .big { font-size: 3.6rem; color: var(--ds-blue); }

/* ---- Manage page ---- */
/* (stat tiles, pills and dots live in digitalshed.css - they are shared with Monitor and Invoice) */
.ev-hero { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--ds-shadow-lg); margin-bottom: 1.25rem; color: #fff; }
.ev-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; filter: saturate(1.05); }
.ev-hero .shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 41, 68, .92) 8%, rgba(10, 41, 68, .55) 100%); }
.ev-hero .inner { position: relative; padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-end; justify-content: space-between; }
.ev-hero h1 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 700; margin: .25rem 0; overflow-wrap: anywhere; }
.ev-hero .meta { color: rgba(255, 255, 255, .85); }
.ev-hero .meta i { color: var(--ds-accent); margin-right: .35rem; }
.ev-hero .actions { display: flex; flex-wrap: wrap; gap: .5rem; }


.guest { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.avatar {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    font-weight: 700; color: #fff; font-size: 1rem;
    background: linear-gradient(135deg, var(--ds-blue), var(--ds-navy));
}
.guest .name { font-weight: 700; color: var(--ds-navy); overflow-wrap: anywhere; }
.guest .mail { font-size: .8rem; color: var(--ds-muted); overflow-wrap: anywhere; }


.guest-actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
.guest-actions form { margin: 0; }
.copy-link.copied { background: #1f9d6b; color: #fff; border-color: #1f9d6b; }

/* ---- Guest RSVP page ---- */
.rsvp-body, .rsvp-body *, .rsvp-body *::before, .rsvp-body *::after { box-sizing: border-box; }
.rsvp-body {
    min-height: 100vh;
    margin: 0;
    padding: 2rem 1rem 3rem;
    font-family: 'Montserrat', 'Sansation', sans-serif;
    color: var(--ds-ink);
    background:
        radial-gradient(1100px 520px at 15% -10%, rgba(59, 224, 195, .16), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(37, 118, 173, .45), transparent 60%),
        #0a2944;
    background-attachment: fixed;
}
.rsvp-wrap { max-width: 450px; margin: 0 auto; }
.rsvp-wrap .invite-card { animation: rsvp-rise .6s ease both; }
.rsvp-panel {
    position: relative;
    margin: -34px 14px 0;
    padding: 1.7rem 1.4rem 1.5rem;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .35);
    animation: rsvp-rise .6s .12s ease both;
}
.rsvp-panel h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .25rem; color: var(--ds-navy); overflow-wrap: anywhere; }
.rsvp-panel .ask { color: var(--ds-muted); margin-bottom: 1.2rem; }
.rsvp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.rsvp-btn {
    display: flex; flex-direction: column; align-items: center; gap: .45rem;
    padding: 1.05rem .5rem;
    border-radius: 16px;
    border: 2px solid transparent;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.rsvp-btn i { font-size: 1.9rem; }
.rsvp-btn:hover { transform: translateY(-4px); }
.rsvp-btn:active { transform: translateY(0); }
.rsvp-yes { background: linear-gradient(135deg, #22bd80, #12905f); color: #fff; box-shadow: 0 10px 24px rgba(31, 185, 125, .4); }
.rsvp-yes:hover { color: #fff; box-shadow: 0 14px 28px rgba(31, 185, 125, .5); }
.rsvp-no { background: #fff; color: #c0334a; border-color: #f2c5ce; }
.rsvp-no:hover { background: #fdecef; color: #a52840; }

.rsvp-status { display: flex; align-items: center; gap: .95rem; text-align: left; border-radius: 16px; padding: 1.05rem 1.1rem; margin-bottom: 1rem; }
.rsvp-status .icon { font-size: 2.4rem; line-height: 1; }
.rsvp-status .t { font-weight: 700; font-size: 1.1rem; }
.rsvp-status .s { font-size: .88rem; opacity: .85; }
.rsvp-status.yes { background: #e6f8ef; color: #0e6b45; }
.rsvp-status.no { background: #fdecef; color: #9c2236; }
.rsvp-change { font-size: .85rem; color: var(--ds-muted); }
.rsvp-change a { font-weight: 700; text-decoration: none; }
.rsvp-change a:hover { text-decoration: underline; }
.rsvp-foot { text-align: center; margin-top: 1.5rem; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.rsvp-foot a { color: rgba(255, 255, 255, .85); }

@keyframes rsvp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .rsvp-wrap .invite-card, .rsvp-panel { animation: none; }
    .ev-card, .rsvp-btn, .theme-option img, .ds-step { transition: none; }
}
