/* 
  Updated Performances Page Styles with Gallery & Tabs
  Nartanam Dance Studio
*/

/* Page Banner */
.page-banner {
    background-color: var(--text-dark);
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/performances/banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    margin-top: 80px;
  }
  
  .page-banner h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
  
  .page-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
  }
  
  /* Tab Buttons */
  .content-tabs {
    background-color: var(--white);
    padding: 0.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  
  .tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .tab-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease;
  }
  
  .tab-btn:hover {
    color: var(--primary);
  }
  
  .tab-btn.active {
    color: var(--primary);
  }
  
  .tab-btn.active:after {
    width: 100%;
  }
  
  /* Tab Content */
  .tab-content {
    display: none;
    padding-top: 2rem;
  }
  
  .tab-content.active {
    display: block;
  }
  
  /* Filter Section */
  .performance-filters, .gallery-filters {
    background-color: var(--off-white);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
  }
  
  .filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .filter-btn, .gallery-filter-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
  }
  
  .filter-btn.active, .filter-btn:hover,
  .gallery-filter-btn.active, .gallery-filter-btn:hover {
    background-color: var(--primary);
    color: var(--white);
  }
  
  /* Performances List Section */
  .performances-archive {
    padding: 1rem 0 4rem;
  }
  
  .year-section {
    margin-bottom: 4rem;
  }
  
  .year-heading {
    position: relative;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    display: inline-block;
    color: var(--text-dark);
  }
  
  .year-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
  }
  
  .performances-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  /* Performance Item */
  .performance-item {
    display: flex;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
  }
  
  .performance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  
  .performance-image {
    flex: 0 0 300px;
    overflow: hidden;
  }
  
  .performance-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .performance-item:hover .performance-image img {
    transform: scale(1.05);
  }
  
  .performance-content {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .performance-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
  }
  
  .performance-content h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 500;
  }
  
  .performance-content p {
    color: var(--text-light);
    line-height: 1.6;
  }
  
  /* Photo Gallery */
  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 4rem;
  }
  
  .gallery-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
  }
  
  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  
  .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 20px 15px 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .gallery-item:hover .gallery-caption {
    opacity: 1;
  }
  
  .gallery-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  
  .gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
  }
  
  /* Responsive Adjustments */
  @media screen and (max-width: 992px) {
    .page-banner {
      padding: 60px 0;
    }
    
    .page-banner h1 {
      font-size: 2.5rem;
    }
    
    .performance-item {
      flex-direction: column;
    }
    
    .performance-image {
      flex: 0 0 auto;
      height: 200px;
    }
    
    .photo-gallery {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
  }
  
  @media screen and (max-width: 768px) {
    .page-banner {
      padding: 50px 0;
      margin-top: 60px;
    }
    
    .page-banner h1 {
      font-size: 2rem;
    }
    
    .content-tabs {
      top: 60px;
    }
    
    .tab-btn {
      padding: 10px 15px;
      font-size: 0.95rem;
    }
    
    .performance-filters, .gallery-filters {
      padding: 1rem 0;
    }
    
    .filter-btn, .gallery-filter-btn {
      padding: 6px 15px;
      font-size: 0.85rem;
    }
    
    .year-heading {
      font-size: 1.8rem;
    }
    
    .performance-content {
      padding: 1.25rem;
    }
    
    .performance-content h3 {
      font-size: 1.3rem;
    }
    
    .photo-gallery {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 15px;
    }
    
    .gallery-item img {
      height: 200px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .page-banner {
      padding: 40px 0;
    }
    
    .page-banner h1 {
      font-size: 1.75rem;
    }
    
    .tab-buttons {
      gap: 10px;
    }
    
    .tab-btn {
      padding: 8px 12px;
      font-size: 0.9rem;
    }
    
    .photo-gallery {
      grid-template-columns: 1fr;
    }
    
    .gallery-item img {
      height: 220px;
    }
  }