/**
 * Studio Typography Content Component Styles
 * 
 * This CSS file contains all styles for the studio-typ content component,
 * including responsive design, lightbox functionality, and interactive elements.
 * 
 * Component Structure:
 * - Row 1: Location information with venue details and map button
 * - Row 2: Contact disclaimer with clickable email link
 * - Row 3: Schedule image with lightbox functionality
 * - Row 4: Additional disclaimer about class changes
 * 
 * Features:
 * - Responsive design with mobile-first approach
 * - Lightbox modal for schedule image viewing
 * - Interactive email links with hover effects
 * - Consistent spacing and typography
 * - Accessibility-friendly design
 * 
 * @package Illinois_Conservatory
 * @version 1.0.0
 * @author Illinois Conservatory Team
 */

/* ===== The Studio Section ===== */
.studio-typ {
  background: var(--ica-mint, #DCF4EF);
  position: relative;
}

/* ===== Row 1: Location ===== */
.studio-typ__row-1 {
  background-color: #17968c5e;
  height: auto;
  min-height: 150px;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-typ__row-1-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Location Container */
.studio-typ__location {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}

/* Location Header: Heading and Venue Name */
.studio-typ__location-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

/* Location Heading */
.studio-typ__location-heading {
  font-family: var(--font-ui, "termina", sans-serif) !important;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ica-green-deep, #1E312F);
  background-color: var(--ica-bg, #F9F6F4);
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  text-align: center;
  flex-shrink: 0;
  margin: 0;
  min-width: fit-content;
}

/* Location Details: Address and Button */
.studio-typ__location-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
}

/* Venue Name */
.studio-typ__venue-name {
  font-family: var(--font-heading, "ivypresto-display", serif);
  font-size: clamp(31px, 4vw, 33px);
  font-weight: 400;
  color: var(--ica-green-deep, #1E312F);
  line-height: 1.2;
  text-align: center;
}

/* Venue Address */
.studio-typ__venue-address {
  font-family: var(--font-ui, "termina", sans-serif) !important;
  font-size: clamp(15px, 3vw, 17px);
  font-weight: 400;
  color: var(--ica-green-deep, #1E312F);
  line-height: 1.2;
  opacity: 0.9;
  text-align: center;
}

/* Map Button */
.studio-typ__map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui, "termina", sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ica-green-deep, #1E312F);
  background-color: var(--ica-white, #FFFFFF);
  border: 1px solid var(--ica-green-deep, #1E312F);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.studio-typ__map-btn:hover {
  background-color: var(--ica-lavender, #CFADD1);
  color: var(--ica-green-deep, #1E312F);
}

/* Map Icon */
.studio-typ__map-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== Row 2: Contact Disclaimer ===== */
.studio-typ__row-2 {
  background-color: #FFFFFF;
  height: auto;
  min-height: 70px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-typ__row-2 .section__inner {
  max-width: 1200px !important;
  width: 100% !important;
}

.studio-typ__row-2-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Disclaimer Container */
.studio-typ__disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

/* Disclaimer Text */
.studio-typ__disclaimer-text {
  font-family: var(--font-ui, "termina", sans-serif) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--ica-green-deep, #17968C);
  opacity: 0.8;
  margin: 0;
  padding: 0 1rem;
}

/* Email Highlight */
.studio-typ__email {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #C6D62B7A 50%);
  color: var(--ica-green-deep, #1E312F) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.studio-typ__email:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #C6D62B7A 80%);
  color: var(--ica-lavender, #CFADD1) !important;
  text-decoration: underline;
}

/* ===== Responsive Design ===== */

/* Tablet and below - Stack vertically */
@media (max-width: 768px) {
  .studio-typ__row-1 {
    padding: 40px 0;
  }
  
  .studio-typ__row-1-content {
    max-width: 768px;
  }
  
  .studio-typ__location {
    max-width: 768px;
  }
  
  .studio-typ__location-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
  }
  
  .studio-typ__location-details {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
  }
  
  .studio-typ__venue-name {
    text-align: center;
  }
  
  .studio-typ__venue-address {
    text-align: center;
    flex: none;
    min-width: auto;
  }  
  .studio-typ__row-3 {
    padding: 15px 0;
  }
  
  .studio-typ__pricing-row {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  
  .studio-typ__pricing-label {
    font-size: 14px;
    padding: 0.6rem 1rem;
  }
  
  .studio-typ__pricing-price {
    font-size: 3.2rem;
  }
  
  .studio-typ__pricing-session {
    font-size: 14px;
  }
  
  /* Location mobile layout - moved here for logical grouping */
  .studio-typ__location {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }
  
  .studio-typ__location-row-1 {
    flex-direction: column !important;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }
  
  .studio-typ__location-row-2 {
    flex-direction: column !important;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }
  
  .studio-typ__venue-name,
  .studio-typ__venue-address {
    white-space: normal !important;
    text-align: center;
  }
  
  .studio-typ__map-btn {
    margin-top: 0.5rem;
  }
}

/* Small mobile - Compact spacing */
@media (max-width: 480px) {
  .studio-typ__row-1 {
    padding: 30px 0; /* Reduced from 40px */
  }
  
  .studio-typ__row-2 {
    padding: 25px 0; /* Reduced from 40px */
  }
  
  .studio-typ__row-3 {
    padding: 10px 0;
  }
  
  .studio-typ__pricing-row {
    gap: 0.75rem;
  }
  
  .studio-typ__pricing-label {
    padding: 0.5rem 0.8rem;
  }
  
  .studio-typ__pricing-price {
    font-size: 3.0rem;
  }
}

/* Removed duplicated Row 3 Location styles to prevent conflicts.
   Row 1 already defines Location styles; Row 3 is reserved for Schedule. */

/* ========================================
   ROW 4 STYLES - ADDITIONAL DISCLAIMER
   ======================================== */

/* Row 4 Container */
.studio-typ__row-4 {
  background-color: #FFFFFF;
  height: auto;
  min-height: 10vh;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-typ__row-4 .section__inner {
  max-width: 1200px !important;
  width: 100% !important;
}

/* Row 4 Content */
.studio-typ__row-4-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Disclaimer Container */
.studio-typ__additional-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

/* Disclaimer Text */
.studio-typ__additional-disclaimer-text {
  font-family: var(--font-ui, "termina", sans-serif) !important;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  color: var(--ica-green-deep, #1E312F);
  opacity: 0.8;
  margin: 0;
  padding: 0 1rem;
}

/* Email Highlight */
.studio-typ__email {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #C6D62B7A 50%);
}

/* ========================================
   ROW 3 STYLES - SCHEDULE IMAGE
   ======================================== */

/* Row 5 Container */
.studio-typ__row-3 {
  background-color: #FFFFFF;
  height: auto;
  min-height: 40vh;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Row 5 Content */
.studio-typ__row-3-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Schedule Container */
.studio-typ__schedule {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}

/* Schedule Image */
.studio-typ__schedule-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studio-typ__schedule-img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  cursor: default;
}

.lightbox-img {
  width: 100%;
  max-width: 768px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 1);
}

/* Removed orphaned Row 6 styles (no corresponding markup). */

/* ===== Print Styles ===== */
@media print {
  .studio-typ {
    background: none !important;
    color: var(--ica-green-deep, #1E312F) !important;
  }
  
  .studio-typ__register-btn {
    border: 2px solid var(--ica-green-deep, #1E312F);
    background: none !important;
    color: var(--ica-green-deep, #1E312F) !important;
  }
}

/* Mobile font size adjustment for description - consolidated into 480px breakpoint */
@media (max-width: 480px) {
  .studio-typ__row-1 p:first-of-type,
  .studio-typ__row-1-description {
    font-size: 30px !important;
  }
  
  /* Schedule image mobile adjustments */
  .studio-typ__row-3 {
    padding: 20px 0;
  }
  
  .studio-typ__schedule-img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Lightbox mobile adjustments */
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .lightbox-close {
    top: -30px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  /* Additional disclaimer mobile adjustments removed with Row 6 */
}

