/* =============================================
   Event Card - Front-end (public / welcome)
   ============================================= */

.event-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    position: relative;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
    color: inherit;
    text-decoration: none;
}

.event-card.featured {
    border-color: #d59b15;
    box-shadow: 0 8px 32px rgba(215, 154, 18, 0.18), 0 18px 45px rgba(0, 0, 0, 0.12);
}

.event-card.featured:hover {
    box-shadow: 0 12px 44px rgba(215, 154, 18, 0.28), 0 24px 56px rgba(0, 0, 0, 0.18);
}

.event-card.event-past {
    opacity: 0.80;
}

.event-card.event-past:hover {
    opacity: 1;
}

/* --- Hero --- */
.event-card .hero {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-card .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-card .hero-placeholder {
    width: 100%;
    height: 100%;
    background: #dce8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: -10px;
    bottom: 0;
    height: 90px;
    background: linear-gradient(transparent, rgba(6, 55, 108, 0.9));
    pointer-events: none;
}

.event-card .badge-organizer {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 13px;
    background: rgba(8, 61, 125, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

/* --- Header --- */
.event-card .header {
    background: linear-gradient(135deg, #0a4b83, #0f6eab);
    color: #fff;
    padding: 10px 28px 36px 28px;
    position: relative;
    overflow: hidden;
}

.event-card .header::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -24px;
    height: 55px;
    background: linear-gradient(90deg, #1084d0, #3dbff5);
    border-radius: 50%;
    opacity: 0.7;
}

.event-card .date {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.event-card .time {
    position: absolute;
    top: 5%;
    right: -10px;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.22);
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    white-space: nowrap;
}

.event-card .accent {
    width: 78px;
    height: 6px;
    border-radius: 10px;
    background: #59ddff;
    margin: 10px 0 4px 0;
    position: relative;
    z-index: 1;
}

.event-card .event-title {
    font-size: 22px;
    position: relative;
    z-index: 1;
}

/* --- Body --- */
.event-card .body {
    padding: 12px 28px 28px 28px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card .body::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 200, 255, 0.20), transparent 70%);
    pointer-events: none;
}

/* --- Featured badge --- */
.event-card .badge-featured {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 6px 13px;
    background: rgba(255, 212, 76, 0.9);
    color: #5c4200;
    border-radius: 24px;
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

/* --- Participants --- */
.event-card .participants {
    margin-top: 4px;
    background: linear-gradient(#fafdff, #e9f6ff);
    border: 1px solid #bfe3ff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 90, 180, 0.08);
}

.event-card .participants .participants-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    color: #1565a8;
}

.event-card .participants .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-card .chip {
    display: inline-block;
    padding: 7px 13px;
    background: linear-gradient(135deg, #1078b3, #0b5297);
    color: #fff;
    border-radius: 22px;
    font-weight: 600;
    font-size: 11px;
    box-shadow: 0 4px 10px rgba(0, 60, 120, 0.18);
}

/* --- Location --- */
.event-card .location {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e6eef5;
    font-size: 18px;
    color: #4b5f71;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card .location i {
    color: #1565a8;
    font-size: 1.1rem;
}

/* --- Past event --- */
.event-card.event-past .header {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.event-card.event-past .hero::after {
    background: linear-gradient(transparent, rgba(60, 60, 60, 0.75));
}

.event-card.event-past .header::after {
    background: linear-gradient(90deg, #7d8a94, #6c757d);
}

/* =============================================
   Event Detail Page
   ============================================= */

.event-description {
    font-size: 1.15rem;
    line-height: 1.7;
}

.event-description p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* =============================================
   Admin: Organization pills (multi-select)
   ============================================= */

.org-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.org-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #495057;
    background: #fff;
    transition: all 0.2s ease;
    user-select: none;
}

.org-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 123, 164, 0.05);
}

.org-pill.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.org-pill-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* =============================================
   Admin: Organization badges (detail / table)
   ============================================= */

.org-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #495057;
    background: #f8f9fa;
}

.org-badge-sm {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 123, 164, 0.1);
    border: 1px solid rgba(0, 123, 164, 0.2);
}

/* =============================================
   Responsive adjustments
   ============================================= */

@media (max-width: 768px) {
    .event-card .date {
        font-size: 26px;
    }

    .event-card .time {
        font-size: 1.1rem;
        top: 5%;
        right: -10px;
        padding: 4px 10px;
    }

    .event-card .event-title {
        font-size: 22px;
    }

    .event-card .location {
        font-size: 16px;
    }
}
