/* ============================================================
   UPLOAD EVENT PAGE
   ============================================================ */

@font-face {
    font-family: 'Delight';
    src: url('../Assets/delight-font-family/delight-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}











/* Main Content - Event Form */
.upload-event-page .main-content {
    display: block;
    padding: 0;
    min-height: unset;
}

.event-form-container {
    max-width: 1100px;
    margin: 5rem auto 3rem;
    background: radial-gradient(circle at top, rgba(178, 120, 255, 0.15), transparent 55%),
                rgba(8, 7, 15, 0.96);
    border-radius: 28px;
    padding: 2.75rem 2.75rem 2.5rem;
    border: 1px solid rgba(178, 120, 255, 0.22);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.02);
}

.event-form-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.event-title {
    font-family: 'Delight', 'Inter', sans-serif;
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 0.4rem;
}

.event-title .accent {
    background: linear-gradient(135deg, #B278FF, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.98rem;
}

/* Form Layout */
.event-form {
    width: 100%;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.column-title {
    font-family: 'Delight', 'Inter', sans-serif;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(178, 120, 255, 0.2);
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.form-label.small {
    font-size: 0.9rem;
    color: #bcbcc4;
}

/* Form Inputs */
.form-input {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8B5CF6;
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input.large {
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
}

.form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    background: rgba(255, 255, 255, 0.15);
}

.form-textarea.small {
    min-height: 60px;
}

.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #8B5CF6;
    background: rgba(255, 255, 255, 0.15);
}

.form-select option {
    background: #2a2240;
    color: #ffffff;
}

/* Special Input Groups */
.location-input-group {
    display: flex;
    gap: 0.5rem;
}

.location-input-group .form-input {
    flex: 1;
}

.date-time-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date-inputs, .time-inputs {
    display: flex;
    gap: 1rem;
}

.input-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: #bcbcc4;
    font-size: 0.9rem;
    font-weight: 500;
}

.price-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #ffffff;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8B5CF6;
}

/* Artist Chips */
.artist-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.artist-chip {
    background: linear-gradient(90deg, rgba(124,58,237,0.8), rgba(244,114,182,0.6));
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.artist-avatar {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.artist-chip .profile-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

.artist-chip .remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Image Upload */
.image-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 2rem;
    color: rgba(178, 120, 255, 0.6);
}

.upload-placeholder p {
    color: #bcbcc4;
    font-size: 0.9rem;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(to bottom, #B278FF, #6A1B9A);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-footer .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.form-footer .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .form-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .event-form-container {
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 5rem 1rem 3rem;
    }
    
    .event-form-container {
        padding: 1.5rem;
    }
    
    .event-title {
        font-size: 1.9rem;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .form-footer .btn-primary,
    .form-footer .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .location-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .event-form-container {
        padding: 1rem;
    }
    
    .event-title {
        font-size: 1.8rem;
    }
    
    .column-title {
        font-size: 1.3rem;
    }
}

/* ============================================================
   TICKETS SECTION
   ============================================================ */

.form-section-divider {
    height: 1px;
    background: rgba(178, 120, 255, 0.15);
    margin: 2.5rem 0;
}

.tickets-section {
    padding: 0 0 1rem;
}

.tickets-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tickets-hint {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.25rem;
}

.btn-add-ticket {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #B278FF, #7C3AED);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.btn-add-ticket:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Empty State */
.tickets-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(178,120,255,0.2);
    border-radius: 16px;
    text-align: center;
}

.tickets-empty__icon {
    font-size: 2.25rem;
    color: rgba(178,120,255,0.35);
    margin-bottom: 0.25rem;
}

.tickets-empty p {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.tickets-empty span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* Ticket List Items */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(178,120,255,0.18);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s ease;
}

.ticket-item:hover {
    border-color: rgba(178,120,255,0.4);
}

.ticket-item__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.ticket-item__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.ticket-item__meta {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

.ticket-item__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ticket-item__btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.ticket-item__btn:hover {
    background: rgba(178,120,255,0.15);
    border-color: rgba(178,120,255,0.4);
    color: #fff;
}

.ticket-item__btn--danger:hover {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.4);
    color: #ef4444;
}

/* ---- Ticket Modal ---- */
.ticket-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.ticket-modal-overlay.open {
    display: flex;
}

.ticket-modal {
    background: #111118;
    border: 1px solid rgba(178,120,255,0.2);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 2rem 1.75rem 2.5rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
    scrollbar-width: none;
}

.ticket-modal::-webkit-scrollbar { display: none; }

.ticket-modal.open {
    transform: translateY(0);
}

@media (min-width: 600px) {
    .ticket-modal-overlay {
        align-items: center;
    }
    .ticket-modal {
        border-radius: 20px;
        max-height: 85vh;
    }
}

.ticket-modal__header {
    margin-bottom: 1.75rem;
}

.ticket-modal__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.ticket-modal__header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* Modal Form Fields */
.ticket-form-group {
    margin-bottom: 1.25rem;
}

.ticket-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.ticket-form-label .optional {
    font-weight: 400;
    color: rgba(255,255,255,0.3);
}

.ticket-form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.ticket-form-input:focus {
    outline: none;
    border-color: rgba(178,120,255,0.6);
    background: rgba(178,120,255,0.05);
}

.ticket-form-textarea {
    resize: vertical;
    min-height: 72px;
}

.ticket-price-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.ticket-price-row .ticket-form-input {
    flex: 1;
}

.ticket-currency {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Toggle */
.ticket-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    user-select: none;
}

.ticket-toggle {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}

.ticket-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ticket-toggle__slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 26px;
    transition: background 0.25s ease;
    cursor: pointer;
}

.ticket-toggle__slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.ticket-toggle input:checked + .ticket-toggle__slider {
    background: #7C3AED;
}

.ticket-toggle input:checked + .ticket-toggle__slider::before {
    transform: translateX(18px);
}

.ticket-period-inputs {
    margin-top: 0.75rem;
}

.ticket-period-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ticket-period-row label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.35rem;
}

/* Modal Footer */
.ticket-modal__footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.ticket-btn-cancel {
    flex: 1;
    padding: 0.875rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-btn-cancel:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.ticket-btn-save {
    flex: 2;
    padding: 0.875rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #B278FF, #7C3AED);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ticket-btn-save:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
