﻿/* =========================
   Create Event
   ========================= */

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


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

.create-event-header {
    margin-bottom: 30px;
}

.create-event-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: #6B7280;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

    .create-event-back-btn i {
        font-size: 12px;
    }

.create-event-title h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.create-event-title p {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}


/* =========================
   Sections
   ========================= */

.create-event-section {
    margin-bottom: 24px;
    padding: 26px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.create-event-section-header {
    margin-bottom: 24px;
}

    .create-event-section-header h2 {
        margin: 0 0 5px;
        font-size: 17px;
        font-weight: 700;
        color: #111827;
    }

    .create-event-section-header p {
        margin: 0;
        font-size: 13px;
        color: #6B7280;
    }


/* =========================
   Form
   ========================= */

.create-event-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.create-event-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .create-event-field label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

        .create-event-field label span {
            color: #7C3AED;
        }

    .create-event-field input,
    .create-event-field textarea,
    .create-event-field select {
        width: 100%;
        box-sizing: border-box;
        padding: 11px 13px;
        border: 1px solid #D1D5DB;
        border-radius: 8px;
        background: #FFFFFF;
        color: #111827;
        font-family: inherit;
        font-size: 13px;
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .create-event-field input::placeholder,
        .create-event-field textarea::placeholder {
            color: #9CA3AF;
        }

        .create-event-field input:focus,
        .create-event-field textarea:focus,
        .create-event-field select:focus {
            border-color: #7C3AED;
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
        }

    .create-event-field textarea {
        resize: vertical;
        min-height: 90px;
    }

    .create-event-field select {
        cursor: pointer;
    }


/* =========================
   Field Footer
   ========================= */

.create-event-field-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: #9CA3AF;
}

.create-event-character-count {
    white-space: nowrap;
}


/* =========================
   Date & Time
   ========================= */

.create-event-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


/* =========================
   Cover Image
   ========================= */

.create-event-image-upload {
    position: relative;
}

    .create-event-image-upload input[type="file"] {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

.create-event-upload-label {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 1px dashed #D1D5DB;
    border-radius: 8px;
    background: #F9FAFB;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

    .create-event-upload-label:hover {
        border-color: #A78BFA;
        background: #FAF5FF;
    }

    .create-event-upload-label > i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        background: #F3E8FF;
        color: #7C3AED;
        font-size: 16px;
    }

    .create-event-upload-label span {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .create-event-upload-label strong {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

    .create-event-upload-label small {
        font-size: 11px;
        color: #9CA3AF;
    }


/* =========================
   Location Type
   ========================= */

.create-event-location-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.create-event-location-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #6B7280;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

    .create-event-location-option:hover {
        border-color: #C4B5FD;
    }

    .create-event-location-option.active {
        border-color: #7C3AED;
        background: #FAF5FF;
        color: #7C3AED;
    }

    .create-event-location-option > i {
        font-size: 16px;
    }

    .create-event-location-option span {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .create-event-location-option strong {
        font-size: 13px;
        font-weight: 600;
        color: #111827;
    }

    .create-event-location-option small {
        font-size: 11px;
        color: #9CA3AF;
    }

    .create-event-location-option.active small {
        color: #8B5CF6;
    }


/* =========================
   Location Content
   ========================= */

.create-event-location-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

    .create-event-location-content[hidden] {
        display: none;
    }


/* =========================
   Map
   ========================= */

.create-event-map-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.create-event-map-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

    .create-event-map-header label {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

    .create-event-map-header p {
        margin: 0;
        font-size: 11px;
        color: #9CA3AF;
    }

.create-event-map-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    background: #FFFFFF;
    color: #374151;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

    .create-event-map-search-btn:hover {
        border-color: #7C3AED;
        color: #7C3AED;
        background: #FAF5FF;
    }

.create-event-map {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
}


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

.create-event-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-bottom: 20px;
}

.create-event-draft-btn,
.create-event-publish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.create-event-draft-btn {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #374151;
}

    .create-event-draft-btn:hover {
        border-color: #7C3AED;
        color: #7C3AED;
        background: #FAF5FF;
    }

.create-event-publish-btn {
    border: 1px solid #7C3AED;
    background: #7C3AED;
    color: #FFFFFF;
}

    .create-event-publish-btn:hover {
        background: #6D28D9;
        border-color: #6D28D9;
        transform: translateY(-1px);
    }

    .create-event-publish-btn i {
        font-size: 10px;
    }


/* =========================
   Publish Menu
   ========================= */

.create-event-publish-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1000;
    width: min(420px, calc(100% - 36px));
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.15);
    transform: translate(-50%, -50%);
}

    .create-event-publish-menu[hidden] {
        display: none;
    }

.create-event-publish-menu-header {
    margin-bottom: 18px;
}

    .create-event-publish-menu-header h3 {
        margin: 0 0 5px;
        font-size: 17px;
        font-weight: 700;
        color: #111827;
    }

    .create-event-publish-menu-header p {
        margin: 0;
        font-size: 12px;
        line-height: 1.5;
        color: #6B7280;
    }

.create-event-publish-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 68px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #111827;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

    .create-event-publish-option:hover {
        border-color: #C4B5FD;
        background: #FAF5FF;
    }

    .create-event-publish-option > div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .create-event-publish-option strong {
        font-size: 13px;
        font-weight: 600;
    }

    .create-event-publish-option span {
        font-size: 11px;
        color: #9CA3AF;
    }

    .create-event-publish-option > i {
        color: #9CA3AF;
        font-size: 11px;
    }

.create-event-publish-cancel {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 9px;
    border: none;
    background: transparent;
    color: #6B7280;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

    .create-event-publish-cancel:hover {
        color: #7C3AED;
    }


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

@media (max-width: 700px) {

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

    .create-event-section {
        padding: 20px;
    }

    .create-event-field-group {
        grid-template-columns: 1fr;
    }

    .create-event-location-type {
        grid-template-columns: 1fr;
    }

    .create-event-map-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .create-event-map-search-btn {
        width: 100%;
    }

    .create-event-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
    }

    .create-event-draft-btn,
    .create-event-publish-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {

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

    .create-event-section {
        padding: 18px;
    }

    .create-event-map {
        height: 300px;
    }
}


/* =========================
   Schedule Publication
   ========================= */

.create-event-schedule {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
}

    .create-event-schedule[hidden] {
        display: none;
    }

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

    .create-event-schedule-header h4 {
        margin: 0 0 4px;
        font-size: 13px;
        font-weight: 600;
        color: #111827;
    }

    .create-event-schedule-header p {
        margin: 0;
        font-size: 11px;
        line-height: 1.5;
        color: #6B7280;
    }

.create-event-schedule-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.create-event-publish-now {
    border-color: #7C3AED;
    background: #FAF5FF;
    color: #7C3AED;
}

    .create-event-publish-now:hover {
        border-color: #7C3AED;
        background: #F3E8FF;
    }

    .create-event-publish-now strong {
        color: #7C3AED;
    }

    .create-event-publish-now span {
        color: #8B5CF6;
    }

.create-event-schedule-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid #7C3AED;
    border-radius: 8px;
    background: #7C3AED;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .create-event-schedule-confirm:hover {
        border-color: #6D28D9;
        background: #6D28D9;
    }

.create-event-schedule-status {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #7C3AED;
}

    .create-event-schedule-status[hidden] {
        display: none;
    }

.create-event-schedule-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid #7C3AED;
    border-radius: 8px;
    background: #7C3AED;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .create-event-schedule-confirm:hover {
        border-color: #6D28D9;
        background: #6D28D9;
    }

.create-event-schedule-publish {
    background: #7C3AED;
    border-color: #7C3AED;
}

    .create-event-schedule-publish:hover {
        background: #6D28D9;
        border-color: #6D28D9;
    }

.create-event-publish-now.active {
    border-color: #7C3AED;
    background: #FAF5FF;
    color: #7C3AED;
}

.create-event-publish-now-confirmation {
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
}

    .create-event-publish-now-confirmation[hidden] {
        display: none;
    }

    .create-event-publish-now-confirmation p {
        margin: 0 0 12px;
        font-size: 12px;
        font-weight: 600;
        color: #374151;
    }

.create-event-publish-now-confirmation-actions {
    display: flex;
    gap: 8px;
}

.create-event-publish-now-confirm,
.create-event-publish-now-cancel {
    flex: 1;
    padding: 8px 12px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.create-event-publish-now-confirm {
    border: 1px solid #7C3AED;
    background: #7C3AED;
    color: #FFFFFF;
}

    .create-event-publish-now-confirm:hover {
        border-color: #6D28D9;
        background: #6D28D9;
    }

.create-event-publish-now-cancel {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #6B7280;
}

    .create-event-publish-now-cancel:hover {
        border-color: #7C3AED;
        color: #7C3AED;
        background: #FAF5FF;
    }