/* ==========================================================================
   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;
}
.day-venues a: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;
    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 */
