/**
 * Single Event Page Enhancements
 *
 * Card treatment for datamachine-events event info grid and flexbox action button container
 * using theme CSS custom properties (--background-color, --border-color, --card-shadow).
 * Mobile-optimized adjustments for responsive design.
 *
 * @package ExtraChillEvents
 * @since 0.1.0
 */

.datamachine-event-details .event-info-grid {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75em;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

/* Event Action Buttons Container (Ticket + Share) */
.datamachine-event-details .event-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Ensure share button container fits in flexbox */
.datamachine-event-details .event-action-buttons .share-button-container {
    margin: 0;
}

.datamachine-event-details .event-action-buttons .share-button {
    margin: 0;
}

/* Farm Friends Promo Badge */
.datamachine-event-details .event-info-grid .farm-friends-promo .promo-badge {
    background-color: var(--accent);
    color: var(--button-text-color);
    font-style: italic;
}

.datamachine-event-details .event-info-grid .farm-friends-promo .promo-badge:hover {
    background-color: var(--link-color-hover);
}

/* Strike through price when Farm Friends promo is shown */
.datamachine-event-details .event-info-grid:has(.farm-friends-promo) .event-price .text {
    text-decoration: line-through;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .datamachine-event-details .event-info-grid {
        padding: 1.2em;
        border-radius: 10px;
    }

    .datamachine-event-details .event-action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}
