/**
 * @file
 * Styles for the Impact Issue magazine display layout.
 */

/* ==========================================================================
   Impact Issue - Base Layout
   ========================================================================== */

.impact-issue {
  background: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.impact-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin-bottom: 0;
}

.impact-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
}

.impact-hero__background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.impact-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.impact-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 60px);
  text-align: center;
  padding: 2rem;
}

.impact-hero__title {
  font-size: 5rem;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: none;
}

.impact-hero__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.impact-hero__issue-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.impact-hero__date {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  letter-spacing: 0.05em;
}

.impact-hero__label {
  font-size: 0.875rem;
  color: #666;
  padding-left: 0.5rem;
  border-left: 1px solid #ddd;
  margin-left: 0.5rem;
}

.impact-hero__feature {
  background: #6610f2;
  color: #ffffff;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

/* ==========================================================================
   Featured Articles Section
   ========================================================================== */

.impact-featured {
  padding: 4rem 0;
  background: #ffffff;
}

.impact-featured__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Main Featured Article */
.impact-featured__main {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e5e5e5;
}

.impact-featured__main-content {
  max-width: 800px;
}

.impact-featured__main-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.impact-featured__main-title a {
  color: #333;
  text-decoration: none;
}

.impact-featured__main-title a:hover {
  color: #6610f2;
}

.impact-featured__main-deck {
  font-size: 1.25rem;
  color: #666;
  margin: 0 0 1rem 0;
  font-weight: 300;
}

.impact-featured__main-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1.5rem 0;
}

.impact-featured__main-link {
  display: inline-block;
  color: #6610f2;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
}

.impact-featured__main-link:hover {
  text-decoration: underline;
}

.impact-featured__main-byline {
  font-size: 0.875rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1rem 0 0 0;
}

/* Secondary Featured Grid */
.impact-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.impact-featured__item {
  display: flex;
  flex-direction: column;
}

.impact-featured__item-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f5f5f5;
  border-radius: 4px;
}

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

.impact-featured__item-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.impact-featured__item-title a {
  color: #333;
  text-decoration: none;
}

.impact-featured__item-title a:hover {
  color: #6610f2;
}

.impact-featured__item-deck {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.impact-featured__item-byline {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: auto 0 0 0;
}

/* ==========================================================================
   Departments Section
   ========================================================================== */

.impact-departments {
  padding: 4rem 0;
  background: #f8f9fa;
}

.impact-departments__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.impact-departments__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 3rem 0;
  color: #333;
  letter-spacing: 0.05em;
}

.impact-departments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.impact-departments__item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-departments__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.impact-departments__item-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9ecef;
}

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

.impact-departments__item-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #6610f2;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1rem 1rem 0.5rem 1rem;
}

.impact-departments__item-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 1rem 0.5rem 1rem;
}

.impact-departments__item-title a {
  color: #333;
  text-decoration: none;
}

.impact-departments__item-title a:hover {
  color: #6610f2;
}

.impact-departments__item-deck {
  font-size: 0.875rem;
  color: #666;
  margin: 0 1rem 1rem 1rem;
  line-height: 1.5;
}

.impact-departments__item-byline {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
  margin: 0;
  border-top: 1px solid #e9ecef;
}

/* ==========================================================================
   Inside APTA Section
   ========================================================================== */

.impact-inside-apta {
  padding: 4rem 0;
  background: #ffffff;
}

.impact-inside-apta__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.impact-inside-apta__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  color: #333;
  letter-spacing: 0.05em;
}

.impact-inside-apta__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.impact-inside-apta__item {
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.impact-inside-apta__item:last-child {
  border-bottom: none;
}

.impact-inside-apta__item-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.impact-inside-apta__item-title a {
  color: #333;
  text-decoration: none;
}

.impact-inside-apta__item-title a:hover {
  color: #6610f2;
}

.impact-inside-apta__item-deck {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Additional Sections
   ========================================================================== */

.impact-additional {
  padding: 3rem 0;
  background: #f8f9fa;
}

.impact-additional__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.impact-additional__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  color: #333;
  letter-spacing: 0.05em;
}

.impact-additional__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ==========================================================================
   Archive Section
   ========================================================================== */

.impact-archive {
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.impact-archive__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.impact-archive__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #ffffff;
}

.impact-archive__description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  opacity: 0.95;
}

.impact-archive__button {
  display: inline-block;
  background: #ffffff;
  color: #6610f2;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.impact-archive__button:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.impact-archive__covers {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}

.impact-archive__cover-placeholder {
  flex: 0 0 120px;
  height: 160px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ==========================================================================
   Advertisement Blocks
   ========================================================================== */

.impact-ad {
  text-align: center;
  padding: 2rem 0;
  background: #f8f9fa;
}

.impact-ad__placeholder {
  display: inline-block;
  padding: 2rem 4rem;
  background: #e9ecef;
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px dashed #dee2e6;
}

.impact-ad--300x250 .impact-ad__placeholder {
  width: 300px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 1024px) {
  .impact-featured__grid,
  .impact-departments__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .impact-inside-apta__container {
    grid-template-columns: 1fr;
  }
  
  .impact-archive__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .impact-hero__title {
    font-size: 3rem;
  }
  
  .impact-featured__main-title {
    font-size: 1.75rem;
  }
  
  .impact-featured__grid,
  .impact-departments__grid {
    grid-template-columns: 1fr;
  }
  
  .impact-hero__bar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}