/* ==========================================================================
   RSVP status alert - shared by the parade page (event_detail.html) and the
   band event page (committee/meeting_detail.html).

   Markup:
     <div class="rsvp-alert confirmed|maybe|declined|pending">
       <div class="rsvp-icon"><i class="fas fa-check"></i></div>
       <div class="rsvp-text">You're confirmed. <a href="...">Change RSVP</a></div>
     </div>
   ========================================================================== */

.rsvp-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-radius: 14px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    animation: rsvpAlertIn 0.5s ease 0.3s forwards;
    opacity: 0;
}

.rsvp-alert.confirmed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.rsvp-alert.maybe {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.rsvp-alert.declined {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.rsvp-alert.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.rsvp-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.rsvp-alert.confirmed .rsvp-icon {
    background: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.rsvp-alert.maybe .rsvp-icon {
    background: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.rsvp-alert.declined .rsvp-icon {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.rsvp-alert.pending .rsvp-icon {
    background: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.rsvp-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.rsvp-text a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.rsvp-text a:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


@keyframes rsvpAlertIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light mode: Black text on RSVP banners */
[data-theme="light"] .rsvp-alert.confirmed,
[data-theme="light"] .rsvp-alert.maybe,
[data-theme="light"] .rsvp-alert.declined {
    color: #1a1a1a;
}

[data-theme="light"] .rsvp-alert.confirmed .rsvp-text,
[data-theme="light"] .rsvp-alert.maybe .rsvp-text,
[data-theme="light"] .rsvp-alert.declined .rsvp-text {
    color: #1a1a1a;
}

[data-theme="light"] .rsvp-alert.confirmed .rsvp-icon,
[data-theme="light"] .rsvp-alert.maybe .rsvp-icon,
[data-theme="light"] .rsvp-alert.declined .rsvp-icon {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}
