/* ======================================
   Event Listings Page Styles
   ====================================== */

/* Event Cards */
.event-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    max-width: 100%;
}

.event-card-image {
    width: 100%;
    height: auto;
    display: block;
}

    .event-card:hover {
   box-shadow: var(--shadow-hover);
   transform: translateY(-2px);
    }

/* Clickable event card link */
.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

    .event-card-link:hover {
        text-decoration: none;
        color: inherit;
    }

    .event-card-link:hover .event-header h3 {
        color: var(--link-color);
        text-decoration: underline;
    }

.event-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

    .event-header h3 {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        transition: color 0.2s ease;
    }

.event-body {
    padding: 1.25rem;
}

.event-footer {
    padding: 1rem 1.25rem;
    background-color: var(--bg-card-footer);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: capitalize;
}

    .status-badge.status-published {
        background-color: #d1e7dd;
        color: #0f5132;
    }

    .status-badge.status-pending {
        background-color: #fff3cd;
        color: #856404;
    }

    .status-badge.status-rejected {
        background-color: #f8d7da;
        color: #842029;
    }

    .status-badge.status-disabled {
        background-color: #e2e3e5;
        color: #41464b;
    }

/* Create Form Card */
.create-form-card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Ticket Price Fields */
#ticketPriceFields {
    display: block;
}

    #ticketPriceFields.hidden {
        display: none;
    }

/* Banner Upload Section */
.banner-upload-section {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

#bannerPreview,
#bannerPreviewEdit {
    display: none;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#bannerPreviewImage,
#bannerPreviewImageEdit {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.current-banner {
    margin-top: 0.5rem;
    width: 100%; 
    height: auto;
}

.current-banner-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Event Card Image Placeholder */
.event-card-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    width: 100%;
}

.event-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.event-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ======================================
   Event Details Page Styles
   ====================================== */

/* Event Banner */
.event-banner-large {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.event-banner-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Info Sections */
.info-section {
    margin-bottom: 2rem;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.info-content {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Detail Items */
.detail-item {
    background-color: var(--bg-card-footer);
    padding: 0.875rem 1.125rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--link-color);
}

.detail-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* Tickets */
.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.125rem;
    background-color: var(--bg-card-footer);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #28a745;
}

.ticket-price {
    font-weight: 700;
    font-size: 1.125rem;
    color: #28a745;
}

/* Event Images Grid */
.event-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.event-image-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

    .event-image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ======================================
   Ticket Price Management
   ====================================== */

/* Ticket Price List */
.ticket-prices-container {
    margin-top: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem;
    background-color: #f8f9fa;
}

.ticket-price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticket-price-item {
    display: flex;
    align-items: flex-start;
    padding: 0.875rem;
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

    .ticket-price-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .ticket-price-item:last-child {
        margin-bottom: 0;
    }

.ticket-price-icon {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.ticket-price-content {
    flex: 1;
    min-width: 0;
}

.ticket-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.ticket-price-label {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
}

.ticket-price-amount {
    font-weight: 700;
    font-size: 1.125rem;
    color: #28a745;
    white-space: nowrap;
    margin-left: 1rem;
}

.ticket-price-description {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.ticket-price-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.empty-tickets-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

/* Ticket Modal */
.modal-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .modal-ticket-form .form-group {
        margin-bottom: 0;
    }

.ticket-price-input-group {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.ticket-currency-select {
    width: 120px;
    flex-shrink: 0;
}

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

/* Add Ticket Button */
.add-ticket-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-card h3 {
        font-size: 1.25rem;
    }

    .create-form-card {
        padding: 1.5rem;
    }

    .event-banner-large,
    .event-banner-placeholder {
        height: 200px;
    }

    .event-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    #bannerPreviewImage,
    #bannerPreviewImageEdit {
        max-height: 200px;
    }

    .ticket-price-item {
        flex-wrap: wrap;
    }

    .ticket-price-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-price-amount {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .ticket-price-actions {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

        .ticket-price-actions .btn {
            flex: 1;
        }
}
