/* ==========================================================================
   Bay Area Open Mic Calendar — styles
   Edit this file to change the look of the site.
   No regeneration needed — just save and refresh in your browser.
   ========================================================================== */

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: #5b0701;
    font-family: Myriad, Verdana, Helvetica, Arial, sans-serif;
    color: #ffffff;
}

/* --- Header --- */
.header {
    background-color: #5b0701;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.hamburger {
    background-color: #cc7400;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    border: none;
}
.header-title img {
    display: block;
    height: auto;
    max-width: 100%;
}
.beer-link {
    margin-left: auto;
    transition: transform 0.2s, opacity 0.8s;
}
.beer-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
.beer-link img {
    display: block;
    height: 60px;
    width: auto;
}

/* --- Region Nav --- */
.nav-regions {
    background-color: #5b0701;
    display: flex;
    gap: 0;
}
.nav-regions a {
    padding: 12px 24px;
    font-family: Myriad, Verdana, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    text-decoration: none;
    color: #999999;
    background-color: #5b0701;
}
.nav-regions a.active {
    background-color: #cc7400;
    color: #ffffff;
    font-weight: bold;
}
.nav-regions a:hover { color: #ff9900; }

/* --- Subregion Filter Bar --- */
.subregion-bar {
    background-color: #4a0600;
    padding: 1px 24px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.subregion-tab {
    background: none;
    border: none;
    color: #cc7400;
    padding: 5px 14px;
    font-family: Myriad, Verdana, Helvetica, Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.15s, color 0.15s;
}
.subregion-tab:hover {
    background-color: #cc7400;
    color: #000000;
}
.subregion-tab.active {
    background-color: #cc7400;
    color: #000000;
    font-weight: bold;
}

/* --- Region Summary --- */
.region-summary {
    background-color: #5b0701;
    padding: 10px 24px;
    font-size: 13px;
    color: #999999;
}

/* --- Calendar Grid --- */
.calendar-grid {
    background-color: #cc7400;
    padding: 0;
}
.days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #cc7400;
}
.day-header {
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #000000;
    border-right: 1px solid #5b0701;
}
.day-header:last-child { border-right: none; }
.venues-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #cc7400;
    border-top: 2px solid #5b0701;
}
.day-venues {
    padding: 8px;
    border-right: 1px solid #5b0701;
    min-height: 100px;
}
.day-venues:last-child { border-right: none; }
.day-venues a {
    display: block;
    font-size: 10px;
    color: #000000;
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.1s;
}
/* Alternating row colors — applied via JS class so filtering doesn't break the pattern */
.day-venues a.alt-row {
    color: #5b0701;
}
.day-venues a:hover,
.day-venues a.alt-row:hover {
    color: #5b0701;
    text-decoration: underline;
}
.day-venues a.active-venue {
    font-weight: bold;
    color: #5b0701;
}
/* Hidden state for filtered-out links */
.day-venues a.hidden {
    display: none;
}

/* --- Detail Section --- */
.detail-container {
    background-color: #5b0701;
    padding: 30px;
    display: grid;
    grid-template-columns: 400px 1fr; /* Was: 150px 1fr */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}
.detail-container a { color:#CC7400; }
.detail-container a:hover { color: #ff9900; }

/* Special Event Badge (for one-off events) */
.special-event-badge {
    display: inline-block;
    background-color: #ff9900;
    color: #000000;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.venue-photo { 
    max-width: 400px;              /* Was: 150px */
    max-height: 400px;         /* NEW: prevents extremely tall images */
    display: flex;             /* NEW: for better alignment */
    align-items: flex-start;   /* NEW: align to top */
}
.venue-photo img { 
    width: 100%;               /* Fill the container width */
    height: auto;              /* Maintain aspect ratio */
    max-height: 400px;         /* NEW: cap the height */
    object-fit: contain;       /* NEW: fit without cropping */
    display: block; 
}
.venue-details { color: #ffffff; }
.venue-title {
    font-size: 32px;
    font-weight: bold;
    color: #ff9900;
    margin-bottom: 10px;
}
.recurrence-description {
    font-size: 15px;
    color: #cccccc;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
}
.info-grid { display: grid; gap: 12px; margin-bottom: 20px; }
.info-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    align-items: start;
}
.info-label {
    font-weight: bold;
    color: #ff9900;
    font-size: 14px;
}
.info-value {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.4;
}
.venue-description {
    margin-top: 20px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.5;
    color: #ffffff;
}

/* Add to Calendar Button */
.ics-button {
    display: inline-block;
    background-color: #cc7400;
    color: #000000;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
}

.ics-button:hover {
    background-color: #ff9900;
    transform: translateY(-2px);
    text-decoration: none;
    color: #000000;
}

.ics-button:active {
    transform: translateY(0);
}

/* ============================================
   FEED VIEW (Chronological Event List)
   ============================================ */

.feed-container {
    background-color: #5b0701;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.feed-header {
    text-align: center;
    margin-bottom: 30px;
}

.feed-title {
    font-size: 32px;
    color: #ff9900;
    margin-bottom: 5px;
}

.feed-subtitle {
    color: #999999;
    font-size: 14px;
}

/* Filters */
.feed-filters {
    background-color: #4a0600;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.feed-filters label {
    color: #999999;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-filters select {
    background-color: #5b0701;
    color: #ffffff;
    border: 1px solid #cc7400;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.feed-filters select:hover {
    border-color: #ff9900;
}

.filter-reset {
    background-color: #cc7400;
    color: #000000;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-reset:hover {
    background-color: #ff9900;
}

.feed-count {
    color: #999999;
    font-size: 13px;
    margin-bottom: 15px;
    font-style: italic;
}

/* Day Headers */
.feed-day {
    margin-bottom: 40px;
}

.feed-day-header {
    font-size: 22px;
    color: #cc7400;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #cc7400;
}

/* Event Cards */
.feed-event {
    background-color: #4a0600;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #cc7400;
    border-radius: 4px;
    transition: border-color 0.2s, background-color 0.2s;
}

.feed-event:hover {
    background-color: #5b0701;
    border-left-color: #ff9900;
}

.feed-event-oneoff {
    border-left-color: #ff9900;
    background-color: #4a0600;
}

.feed-event-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.feed-event-title {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
}

.feed-event-badge {
    background-color: #ff9900;
    color: #000000;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.feed-event-details {
    color: #999999;
    font-size: 14px;
    margin-bottom: 8px;
}

.feed-event-venue {
    color: #cccccc;
    font-weight: 500;
}

.feed-event-time {
    color: #cc7400;
}

.feed-event-region {
    color: #999999;
}

.feed-event-desc {
    color: #cccccc;
    font-size: 13px;
    margin: 10px 0;
    line-height: 1.5;
}

.feed-event-actions {
    margin-top: 10px;
}

.feed-event-link {
    color: #cc7400;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.feed-event-link:hover {
    color: #ff9900;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .feed-container {
        padding: 20px 15px;
    }
    
    .feed-title {
        font-size: 24px;
    }
    
    .feed-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .feed-filters label {
        width: 100%;
        justify-content: space-between;
    }
    
    .feed-filters select {
        flex: 1;
    }
}

.feed-event-separator {
    color: #666666;
    margin: 0 8px;
}

/* ============================================
   ADVERTISEMENT CONTAINERS
   ============================================ */

.ad-container {
    background-color: #4a0600;
    margin: 30px auto;
    padding: 20px;
    max-width: 728px;
    border-radius: 4px;
    text-align: center;
}

.ad-label {
    font-size: 11px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: normal;
}

.ad-placeholder {
    background-color: #5b0701;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #666666;
    border-radius: 4px;
}

/* AdSense responsive units will replace .ad-placeholder once approved */

/* =========================================================================
   UPCOMING PERFORMERS SECTION (Detail Pages)
   ========================================================================= */

.upcoming-performers {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #666;
}

.upcoming-performers h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ff9900;  /* Your orange theme */
}

.performer-date {
    font-weight: 600;
    color: #cccccc;
    min-width: 140px;
    display: inline-block;
}

.performer-name {
    color: #ffffff;  /* White for visibility */
}

.performer-name a {
    color: #cc7400;
    text-decoration: none;
    font-weight: 500;
}

.performer-name a:hover {
    color: #ff9900;
    text-decoration: underline;
}

.feed-event-featured {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #ffffff;
}

/* Artist links in feed - prevent purple visited state */
.feed-artist-link,
.feed-artist-link:visited {
    color: #cc7400;
    text-decoration: none;
}

.feed-artist-link:hover {
    color: #ff9900;
    text-decoration: underline;
}

/* Artist links in detail page performer section - prevent purple visited state */
.performer-name a,
.performer-name a:visited {
    color: #cc7400;
    text-decoration: none;
}

.performer-name a:hover {
    color: #ff9900;
    text-decoration: underline;
}

/* =========================================================================
   SOCIAL MEDIA ICON STYLING
   ========================================================================= */

/* Make social icons match the site's gold color scheme */
.social-icon {
    filter: brightness(0) saturate(100%) invert(58%) sepia(54%) saturate(1621%) hue-rotate(5deg) brightness(93%) contrast(91%);
    transition: filter 0.2s ease;
}

.social-icon:hover {
    filter: brightness(0) saturate(100%) invert(70%) sepia(91%) saturate(1490%) hue-rotate(357deg) brightness(102%) contrast(103%);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .performer-date {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .upcoming-performers {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

/* =========================================================================
   SESSION TAXONOMY (Detail Pages — Music Session listings)
   ========================================================================= */

/*
 * "Session Rules:" appears as a single sentence row on Music Session detail
 * pages, e.g. "Irish Traditional session, open to all players, tunes only
 * (no singing), no dancing."
 * Label gets the standard orange; value is slightly muted to read as a
 * compact descriptor rather than a headline fact.
 */
.info-item.session-rules .info-label {
    color: #ff9900;
}

.info-item.session-rules .info-value {
    color: #cccccc;
    font-style: italic;
}

/* =========================================================================
   IMAGE CAROUSEL (Detail Pages)
   ========================================================================= */

/*
 * Single-slide variant: plain figure, no navigation chrome.
 * Multi-slide variant: stacked slides with dot nav + prev/next arrows.
 * The .venue-photo container already constrains width (400px) and max-height (400px).
 */

/* Shared figure reset */
.carousel figure,
.carousel--single {
    margin: 0;
    padding: 0;
}

/* ---- Single-slide ---- */
.carousel--single img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

/* ---- Multi-slide wrapper ---- */
.carousel {
    position: relative;
    width: 100%;
}

/* Individual slide */
.carousel__slide {
    display: none;
    margin: 0;
    padding: 0;
}
.carousel__slide--active {
    display: block;
}
.carousel__slide img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

/* Photo credit caption */
.carousel-credit {
    font-size: 11px;
    font-style: italic;
    color: #999999;
    text-align: right;
    padding: 3px 0 0 0;
    line-height: 1.3;
}
.carousel-credit a,
.carousel-credit a:visited {
    color: #cc7400;
    text-decoration: none;
}
.carousel-credit a:hover {
    color: #ff9900;
    text-decoration: underline;
}

/* Dot navigation bar */
.carousel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
}

/* Prev / Next arrows */
.carousel__prev,
.carousel__next {
    background: none;
    border: none;
    color: #cc7400;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}
.carousel__prev:hover,
.carousel__next:hover {
    color: #ff9900;
}

/* Dot buttons */
.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666666;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s;
}
.carousel__dot--active {
    background-color: #cc7400;
}
.carousel__dot:hover {
    background-color: #ff9900;
}

/* =========================================================================
   SUBMITTER CREDIT (Detail Pages)
   ========================================================================= */

/*
 * The submitter credit appears inline with the "Last updated:" date value,
 * separated by an em dash: "19 February 2026 — thanks to Jane Smith! [icons]"
 * The .submitter-credit span de-emphasises the text relative to the date
 * while keeping links and icons in the standard gold palette.
 */
.submitter-credit {
    font-style: italic;
    color: #999999;
    font-size: 13px;
}

.submitter-credit a {
    color: #cc7400;
    text-decoration: none;
    font-style: normal;
}

.submitter-credit a:hover {
    color: #ff9900;
    text-decoration: underline;
}