/* ─── Customer Dashboard (Moje Pozivnice) ─────────────────────────────────── */
.webpoz-dashboard { padding: 10px 0; }
.webpoz-dashboard h2 { font-size: 1.4rem; margin-bottom: 24px; }

.webpoz-empty-state { text-align: center; padding: 48px 20px; }
.webpoz-empty-state p { color: #666; margin-bottom: 20px; font-size: 1.05rem; }

/* Lista pozivnica */
.webpoz-inv-list { display: flex; flex-direction: column; gap: 20px; }

.webpoz-inv-card {
    border: 1px solid #e5e1db; border-radius: 14px; overflow: hidden;
    background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.webpoz-inv-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.webpoz-inv-card__header {
    display: flex; gap: 16px; align-items: flex-start; padding: 20px;
    border-bottom: 1px solid #f0ede8;
}
.webpoz-inv-card__thumb {
    width: 80px; height: 80px; object-fit: cover; border-radius: 8px;
    flex-shrink: 0; border: 1px solid #eee;
}
.webpoz-inv-card__meta { flex: 1; }
.webpoz-inv-card__title { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; }
.webpoz-inv-card__date { margin: 0 0 8px; color: #777; font-size: .88rem; }

/* Status badges */
.webpoz-status {
    display: inline-block; padding: 3px 12px; border-radius: 20px;
    font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.webpoz-status--active  { background: #edfaee; color: #155724; }
.webpoz-status--pending { background: #fff3cd; color: #664d03; }
.webpoz-status--draft   { background: #f0f0f1; color: #50575e; }
.webpoz-status--expired { background: #fde8e8; color: #842029; }

/* Statistike na kartici */
.webpoz-inv-card__stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 16px 20px; background: #faf9f7; gap: 1px;
}
.webpoz-stat { text-align: center; padding: 8px; }
.webpoz-stat__num   { display: block; font-size: 1.6rem; font-weight: 800; color: #1e1e1e; }
.webpoz-stat__label { display: block; font-size: .72rem; color: #888; margin-top: 2px; }
.webpoz-stat--attending .webpoz-stat__num { color: #00a32a; }
.webpoz-stat--declined  .webpoz-stat__num { color: #d63638; }

/* Akcije */
.webpoz-inv-card__actions {
    display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; align-items: center;
}
.webpoz-pending-note { margin: 0; color: #664d03; font-size: .88rem; font-style: italic; }

/* Dugmad */
.webpoz-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px; font-size: .88rem; font-weight: 600;
    cursor: pointer; border: 2px solid transparent; text-decoration: none;
    transition: all .15s; line-height: 1;
}
.webpoz-btn-primary   { background: #2271b1; color: #fff; border-color: #2271b1; }
.webpoz-btn-primary:hover { background: #135e96; color: #fff; }
.webpoz-btn-secondary { background: #fff; color: #2271b1; border-color: #2271b1; }
.webpoz-btn-secondary:hover { background: #f0f6fc; }
.webpoz-btn-outline   { background: #fff; color: #555; border-color: #ccc; }
.webpoz-btn-outline:hover { background: #f5f3ef; border-color: #aaa; }
.webpoz-btn-ghost     { background: transparent; color: #777; border-color: transparent; padding: 9px 10px; }
.webpoz-btn-ghost:hover { color: #333; background: #f5f3ef; }

/* RSVP panel */
.webpoz-rsvp-panel {
    padding: 20px; background: #faf9f7; border-top: 1px solid #f0ede8;
}
.webpoz-rsvp-panel h4 { margin: 0 0 14px; font-size: .95rem; }
.webpoz-rsvp-loading { color: #999; font-size: .88rem; }

.webpoz-rsvp-summary {
    display: flex; gap: 20px; margin-bottom: 14px; flex-wrap: wrap;
}
.webpoz-rsvp-summary__item { font-size: .88rem; font-weight: 600; }
.webpoz-rsvp-summary__item--yes { color: #00a32a; }
.webpoz-rsvp-summary__item--no  { color: #d63638; }

.webpoz-rsvp-rows { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.webpoz-rsvp-row {
    display: flex; align-items: flex-start; gap: 10px; padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.webpoz-rsvp-row:last-child { border-bottom: none; }
.webpoz-rsvp-row__icon { font-size: .88rem; font-weight: 800; flex-shrink: 0; padding-top: 1px; }
.webpoz-rsvp-row--yes .webpoz-rsvp-row__icon { color: #00a32a; }
.webpoz-rsvp-row--no  .webpoz-rsvp-row__icon { color: #d63638; }
.webpoz-rsvp-row__info strong { display: block; font-size: .88rem; }
.webpoz-rsvp-row__info small  { font-size: .78rem; color: #888; }
.webpoz-rsvp-row__info em     { display: block; font-size: .82rem; color: #666; margin-top: 2px; }

/* Share modal */
.webpoz-share-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.55);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.webpoz-share-modal__inner {
    background: #fff; border-radius: 16px; padding: 36px;
    width: min(480px, 92vw); position: relative;
}
.webpoz-share-modal__close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #888;
    line-height: 1; padding: 0;
}
.webpoz-share-modal__inner h3 { margin: 0 0 6px; font-size: 1.2rem; }
.webpoz-share-modal__couple { margin: 0 0 24px; color: #777; font-size: .9rem; }

.webpoz-share-buttons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px;
}
.webpoz-share-buttons a,
.webpoz-share-buttons button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 10px; font-size: .9rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; transition: opacity .15s;
}
.webpoz-share-buttons a:hover,
.webpoz-share-buttons button:hover { opacity: .85; }
.webpoz-share-btn-wa     { background: #25D366; color: #fff; }
.webpoz-share-btn-viber  { background: #7360f2; color: #fff; }
.webpoz-share-btn-fb     { background: #1877F2; color: #fff; }
.webpoz-share-btn-copy   { background: #f0ece4; color: #333; }

.webpoz-share-url-box { display: flex; align-items: center; gap: 8px; }
.webpoz-share-url-input {
    flex: 1; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px;
    font-size: .82rem; color: #888; background: #fafaf8;
}
.webpoz-copy-confirm { font-size: .8rem; color: #00a32a; font-weight: 600; white-space: nowrap; }

@media (max-width: 480px) {
    .webpoz-inv-card__actions { gap: 8px; }
    .webpoz-share-buttons { grid-template-columns: 1fr; }
    .webpoz-inv-card__stats { grid-template-columns: repeat(3, 1fr); }
}
