/* ==========================================================================
   Homepage Specific Styles - Parsons Amateur Radio Club
   ========================================================================== */

/* ==========================================================================
   Hero Section with Simple Parallax Effect
   ========================================================================== */

.hero {
  background-image: url('../images/background1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: var(--space-8) 0 var(--space-12);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

/* Dark overlay for better text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  margin-bottom: var(--space-4);
  line-height: var(--line-height-tight);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title .text-primary {
  color: var(--color-accent);
}

.hero-description {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: var(--line-height-relaxed);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   Meeting Card (Hero)
   ========================================================================== */

.meeting-card {
  background: #363636;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.meeting-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.meeting-label {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meeting-time {
  font-size: var(--font-size-base);
  color: var(--color-text-heading);
  font-weight: var(--font-weight-semibold);
}

.meeting-location {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   License Section
   ========================================================================== */

.license-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.license-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-body);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.license-highlight {
  background: var(--color-bg-white);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--font-size-base);
  color: var(--color-text-body);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ==========================================================================
   Meeting Section
   ========================================================================== */

.meeting-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  box-shadow: var(--shadow-sm);
}

.meeting-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.meeting-info-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 500px;
  margin: 0 auto var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.meeting-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.detail-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

.detail-value {
  font-size: var(--font-size-lg);
  color: var(--color-text-heading);
  font-weight: var(--font-weight-semibold);
}

.meeting-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .hero {
    padding: var(--space-10) 0 var(--space-16);
    min-height: 85vh;
  }

  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: var(--space-12);
  }

  .hero-content {
    flex: 1;
    text-align: left;
    padding: var(--space-8);
  }

  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: var(--font-size-5xl);
  }

  .meeting-card {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }

  .meeting-info-card {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-8);
  }

  .meeting-detail {
    text-align: center;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .hero-grid {
    flex-direction: row;
    gap: var(--space-12);
  }

  .hero-content {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: left;
  }

  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }
}

/* Mobile parallax fallback - iOS doesn't support background-attachment: fixed well */
@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll;
  }
}

/* ==========================================================================
   Alternating Carousel - Two-column image/description layout
   ========================================================================== */

/* Container */
.alt-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: var(--space-8) 0 0;
  z-index: 1;
}

/* Track holds all slides */
.alt-carousel-track {
  position: relative;
  width: 100%;
}

/* Individual slide - flexbox two-column layout */
.alt-carousel-slide {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: stretch;
  background: #000000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 2s ease-in-out, visibility 2s ease-in-out;
}

.alt-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Reversed layout for odd slides (image on right) */
.alt-carousel-slide.image-right {
  flex-direction: row-reverse;
}

/* Image container with 16:9 aspect ratio - 65% width */
.alt-carousel-image {
  flex: 0 0 65%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.alt-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Content area - high contrast for readability - 35% width */
.alt-carousel-content {
  flex: 0 0 35%;
  min-width: 0;
  padding: var(--space-6) var(--space-10);
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.alt-carousel-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  margin-bottom: var(--space-3);
  line-height: var(--line-height-tight);
}

.alt-carousel-description {
  font-size: var(--font-size-base);
  color: #ffffff;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Navigation arrows - unobtrusive style */
.alt-carousel-prev,
.alt-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, opacity 0.2s;
  z-index: 10;
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.8);
  opacity: 0.6;
}

.alt-carousel-prev:hover,
.alt-carousel-next:hover {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.alt-carousel-prev {
  left: var(--space-2);
}

.alt-carousel-next {
  right: var(--space-2);
}

/* ==========================================================================
   Alternating Carousel - Responsive Styles
   ========================================================================== */

/* Tablet and below: Stack layout with text below image */
@media (max-width: 1023px) {
  .alt-carousel-slide,
  .alt-carousel-slide.image-right {
    flex-direction: column;
    gap: 0;
  }

  .alt-carousel-image {
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .alt-carousel-content {
    width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* Mobile: Smaller text and buttons */
@media (max-width: 767px) {
  .alt-carousel-content {
    padding: var(--space-4) var(--space-8);
  }

  .alt-carousel-title {
    font-size: var(--font-size-xl);
  }

  .alt-carousel-prev,
  .alt-carousel-next {
    width: 30px;
    height: 30px;
    font-size: var(--font-size-base);
  }
}
