/* static/css/pages/event-showcase.css */
/* -------------------------------------------------------------------------- */
/* --- Base Showcase Layout & Typography --- */
/* -------------------------------------------------------------------------- */
body.showcase-active {
  overflow: auto; /* Ensure body is scrollable */
}

.showcase-layout .app-header {
  background: rgba(17, 24, 39, 0.8); /* Darker, semi-transparent header for showcase */
  backdrop-filter: blur(10px);
  position: fixed; /* Fixed header for showcase page */
  width: 100%;
  z-index: 1000;
}

.showcase-main-content {
  padding-top: 0; /* Remove padding if header is fixed or absolute */
  max-width: none; /* Allow sections to be full-width */
  margin: 0;
  gap: 0; /* Sections will manage their own spacing */
}

/* Define artistic fonts - customize these with specific font families */
.artistic-font {
  font-family: 'Noto Sans SC', var(--font-sans); /* Example: A slightly more formal/bold sans-serif */
  font-weight: 700; /* Bold for impact */
  letter-spacing: 0.05em;
}

.elegant-font {
  font-family: 'Inter', var(--font-sans); /* Example: A clean, lighter sans-serif */
  font-weight: 300; /* Lighter for elegance */
}

/* -------------------------------------------------------------------------- */
/* --- Showcase Sections --- */
/* -------------------------------------------------------------------------- */
.showcase-section {
  min-height: 90vh; /* Near full viewport height, adjust as needed */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
  overflow: hidden; /* For pseudo-elements or child absolute positioning */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--text-on-color); /* Default text color for sections with dark backgrounds */
  opacity: 0; /* Initially hidden for scroll animation */
  transform: translateY(30px); /* Initial offset for scroll animation */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.showcase-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: Add a subtle overlay to background images to improve text readability */
.showcase-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Adjust darkness/opacity */
  z-index: 1;
}

.showcase-section > * {
  position: relative; /* Ensure content is above the overlay */
  z-index: 2;
}

/* -------------------------------------------------------------------------- */
/* --- Hero Section --- */
/* -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
}

.hero-section .main-title {
  font-size: clamp(2.5rem, 6vw, 5rem); /* Responsive font size */
  color: #fff;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero-section .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--spacing-md);
  max-width: 700px;
  line-height: 1.6;
}

.hero-section .date-display {
  font-size: clamp(0.875rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* -------------------------------------------------------------------------- */
/* --- Vision Section --- */
/* -------------------------------------------------------------------------- */
.vision-section {
  /* Example: Split layout for image and text, or use image as full background */
  /* For this example, assume text is primary focus with image as backdrop */
  background-attachment: fixed; /* Creates a simple parallax effect */
}

.vision-text-content {
  max-width: 800px;
  background: rgba(0,0,0,0.5); /* Slight dark background for text */
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
}

.vision-quote {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text-on-color); /* Ensure contrast */
  margin-bottom: var(--spacing-sm);
  font-style: normal; /* Override blockquote defaults if any */
  line-height: 1.4;
}

.quote-author {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--spacing-lg);
}

/* -------------------------------------------------------------------------- */
/* --- DIMC Impression Section --- */
/* -------------------------------------------------------------------------- */
.dimc-impression-section {
  background-color: var(--bg-subtle); /* Lighter background for contrast if needed */
  color: var(--text-primary); /* Text color for lighter background */
}
.dimc-impression-section::before { /* Override dark overlay for light sections */
    background-color: rgba(255, 255, 255, 0.3);
}


.section-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--sjtu-blue); /* Use a brand color */
  margin-bottom: var(--spacing-lg);
}

.dimc-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.dimc-image-item {
  width: 300px; /* Adjust as needed */
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  position: relative; /* For overlays */
  transition: transform 0.3s ease;
}
.dimc-image-item:hover {
    transform: scale(1.05);
}

.fact-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: var(--spacing-sm);
  font-size: 0.9rem;
  text-align: center;
}
.fact-overlay .fas {
    margin-right: var(--spacing-xs);
}

/* -------------------------------------------------------------------------- */
/* --- Empowerment Section --- */
/* -------------------------------------------------------------------------- */
.empowerment-section {
   background-attachment: fixed;
}
.empowerment-text-content {
    max-width: 700px;
}
.keywords-display {
  margin: var(--spacing-md) 0;
}
.keyword {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  color: var(--text-on-color);
  margin: 0 var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(124, 58, 237, 0.3); /* var(--sjtu-purple) with alpha */
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* -------------------------------------------------------------------------- */
/* --- Media Echoes Section (Gallery) --- */
/* -------------------------------------------------------------------------- */
.media-echoes-section {
  background-color: #111827; /* Dark background for gallery */
  color: var(--text-on-color);
}
.media-echoes-section::before { /* Override overlay */
    background-color: transparent;
}


.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  width: 100%;
  max-width: var(--max-content-width); /* Limit gallery width */
  padding: 0 var(--spacing-md);
}

.media-item {
  aspect-ratio: 16 / 10; /* Or other desired ratio */
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.media-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-xl);
}

.media-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  color: #fff;
  transition: opacity 0.3s ease;
}

.media-item:hover .media-item-overlay {
  /* Optionally change overlay on hover */
}

.media-title-preview {
  font-size: 1.1rem;
  font-weight: 600; /* Use elegant-font's weight or override */
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.media-source-preview {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* --- Modal Styling --- */
/* -------------------------------------------------------------------------- */
.showcase-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for modals */
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000; /* Higher than header */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.showcase-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.modal-content {
  background-color: var(--bg-card); /* Use light card background */
  color: var(--text-primary); /* Dark text for light background */
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  max-width: 700px; /* Default max width */
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.showcase-modal.is-open .modal-content {
  transform: scale(1);
}

.modal-close-button {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-size: 1.8rem;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.modal-close-button:hover {
    color: var(--text-primary);
}

.modal-title {
  font-size: 1.8rem;
  color: var(--sjtu-blue); /* Use a brand color */
  margin-bottom: var(--spacing-md);
}

.modal-content p { /* General paragraph styling inside modal */
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.modal-read-more-btn, .learn-more-modal-trigger { /* Style for buttons */
  display: inline-block;
  background: var(--sjtu-gradient);
  color: var(--text-on-color);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--transition-normal), transform var(--transition-fast);
  margin-top: var(--spacing-sm);
  border: none;
  cursor: pointer;
}

.modal-read-more-btn:hover, .learn-more-modal-trigger:hover {
  background: var(--sjtu-hover-gradient);
  transform: translateY(-2px);
  color: var(--text-on-color);
  text-decoration: none;
}


/* Media Report Detail Modal Specifics */
.media-report-detail-modal .modal-content {
  max-width: 800px; /* Larger for media details */
}
.modal-report-image {
  width: 100%;
  max-height: 300px; /* Limit image height */
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}
.modal-report-title {
  font-size: 1.6rem; /* Slightly smaller than generic modal title */
  color: var(--text-primary);
}
.modal-report-source {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
}
.modal-report-summary {
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}


/* -------------------------------------------------------------------------- */
/* --- Responsive Adjustments --- */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .showcase-section {
    min-height: 70vh; /* Slightly less height on mobile */
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  .hero-section .main-title { font-size: 2rem; }
  .hero-section .subtitle { font-size: 0.9rem; }
  .vision-quote { font-size: 1.5rem; }
  .section-heading { font-size: 1.8rem; }
  .keyword { font-size: 1.2rem; }

  .media-gallery-grid {
    grid-template-columns: 1fr; /* Single column for media items */
    gap: var(--spacing-md);
  }
  .media-item {
    aspect-ratio: 16 / 9;
  }

  .modal-content {
    width: 95%;
    padding: var(--spacing-md);
    max-height: 90vh;
  }
  .modal-title { font-size: 1.5rem; }
  .modal-report-title { font-size: 1.3rem; }
}