/* =========================
   EVENTS PAGE
========================= */

.events-page {
    width: 100%;
}

.events-header {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(212, 146, 253, 0.25);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 22px rgba(129, 90, 160, 0.08);
}

.events-header h1 {
    margin: 0 0 6px;
    font-size: 30px;
    color: #2f3441;
}

.events-header p {
    margin: 0;
    color: #6d7485;
}

.manage-events-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.manage-events-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card-large {
    display: flex;
    gap: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(145, 202, 255, 0.35);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(129, 90, 160, 0.08);
    position: relative;
}

.event-card-date {
    min-width: 95px;
    height: 95px;
    border-radius: 20px;
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-card-date h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
}

.event-card-date span {
    font-size: 13px;
    font-weight: 700;
}

.event-card-info {
    flex: 1;
    min-width: 0;
}

.event-card-info h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #2f3441;
}

.event-time {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #8b52c7;
    font-size: 13px;
    font-weight: 700;
}

.event-description,
.event-description-preview {
    color: #5f6678;
    line-height: 1.6;
}

.event-description-preview {
    max-height: 70px;
    overflow: hidden;
}

.event-description p,
.event-description-preview p {
    margin: 0 0 10px;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.event-see-all-btn,
.event-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.event-see-all-btn {
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: white;
}

.event-more-link {
    background: #eef4ff;
    color: #52648d;
}

.event-see-all-btn:hover,
.event-more-link:hover {
    transform: translateY(-1px);
}

.no-events-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed rgba(212, 146, 253, 0.45);
    border-radius: 22px;
    padding: 30px;
    text-align: center;
    color: #6d7485;
}

.no-events-box h2 {
    margin-top: 0;
    color: #2f3441;
}

/* =========================
   SINGLE EVENT PAGE
========================= */

.single-event-page {
    max-width: 1000px;
    margin: 0 auto;
}

.back-to-events-btn {
    display: inline-flex;
    margin-bottom: 18px;
    text-decoration: none;
    font-weight: 700;
    color: #5d6f95;
}

.event-card-full {
    background: rgba(255,255,255,0.82);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(212,146,253,0.18);
}

.event-full-header {
    display: flex;
    gap: 20px;
    margin: 24px 0;
}

.event-card-date.large {
    flex: 0 0 auto;
}

.event-full-title-wrap h1 {
    margin: 0 0 10px;
    color: #2f3441;
}

.event-description.full {
    font-size: 16px;
    line-height: 1.75;
    color: #2f3441;
}

.event-description.full img,
.event-inline-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto 24px auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   EVENTS ADMIN PANEL
========================= */

.event-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
}

.event-editor-toolbar button {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.event-description-editor {
    min-height: 160px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(145, 202, 255, 0.35);
    background: white;
    outline: none;
    line-height: 1.5;
}

.event-description-editor:focus {
    border-color: #c39bff;
    box-shadow: 0 0 0 3px rgba(211, 146, 253, 0.16);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {
    .event-card-large,
    .event-full-header {
        flex-direction: column;
    }

    .event-card-date {
        width: 95px;
    }
}

.event-delete-top {
    position: absolute;
    top: 18px;
    right: 18px;
}

.event-delete-form {
    margin: 0;
}

.event-delete-btn {
    border: none;
    border-radius: 999px;
    padding: 7px 13px;
    background: #ff6b8a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
}

.event-delete-btn:hover {
    background: #e84f72;
}

.delete-event-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 25, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.delete-event-modal.active {
    opacity: 1;
    visibility: visible;
}

.delete-event-modal-box {
    width: 90%;
    max-width: 420px;

    background: linear-gradient(
        180deg,
        #2b2138 0%,
        #22192f 100%
    );

    border: 1px solid rgba(212, 146, 253, 0.25);

    border-radius: 22px;

    padding: 28px;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.45);

    text-align: center;
}

.delete-event-modal-box h2 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.delete-event-modal-box p {
    color: #d8d2e7;
    line-height: 1.6;
    margin-bottom: 24px;
}

.delete-event-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.cancel-delete-btn,
.confirm-delete-btn {
    border: none;
    border-radius: 999px;

    padding: 10px 18px;

    font-weight: 700;
    cursor: pointer;

    transition: 0.2s ease;
}

.cancel-delete-btn {
    background: #3b3148;
    color: #fff;
}

.cancel-delete-btn:hover {
    background: #4b3f5c;
}

.confirm-delete-btn {
    background: linear-gradient(
        135deg,
        #ff6b8a,
        #ff4f72
    );

    color: #fff;
}

.confirm-delete-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.event-status-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.event-status-badge.live {
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: #fff;
}

.event-status-badge.upcoming {
    background: #eef6ff;
    color: #4b73b8;
    border: 1px solid #cfe3ff;
}

.event-status-badge.ended {
    background: #f2edf6;
    color: #8b7898;
    border: 1px solid #ded1e8;
}

.event-card-large.ended,
.event-card-full.ended {
    opacity: 0.75;
}