/*
 * Styles for the MadLife Eventbrite Recommender widget.
 * Uses a minimal, card-based layout that fits within most themes.
 */
/*
 * The outer container now uses a dark theme with a red outline as requested.
 */
/*
 * The outer container takes the full width and uses a dark red background
 * similar to the event section on the MadLife homepage. We remove the
 * prominent border and allow more internal padding to let the cards breathe.
 */
.ml-ebrecom {
    font-family: inherit;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #24080b; /* dark burgundy background */
    border: none;
    border-radius: 8px;
    box-shadow: none;
    color: #ffffff;
}

/* Title text should be clearly visible on a dark background */
.ml-eb-title {
    /*
     * Title styling.  Display the "Discover Shows You'll Love" headline
     * in uppercase, centered, and clearly legible on dark backgrounds.  A
     * larger font size distinguishes it from other text elements.
     */
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
}

.ml-eb-search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/*
 * Style the search input for dark mode: dark background, red border and light text.
 */
.ml-eb-search {
    width: 100%;
    max-width: 500px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #cc0000;
    border-radius: 4px;
    /* Use a white background for contrast and dark text for readability */
    background-color: #ffffff !important;
    color: #000000 !important;
    text-transform: uppercase !important;
    /* Center the text in the search field */
    text-align: center;
}
/* Placeholder color for dark mode */
.ml-eb-search::placeholder {
    color: #888888;
    text-transform: uppercase !important;
}

.ml-eb-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Genre chips styled for dark mode with red border */
.ml-eb-genre {
    background-color: #111111;
    border: 1px solid #cc0000;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Hover state for genre chips */
.ml-eb-genre:hover {
    background-color: #333333;
}

/*
 * Use a fixed three‑column grid layout to more closely mirror the home page
 * event listings. Increase the gap between cards for visual separation.
 */
.ml-eb-events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Responsive layout: on narrow screens (mobile) the event cards stack
 * vertically.  Adjust the grid to a single column when the
 * viewport width is 768px or less. */
@media (max-width: 768px) {
    .ml-eb-events {
        grid-template-columns: 1fr;
    }
}

/* On very small screens reduce the size of the heading to keep it on one line */
@media (max-width: 480px) {
    .ml-eb-title {
        font-size: 1.4rem;
    }
}

/* Event cards now match the dark theme */
/*
 * Event cards: remove the red border and set a very dark background. The
 * image will act as the focal point. The card still uses flex layout to
 * ensure the CTA button sits at the bottom.
 */
.ml-eb-event {
    background-color: #0a0a0a;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

/* Adjust image border for dark cards */
/*
 * Increase image height for a bolder visual and remove the bottom border.
 */
.ml-eb-event img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: none;
}

/* Info section uses white-ish text on dark background */
/*
 * Position event details on a dark overlay to improve readability on top
 * of the burgundy background. Use flex to keep the CTA button at the bottom.
 */
.ml-eb-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
}


/*
 * Style the heading (event title) inside the card.  Use a red color,
 * center alignment, uppercase, and bold weight similar to the home
 * page event list.  We avoid specifying a font-size to allow for
 * responsive scaling, but ensure a reasonable base size.
 */
/*
 * Override the event title styling.  The site's global styles may
 * target h4 elements which can override our intended appearance for
 * event names.  To prevent that, we add !important flags to every
 * relevant property.  This ensures that the title appears in a bold
 * red colour, centered and uppercase with a modest font size.  The
 * margin separates the title from subsequent lines.
 */
.ml-eb-info h4 {
    margin: 0 0 0.25rem !important;
    font-weight: 700 !important;
    /* Use the same dark red accent as the home page cards. */
    color: rgb(220, 38, 38) !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 1.1rem !important;
}
.ml-eb-info h4 a {
    color: inherit;
    text-decoration: none;
    border: 0;
    box-shadow: none;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}
.ml-eb-info h4 a:hover {
    color: #a51414;
}

/*
 * Style for the date and time line.  Uses a <p> element with class
 * ml-eb-date.  Align center, bold weight, slightly larger text, and
 * uppercase.  This matches the style seen in the second debug
 * screenshot provided by the user.  The margin separates it from
 * subsequent lines.
 */
/* Increase specificity and use !important to ensure these styles
 * override the more generic `.ml-eb-info p` declaration.  Without
 * these, the generic declaration would reset font-size and color.
 */
/*
 * Style the line that shows the date and start time for each event.  It
 * mirrors the appearance of the date/time line on the home page: bold,
 * slightly enlarged text, centered and uppercase.  We use !important
 * declarations to override any generic paragraph styling applied by
 * the site's theme.  The margin provides breathing space below.
 */
p.ml-eb-date {
    margin: 0 0 0.35rem !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
}



/* Paragraph text color for dark theme */
/*
 * Generic paragraph styling for lines beneath the date.  Use smaller
 * text than the date line but still center and uppercase it to match
 * the existing MadLife homepage cards.  A grey tone differentiates
 * these details from the headline and date.
 */
.ml-eb-info p {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: #bbbbbb;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
}

/* CTA button matches red accent */
/*
 * Ticket link styles: use a rich red tone to match the home page accent.
 */
.ml-eb-link {
    margin-top: auto;
    text-decoration: none;
    padding: 0.75rem 0.75rem;
    background-color: #b50012; /* deeper red */
    color: #ffffff;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

/* CTA button hover */
.ml-eb-link:hover {
    background-color: #8e0010;
}

/* Empty state styling */
.ml-eb-empty {
    text-align: center;
    color: #bbbbbb;
    font-size: 0.9rem;
    margin: 1rem 0;
}