/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --srs-now-playing-bg: var(--theme-palette-color-2, #0073aa);
    --srs-now-playing-text: var(--theme-palette-color-6, #ffffff);
    --srs-schedule-card-bg: #0A0700;
    --srs-schedule-card-hover-bg: #1a1a1a;
    --srs-schedule-section-bg: var(--theme-palette-color-4, #f8f9fa);
    --srs-schedule-border: var(--theme-link-initial-color, #0073aa);
    --srs-schedule-time: var(--theme-link-initial-color, #0073aa);
    --srs-upcoming-card-bg: var(--theme-palette-color-3, #ffffff);
    --srs-upcoming-card-hover-bg: var(--theme-palette-color-4, #f8f9fa);
    --srs-upcoming-badge-bg: var(--theme-palette-color-2, #0073aa);
    --srs-upcoming-time: var(--theme-link-initial-color, #0073aa);
    --srs-all-shows-bg: var(--theme-palette-color-7, #f5f5f5);
    --srs-all-shows-hover: var(--theme-palette-color-6, #e8e8e8);
    --srs-hosts-card-bg: var(--theme-palette-color-3, #ffffff);
    --srs-hosts-card-hover-bg: var(--theme-palette-color-3, #f8f9fa);
    --srs-hosts-accent: var(--theme-link-initial-color, #0073aa);
    --srs-hosts-link-color: var(--theme-link-initial-color, #0073aa);
    --srs-hosts-link-hover: var(--theme-link-hover-color, #005177);
    --srs-text-color: var(--theme-text-color, #333333);
    --srs-heading-color: var(--theme-headings-color, #333333);
    --srs-link-color: var(--theme-link-initial-color, #0073aa);
    --srs-link-hover: var(--theme-link-hover-color, #005177);
    --srs-border-color: var(--theme-border-color, #ddd);
    --srs-border-radius: var(--theme-border-radius, 8px);
}

/* ==========================================
   TEXTURE OVERLAY - ONLY ON TEXT AREAS
   ========================================== */
.host-card-content,
.upcoming-show-content,
.concert-details,
.show-item-content,
.now-playing-content {
    position: relative !important;
}

.host-card-content::after,
.upcoming-show-content::after,
.concert-details::after,
.show-item-content::after,
.now-playing-content::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") !important;
    background-size: 200px 200px !important;
    background-repeat: repeat !important;
    opacity: 0.25 !important;
    pointer-events: none !important;
    z-index: 10 !important;
    mix-blend-mode: multiply !important;
}

.show-item-content::after,
.now-playing-content::after {
    mix-blend-mode: screen !important;
    opacity: 0.15 !important;
}

.host-card-content > *,
.upcoming-show-content > *,
.concert-details > *,
.show-item-content > *,
.now-playing-content > * {
    position: relative !important;
    z-index: 20 !important;
}

/* ==========================================
   ROCK WIRE SECTION - CLEAN NEWS CARDS
   ========================================== */

/* Remove default Stackable background */
.stk-1378dab.stk-block-background {
    background: transparent !important;
}

.stk-1378dab.stk-block-background::after {
    display: none !important;
}

/* News card styling - match host cards */
.wp-block-feedzy-rss-feeds-loop .wp-block-group.has-border-color {
    background: var(--srs-hosts-card-bg) !important;
    border: none !important;
    border-radius: var(--srs-border-radius) !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.wp-block-feedzy-rss-feeds-loop .wp-block-group.has-border-color:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Tighten all inner section spacing */
.wp-block-feedzy-rss-feeds-loop .wp-block-group.is-layout-constrained {
    padding: 0.75rem !important;
}

/* Image at top - full width like host cards */
.wp-block-feedzy-rss-feeds-loop .wp-block-image {
    margin: 0 0 0.75rem 0 !important;
    height: 200px !important;
    overflow: hidden !important;
}

.wp-block-feedzy-rss-feeds-loop .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s;
}

.wp-block-feedzy-rss-feeds-loop .wp-block-group.has-border-color:hover .wp-block-image img {
    transform: scale(1.05);
}

/* Title styling - bold and clean, NO TRUNCATION */
.wp-block-feedzy-rss-feeds-loop p {
    margin: 0 0 0.5rem 0 !important;
}

.wp-block-feedzy-rss-feeds-loop p strong a {
    color: var(--srs-heading-color) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
}

.wp-block-feedzy-rss-feeds-loop p strong a:hover {
    color: var(--srs-link-hover) !important;
}

/* Excerpt text - limit to 3 lines */
.wp-block-feedzy-rss-feeds-loop .has-small-font-size {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: var(--srs-text-color) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 0 0.5rem 0 !important;
}

/* Byline - smaller and subtle */
.wp-block-feedzy-rss-feeds-loop .has-medium-font-size {
    font-size: 0.75rem !important;
    color: #999 !important;
    margin: 0 !important;
}

/* Remove grey background from byline */
.wp-block-feedzy-rss-feeds-loop .wp-block-group.has-background {
    background: transparent !important;
    border: none !important;
}

/* ==========================================
   HERO SLIDER - FIXED MOBILE RESPONSIVE
   ========================================== */
.hero-slider {
    width: 100%;
    position: relative;
    margin-bottom: -100px;
    overflow: hidden;
}

.splide__track {
    overflow: hidden !important;
}

.hero-slide-wrapper {
    position: relative;
    min-height: 650px !important;
    max-height: 650px !important;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center !important;
    justify-content: center;
    width: 100%;
    padding: 0 !important;
    overflow: hidden;
}

.splide__slide {
    min-height: 650px !important;
    max-height: 650px !important;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
    color: white;
    box-sizing: border-box;
}

/* When there's no image, make text content full width and centered */
.hero-content:has(.hero-image-content:empty),
.hero-content:not(:has(.hero-image-content)),
.hero-content:has(.hero-image-content img[src=""]) {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
}

.hero-text-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-text-content.has-text-bg {
    padding: 2rem;
    border-radius: 8px;
}

.hero-text-content.has-text-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    z-index: -1;
}

.hero-text-content > * {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: Impact, 'Arial Black', sans-serif !important;
    font-size: clamp(2rem, 7vw, 4.5rem) !important;
    font-weight: 900 !important;
    margin: 0;
    line-height: 1.1 !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-content h2 {
    font-family: Impact, 'Arial Black', sans-serif !important;
    font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    font-weight: 900 !important;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.25rem) !important;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-content .hero-text-content a.hero-button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75em 1.5em;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.3s ease;
    border: none;
}

.hero-content .hero-text-content a.hero-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.hero-image-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    background-color: transparent !important;
    max-width: 100%;
}

.hero-overlay-image {
    width: 100%;
    max-width: 400px;
    max-height: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: none !important;
    background: none !important;
    background-color: transparent !important;
}

.splide__arrow {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 3rem;
    height: 3rem;
}

.splide__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.splide__arrow svg {
    fill: white;
}

.splide__pagination {
    display: none !important;
}

.hero-layout-text-left .hero-text-content {
    order: 1;
}

.hero-layout-text-left .hero-image-content {
    order: 2;
}

.hero-layout-text-right .hero-text-content {
    order: 2;
}

.hero-layout-text-right .hero-image-content {
    order: 1;
}

/* Clickable slide link wrapper */
.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Hover effect for clickable slides */
.has-slide-link:hover .hero-slide-wrapper {
    transform: scale(1.01);
    transition: transform 0.4s ease;
}

/* Make sure button appears clickable even when slide is linked */
.has-slide-link .hero-button {
    pointer-events: none; /* Prevent double-click on button */
    cursor: pointer;
}

/* Smooth transition */
.hero-slide-wrapper {
    transition: transform 0.4s ease;
}

/* ==========================================
   NOW PLAYING WIDGET
   ========================================== */
.now-playing {
    background: var(--srs-upcoming-card-bg);
    color: var(--srs-text-color);
    border-radius: var(--srs-border-radius);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    min-height: 180px;
    transition: background 0.2s, transform 0.2s;
}

.now-playing:hover {
    background: var(--srs-upcoming-card-hover-bg);
    transform: translateY(-2px);
}

.now-playing-image {
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.now-playing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.now-playing-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.now-playing h3 {
    background: var(--srs-upcoming-badge-bg);
    color: white;
    padding: 0.3rem 0.65rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.now-playing h4 {
    font-size: 1.1rem !important;
    margin: 0 0 0.35rem 0 !important;
    line-height: 1.3;
    font-weight: 600;
    color: var(--srs-heading-color);
}

.now-playing-host {
    font-size: 0.95rem;
    margin: 0.25rem 0;
    color: var(--srs-text-color);
}

.now-playing-time {
    color: var(--srs-upcoming-time);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.25rem 0 0;
}

.now-playing h4 a {
    color: var(--srs-heading-color);
    text-decoration: none;
}

.now-playing h4 a:hover {
    color: var(--srs-link-hover);
}

/* ==========================================
   WEEKLY SCHEDULE
   ========================================== */
.schedule-day {
    background: var(--srs-schedule-section-bg);
    padding: clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
    border-radius: var(--srs-border-radius);
}

.show-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.show-item {
    background: var(--srs-schedule-card-bg);
    border-radius: var(--srs-border-radius);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.show-item:hover {
    background: var(--srs-schedule-card-hover-bg);
    transform: translateY(-4px);
}

.show-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.show-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show-item-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.show-time {
    color: var(--srs-schedule-time);
    font-weight: 600;
    font-size: 0.9rem;
}

.show-title {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.show-title:hover {
    color: var(--srs-link-hover);
}

.show-host {
    color: #cccccc;
    font-size: 0.85rem;
}

/* ==========================================
   UPCOMING SHOWS
   ========================================== */
.upcoming-shows-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-show-item {
    background: var(--srs-upcoming-card-bg);
    margin-bottom: 1rem;
    border-radius: var(--srs-border-radius);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    overflow: hidden;
    min-height: 120px;
}

.upcoming-show-item:hover {
    background: var(--srs-upcoming-card-hover-bg);
    transform: translateY(-2px);
}

.upcoming-show-image {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.upcoming-show-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upcoming-show-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upcoming-show-when {
    background: var(--srs-upcoming-badge-bg);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 0.25rem;
}

.upcoming-show-title {
    font-size: 0.9rem !important;
    margin: 0.25rem 0 !important;
    line-height: 1.3;
}

.upcoming-show-host {
    font-size: 0.8rem;
    margin: 0.15rem 0;
}

.upcoming-show-time {
    color: var(--srs-upcoming-time);
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0.15rem 0 0;
}

/* ==========================================
   ALL HOSTS GRID
   ========================================== */
.all-hosts-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.all-hosts-grid.host-grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.all-hosts-grid.host-grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.all-hosts-grid.host-grid-cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.host-card {
    background: var(--srs-hosts-card-bg);
    border-radius: var(--srs-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
}

.host-card:hover {
    background: var(--srs-hosts-card-hover-bg);
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.host-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.host-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.host-card:hover .host-card-image img {
    transform: scale(1.05);
}

.host-card-content {
    padding: 1.25rem;
    text-align: center;
}

.host-card-content h3 {
    min-height: 2.4em;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.host-card-description {
    display: none;
}

.host-view-link {
    color: var(--srs-hosts-link-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-block;
    margin-top: 0.5rem;
}

.host-view-link:hover {
    color: var(--srs-hosts-link-hover);
}

/* ==========================================
   CONCERT CALENDAR
   ========================================== */
.concert-calendar-wrapper {
    padding: 2rem 0;
}

.concert-month-section {
    margin-bottom: 4rem;
}

.concert-month-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--theme-palette-color-1, #e74c3c);
    color: #ffffff;
}

.concert-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.concert-item {
    background: var(--theme-palette-color-8, white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--theme-border-color, #e0e0e0);
}

.concert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.concert-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.concert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.concert-details {
    padding: 1.5rem;
}

.concert-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--theme-heading-color, #333);
}

.concert-date {
    font-size: 0.95rem;
    color: #000;
    margin-bottom: 0.5rem;
}

.concert-date .day {
    color: var(--theme-palette-color-2, #e74c3c);
    font-weight: 600;
}

.venue-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--theme-heading-color, #333);
}

.venue-location {
    font-size: 0.95rem;
    color: #000;
    margin-bottom: 1rem;
}

.concert-ticket-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--theme-palette-color-2, #c0392b);
    color: var(--theme-button-text-color, white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.concert-ticket-btn:hover {
    background: var(--theme-palette-color-1, #e74c3c);
    transform: translateY(-2px);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-slide-wrapper {
        min-height: 500px !important;
        max-height: 500px !important;
    }
    
    .splide__slide {
        min-height: 500px !important;
        max-height: 500px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: clamp(1.75rem, 8vw, 3rem) !important;
    }
    
    .hero-content h2 {
        font-size: clamp(1.25rem, 6vw, 2rem) !important;
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
    }
    
    .hero-overlay-image {
        max-width: 280px;
        max-height: 280px;
    }
    
    .hero-layout-text-left .hero-text-content,
    .hero-layout-text-right .hero-text-content {
        order: 1;
    }
    
    .hero-layout-text-left .hero-image-content,
    .hero-layout-text-right .hero-image-content {
        order: 2;
    }
    
    .concert-calendar {
        grid-template-columns: 1fr;
    }
    
    .concert-month-heading {
        font-size: 1.5rem;
    }
    
    .now-playing {
        flex-direction: column;
        min-height: auto;
    }
    
    .now-playing-image {
        width: 100%;
        height: 200px;
    }
    
    .upcoming-show-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .upcoming-show-image {
        width: 100%;
        height: 180px;
    }
}