/* Schedule Page Styles */
.schedule-container {
  max-width: 1000px;
  margin: 2rem auto;
  background: rgba(46, 52, 64, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: var(--text-color);
  font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
  position: relative;
  z-index: 1;
}

.timezone-selector {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-color);
}

.time-display {
  text-align: left;
  flex: 1;
  min-width: 200px;
}

#current-day {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

#current-time {
  font-size: 1.5rem;
  color: var(--text-color);
  font-family: 'Press Start 2P', monospace;
}

.timezone-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.timezone-controls label {
  font-size: 0.8rem;
  color: var(--primary-color);
}

.timezone-controls select {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  padding: 0.5rem 1rem;
  font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timezone-controls select:hover,
.timezone-controls select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.now-playing-container,
.upcoming-container {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.now-playing-container h2,
.upcoming-container h2 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.show-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.show-card {
    position: relative;
    margin-bottom: 1.5rem; /* Add more space between cards */
    z-index: 1;
    cursor: pointer;
}

.show-description {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #1a1e26; /* Solid dark background */
    color: #e6e6e6;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Very high z-index to ensure it's on top */
    margin-top: 5px;
    border: 1px solid #2a2f3b;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
}

/* Show description on hover for desktop */
@media (hover: hover) and (pointer: fine) {
    .show-card:hover .show-description {
        display: block;
    }
}

/* For touch devices */
.show-card.show-description-visible .show-description {
    display: block;
    position: fixed; /* Changed to fixed for better mobile experience */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    z-index: 1001; /* Above everything else */
    border: 2px solid #3a7bd5;
}

/* Add overlay for mobile when description is shown */
.description-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    cursor: pointer;
}

/* Show overlay when description is visible on mobile */
.show-description-visible + .description-overlay {
    display: block;
}

/* Make sure the show card is above other content when active */
.show-card.show-description-visible {
    position: relative;
    z-index: 1002;
}

/* For non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .show-card .show-description {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(46, 52, 64, 0.95);
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 10;
        display: none;
        max-height: none;
        opacity: 1;
        margin-top: 10px;
        border: none;
    }
    
    .show-card:hover .show-description {
        display: block;
    }
}

.starts-soon {
    color: #81a1c1;
    font-size: 0.9em;
    margin-left: 8px;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.show-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.show-card.current {
    border-left: 4px solid #81a1c1;
    background: rgba(129, 161, 193, 0.1);
}

.show-time {
    font-size: 0.9rem;
    color: #88c0d0;
    margin: 5px 0;
}

.show-name {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 5px 0;
    font-weight: bold;
}

.show-host {
    font-size: 0.85rem;
    color: #d8dee9;
    opacity: 0.8;
    margin: 5px 0;
}

.no-shows {
    text-align: center;
    padding: 20px;
    color: #d8dee9;
    background: rgba(59, 66, 82, 0.3);
    border-radius: 8px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .timezone-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .time-display {
        width: 100%;
        text-align: center;
    }
    
    .timezone-controls {
        width: 100%;
        justify-content: center;
    }
    
    .shows-grid {
        grid-template-columns: 1fr;
    }
    
    .now-playing-container,
    .upcoming-container {
        padding: 1rem;
    }
    
    .show-card {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: block;
    }
}