/**
 * BandsInTown Events Styles
 * Save as: assets/css/bandsintown.css
 * 
 * Matches jodywhitesides.com aesthetic
 * Semi-transparent cards over video background
 */

/* ============================================
   BASE LAYOUT - No title, just cards
   ============================================ */
.mmm-bandsintown-events {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;  /* No padding - cards start immediately */
}

.bit-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   EVENT CARDS - Semi-transparent for video
   ============================================ */
.bit-event-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(24, 24, 24, 0.85);  /* Semi-transparent dark bg */
    border: 2px solid #23445B;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.bit-event-card:hover {
    border-color: #DEB992;
}

/* ============================================
   DATE SIDEBAR - Styled with your colors
   ============================================ */
.bit-event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: 15px 10px;
    background: #23445B;
    border: 1px solid #051622;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bit-month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #DEB992;
    line-height: 1;
    margin: 0;
}

.bit-day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin: 5px 0;
    color: #FFE0C0;
}

.bit-year {
    display: block;
    font-size: 14px;
    color: #BFA98A;
    line-height: 1;
    margin: 0;
}

/* ============================================
   EVENT DETAILS
   ============================================ */
.bit-event-details {
    flex-grow: 1;
}

.bit-venue {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #DEB992;
    line-height: 1.2;
}

.bit-location,
.bit-time {
    margin: 5px 0;
    color: #BFA98A;
    font-size: 14px;
    line-height: 1.4;
}

.bit-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(35, 68, 91, 0.5);
    color: #BFA98A;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   BUTTONS - Stacked vertically on desktop
   ============================================ */
.bit-event-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;  /* Stacked vertically on desktop */
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.bit-btn {
    display: flex;  /* Flexbox for better centering */
    align-items: center;  /* Vertically center text */
    justify-content: center;  /* Horizontally center text */
    width: auto;  /* Default auto width */
    min-width: 110px;  /* Minimum width */
    border-radius: 10px;
    font-size: 16px;
    line-height: 1;
    padding: 0.75rem 1rem;  /* Horizontal padding for text */
    min-height: 2.5rem;
    background-color: #051622;
    border: 1px solid #23445B;
    color: #DEB992;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transform: translateY(0.05em);
    transition: all 0.4s ease;
    margin: 0;
}

/* Buttons inside event cards - FIXED WIDTH for uniformity */
.bit-event-actions .bit-btn {
    width: 130px;  /* Fixed width for card buttons */
}

.bit-btn:hover {
    background-color: #23445B;
    border: 1px solid #051622;
    color: #FFE0C0;
    transform: scale(1.15);  /* Reduced from 1.2 to prevent overlap */
    box-shadow: 0 8px 10px 0 rgba(222, 185, 146, 0.24),
                0 10px 25px 0 rgba(222, 185, 146, 0.19);
}

/* ============================================
   FOOTER - HIDDEN (No BandsInTown branding)
   ============================================ */
.bit-footer,
.bit-follow,
.bit-powered {
    display: none !important;
}

/* ============================================
   NO EVENTS / ERROR STATES
   ============================================ */
.bit-no-events {
    text-align: center;
    padding: 40px 20px;
    background: rgba(24, 24, 24, 0.85);
    border: 2px solid #23445B;
    border-radius: 8px;
    color: #BFA98A;
    font-style: italic;
}

.bit-no-events p {
    margin-bottom: 20px;
    font-size: 16px;
}

.bit-no-events .bit-btn {
    margin: 0 auto;
    width: auto;  /* Allow button to fit text */
    min-width: 180px;  /* Minimum width */
    padding: 0.75rem 1.5rem;  /* Extra horizontal padding */
}

/* Request a Show section - shows after events list */
.bit-request-show {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #23445B;
}

.bit-request-show .bit-btn {
    display: inline-flex;  /* Use inline-flex instead of flex */
    margin: 0 auto;
    width: auto;
    min-width: 180px;
    padding: 0.75rem 1.5rem;
}

.bit-error {
    padding: 15px;
    background: rgba(35, 68, 91, 0.9);
    border: 1px solid #051622;
    color: #DEB992;
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE - Mobile friendly
   ============================================ */
@media (max-width: 768px) {
    .bit-event-card {
        flex-direction: column;
    }
    
    .bit-event-date {
        width: auto;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 15px;
    }
    
    .bit-day {
        font-size: 24px;
        margin: 0 10px;
    }
    
    /* Center event details text on mobile */
    .bit-event-details {
        text-align: center;
    }
    
    .bit-event-actions {
        flex-direction: row;  /* Side by side on mobile */
        justify-content: center;
        align-items: center;
        min-width: auto;
        width: 100%;
        gap: 10px;
    }
    
    .bit-event-actions .bit-btn {
        width: auto;  /* Auto width on mobile */
        flex: 0 1 auto;  /* Don't stretch */
    }
}

@media (max-width: 480px) {
    .bit-event-card {
        padding: 15px;
    }
    
    .bit-venue {
        font-size: 18px;
    }
    
    /* Center event details text on small mobile */
    .bit-event-details {
        text-align: center;
    }
    
    .bit-event-actions {
        flex-direction: row;  /* Keep horizontal on small screens too */
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    
    .bit-event-actions .bit-btn {
        width: auto;
        flex: 0 1 auto;
    }
}
