﻿
/* =========================
   Manage Event
   ========================= */

.manage-event {
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin: 0 auto;
    padding: 32px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: #111827;
}

/* =========================
   Back Link
   ========================= */

.manage-event-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 22px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

    .manage-event-back:hover {
        color: #7C3AED;
    }

    .manage-event-back i {
        flex-shrink: 0;
        font-size: 12px;
    }

/* =========================
   Header
   ========================= */

.manage-event-header {
    min-width: 0;
    margin-bottom: 22px;
}

.manage-event-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

    .manage-event-title-row h1 {
        min-width: 0;
        max-width: 100%;
        margin: 0;
        font-size: 28px;
        font-weight: 700;
        color: #111827;
        overflow-wrap: anywhere;
    }

.manage-event-header p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #6B7280;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* =========================
   Status
   ========================= */

.manage-event-status {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.manage-event-status-published {
    background: #F3E8FF;
    color: #7C3AED;
}

.manage-event-status-scheduled {
    background: #FEF3C7;
    color: #92400E;
}

.manage-event-status-finished {
    background: #F3F4F6;
    color: #6B7280;
}

.manage-event-status-draft {
    background: #F3F4F6;
    color: #6B7280;
}

.manage-event-status-unpublished {
    background: #FEE2E2;
    color: #B91C1C;
}

/* =========================
   Quick Actions
   ========================= */

.manage-event-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    margin-bottom: 24px;
}

.manage-event-action-primary,
.manage-event-action-secondary,
.manage-event-action-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.manage-event-action-primary {
    border: 1px solid #7C3AED;
    background: #7C3AED;
    color: #FFFFFF;
}

    .manage-event-action-primary:hover {
        border-color: #6D28D9;
        background: #6D28D9;
    }

.manage-event-action-secondary {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #374151;
}

    .manage-event-action-secondary:hover {
        border-color: #7C3AED;
        background: #FAF5FF;
        color: #7C3AED;
    }

.manage-event-action-danger {
    border: 1px solid #FECACA;
    background: #FFFFFF;
    color: #B91C1C;
}

    .manage-event-action-danger:hover {
        border-color: #DC2626;
        background: #FEF2F2;
    }

/* =========================
   Cards
   ========================= */

.manage-event-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
}

.manage-event-card-header {
    min-width: 0;
    margin-bottom: 20px;
}

    .manage-event-card-header h2 {
        margin: 0 0 4px;
        color: #111827;
        font-size: 16px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .manage-event-card-header p {
        margin: 0;
        color: #6B7280;
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

/* =========================
   Event Details
   ========================= */

.manage-event-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.manage-event-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.manage-event-detail-wide {
    grid-column: 1 / -1;
}

.manage-event-detail span {
    color: #9CA3AF;
    font-size: 11px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.manage-event-detail strong {
    min-width: 0;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* =========================
   Categories
   ========================= */

.manage-event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.manage-event-category {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    border-radius: 20px;
    background: #F3E8FF;
    color: #7C3AED;
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* =========================
   Description and Link
   ========================= */

.manage-event-description {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: #4B5563;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.manage-event-online-link {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
    color: #4B5563;
    font-size: 13px;
}

.manage-event-empty {
    margin: 0;
    color: #9CA3AF;
    font-size: 13px;
    overflow-wrap: anywhere;
}

/* =========================
   Dashboard Action Links
   ========================= */

.organizer-event-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    overflow-wrap: anywhere;
    text-decoration: none;
}

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

@media (max-width: 700px) {

    .manage-event {
        padding: 24px 18px;
    }

    .manage-event-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

        .manage-event-title-row h1 {
            font-size: 24px;
        }

    .manage-event-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .manage-event-detail-wide {
        grid-column: auto;
    }

    .manage-event-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .manage-event-action-primary,
    .manage-event-action-secondary,
    .manage-event-action-danger {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .manage-event-card {
        padding: 20px;
    }
}

/* =========================
   Event Cover
   ========================= */

.manage-event-cover {
    width: 100%;
    max-width: 760px;
    box-sizing: border-box;
    aspect-ratio: 16 / 9;
    margin: 0 auto 24px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F9FAFB;
}

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

.manage-event-cover-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px;
    color: #6B7280;
    text-align: center;
    overflow-wrap: anywhere;
}

    .manage-event-cover-empty i {
        font-size: 32px;
        color: #7C3AED;
    }

    .manage-event-cover-empty span {
        max-width: 100%;
        font-size: 13px;
        font-weight: 500;
        overflow-wrap: anywhere;
    }

/* Compact mobile event management */
@media (max-width: 700px) {
    .manage-event {
        padding: 16px 12px;
    }

    .manage-event-header {
        margin-bottom: 16px;
    }

    .manage-event-title-row h1 {
        font-size: 21px;
    }

    .manage-event-actions {
        gap: 8px;
    }

    .manage-event-card {
        padding: 14px;
        border-radius: 12px;
    }

    .manage-event-cover {
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .manage-event-details-grid {
        gap: 12px;
    }

    .manage-event-categories {
        gap: 6px;
    }
}
