
/*
Theme Name: Ronny Cox Theme
Theme URI: https://audiotheme.com/view/promenade/
Description: Promenade child theme for Ronny Cox, with The Events Calendar archive adjustments.
Author: Ronny Cox Website
Template: promenade
Version: 1.0.0
Text Domain: ronny-cox-theme
*/


/* ========================================
   GENERAL EVENTS CALENDAR SPACING
   ======================================== */

/* Reduce excessive spacing above the calendar */
.tribe-events .tribe-events-l-container {
    padding-top: 0 !important;
}

/* Reduce space above date navigation */
.tribe-events .tribe-events-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove excess space above event list */
.tribe-events .tribe-events-calendar-list {
    margin-top: 0 !important;
}

/* Tighten overall calendar positioning */
.post-type-archive-tribe_events .tribe-events-view {
    margin-top: 0 !important;
}


/* ========================================
   PAST EVENTS - COMPACT LIST
   ======================================== */

/* Reduce excessive spacing between events */
.tribe-events-view--list
.tribe-events-calendar-list__event-row {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Override Promenade's article spacing */
.tribe-events-view--list
article.tribe-events-calendar-list__event {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Preserve comfortable spacing around month headings */
.tribe-events-view--list
.tribe-events-calendar-list__month-separator {
    margin-top: 25px !important;
    margin-bottom: 15px !important;
}


/* ========================================
   UPCOMING EVENTS - EMPTY STATE
   ======================================== */

/*
Only applies when functions.php adds the
ronny-no-upcoming-events body class.

Past Events pages retain their normal
calendar navigation and functionality.
*/

/* Hide search, view selector and date navigation */
body.ronny-no-upcoming-events
.tribe-events-c-events-bar,

body.ronny-no-upcoming-events
.tribe-events-c-top-bar,

body.ronny-no-upcoming-events
.tribe-events-c-nav,

body.ronny-no-upcoming-events
.tribe-events-c-nav__list,

body.ronny-no-upcoming-events
.tribe-events-c-subscribe-dropdown__container,

body.ronny-no-upcoming-events
.tribe-events-c-subscribe-dropdown {
    display: none !important;
}

/* Hide the standard gray no-events notification */
body.ronny-no-upcoming-events
.tribe-events-c-messages {
    display: none !important;
}

/* Reduce empty space around calendar */
body.ronny-no-upcoming-events
.tribe-events-l-container {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
    min-height: 0 !important;
}

/* Remove extra margins around the calendar */
body.ronny-no-upcoming-events
.tribe-events-view {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* ========================================
   CUSTOM NO UPCOMING SHOWS MESSAGE
   ======================================== */

/* Main message container */
.ronny-events-empty {
    padding: 25px 0 40px;
    margin: 0;
    text-align: left;
}

/* Message heading */
.ronny-events-empty h2 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 1px;
    margin: 0 0 20px;
    padding: 0;
}

/* Description */
.ronny-events-empty p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 20px;
    padding: 0;
}


/* ========================================
   VIEW PAST SHOWS LINK
   ======================================== */

/* Default link spacing */
.ronny-past-shows-link {
    margin: 1.5em 0 2em;
}

/* Default link styling */
.ronny-past-shows-link a {
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Link inside custom empty-events message */
.ronny-events-empty .ronny-past-shows-link {
    margin-top: 30px;
    margin-bottom: 0;
}

.ronny-events-empty .ronny-past-shows-link a {
    font-size: 18px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Subtle hover effect */
.ronny-events-empty .ronny-past-shows-link a:hover {
    text-decoration-thickness: 2px;
}


/* ========================================
   MOBILE ADJUSTMENTS
   ======================================== */

@media screen and (max-width: 768px) {

    .ronny-events-empty {
        padding: 15px 0 25px;
    }

    .ronny-events-empty h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .ronny-events-empty p {
        font-size: 16px;
        line-height: 1.6;
    }

    .ronny-events-empty .ronny-past-shows-link a {
        font-size: 16px;
    }

    .tribe-events-view--list
    .tribe-events-calendar-list__event-row {
        margin-bottom: 15px !important;
    }
}
