/* Landing Page Styles - Mobile-First and Clean
   ========================================================================== */

/* Hero Section - Reduced from 85vh to 45vh for mobile-first design
   ========================================================================== */
.landing-hero {
  background-image: url("/assets/tricity-panorama-1df58fb2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 45vh;
  text-align: center;
  position: relative;
}

@media (max-width: 768px) {
  .landing-hero {
    height: 40vh;
  }
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 70%,
      rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.landing-lead {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.landing-hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-cta-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* Events Grid - Mobile-First Layout
   ========================================================================== */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .events-grid {
    flex-direction: row;
    gap: 3rem;
  }

  .events-grid__item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 500px;
  }
}

/* List Inline Utility
   ========================================================================== */
.list-inline {
  text-align: left;
  display: inline-block;
  padding-left: 0;
  list-style: none;
}

.list-inline li {
  margin-bottom: 0.75rem;
}

.list-inline li:last-child {
  margin-bottom: 0;
}

/* Form Select Styling
   ========================================================================== */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-family);
  color: var(--color-dark);
  background-color: var(--color-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23505050'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select:hover {
  border-color: var(--color-brand);
}

.form-select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(226, 84, 84, 0.15);
}

/* Form Section - Danger Zone
   ========================================================================== */
.form-section--danger {
  margin-top: 3rem;
  border-top: 2px solid var(--color-error);
  padding-top: 2rem;
}

.form-section--danger h3 {
  color: var(--color-error);
  font-size: var(--text-lg);
  margin-bottom: 1rem;
}

.form-section--danger p {
  color: var(--color-gray-dark);
  margin-bottom: 1rem;
}

/* Event Cards - Reusable Styles for Both Types
   ========================================================================== */
.event-card {
  background: var(--color-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  margin-bottom: 0;

  /* Subtle hover effect */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-card--formal {
  border-left: 4px solid var(--color-dark);
}

.event-card--bar {
  border-left: 4px solid var(--color-brand);
}

.event-card--empty {
  opacity: 0.6;
  background: var(--color-gray-light);
}

.event-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  margin: -1.5rem -1.5rem 2rem -1.5rem;
  border-bottom: 2px solid var(--color-brand);
  border-radius: var(--border-radius) var(--border-radius) 0 0;

  /* Subtle gradient background */
  background: linear-gradient(to bottom,
      rgba(226, 84, 84, 0.05) 0%,
      transparent 100%);
}

.event-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
}

.event-card__number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-brand);
}

.event-card__date {
  font-size: 0.95rem;
  color: var(--color-gray-dark);
}

/* Admin Type Badges
   ========================================================================== */
.meetup-list-type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.meetup-list-type--formal {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.meetup-list-type--bar {
  background-color: var(--color-brand);
  color: var(--color-light);
}

/* Admin Filter Section
   ========================================================================== */
.filter-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.filter-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

@media (min-width: 769px) {
  .filter-label {
    margin-bottom: 0;
    white-space: nowrap;
  }
}

.form-select--filter {
  width: 100%;
  max-width: 300px;
}

@media (min-width: 769px) {
  .form-select--filter {
    width: auto;
    min-width: 200px;
  }
}

/* Admin Stats Grid
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: var(--space-6);
}

/* Community Section
   ========================================================================== */
.landing-community {
  background-image: url("/assets/bg-community-8d74826e.png");
  background-size: cover;
  background-position: center;
  height: 280px;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .landing-community {
    height: 200px;
    margin: 1.5rem 0;
  }
}

/* Typography - Spacing below headings
    ========================================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1.5rem;
}

/* Meetup Info - Clean Layout
   ========================================================================== */
.meetup-info {
  margin-bottom: 2rem;
}

.meetup-info__header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-brand);
}

.meetup-info__number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand);
}

.meetup-info__date {
  font-size: 1.125rem;
  color: var(--color-gray-dark);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .info-row {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
}

.info-row__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-brand);
  fill: currentColor;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

@media (max-width: 768px) {
  .info-row__icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.info-row__label {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.info-row__value {
  color: var(--color-gray-dark);
}

/* Talks List
    ========================================================================== */
.talks-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-gray-light);
}

.talks-section__title {
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.talk-item {
  margin-bottom: 1.25rem;
}

.talk-item:last-child {
  margin-bottom: 0;
}

.talk-item__title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.talk-item__speaker {
  color: var(--color-gray-dark);
  font-size: 0.9rem;
}

/* Map Section
   ========================================================================== */
.map-container {
  margin-top: 1.5rem;
}

.map-container__image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.map-container__caption {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray-dark);
  font-size: 0.9rem;
}

.map-container__icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-brand);
  fill: currentColor;
}

/* Attendance Section
    ========================================================================== */
.attendance-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--color-gray-light);
}

.attendance-section h3 {
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.attendance-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .attendance-avatars {
    gap: 0.5rem;
  }
}

.attendance-avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

@media (max-width: 768px) {
  .attendance-avatar {
    width: 40px;
    height: 40px;
  }
}

.attendance-avatar:hover {
  transform: scale(1.1);
}

.attendance-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attendance-count {
  color: var(--color-gray-dark);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.no-attendees {
  color: var(--color-gray);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Attendance Form
   ========================================================================== */
.attendance-form {
  max-width: 400px;
}

.attendance-form .form-group {
  margin-bottom: 1rem;
}

.attendance-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .radio-group {
    flex-direction: column;
    gap: 1rem;
  }
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
}

.your-attendance {
  padding: 1rem;
  background: var(--color-gray-light);
  border-radius: var(--border-radius);
}

.attendance-status {
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.status-yes {
  color: var(--color-success);
}

.status-maybe {
  color: var(--color-warning);
}

/* Connect Section
   ========================================================================== */
.landing-connect {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .landing-connect {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
}

.landing-connect__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-connect__visual img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .landing-connect__visual img {
    max-width: 60%;
  }
}

/* Legacy compatibility
   ========================================================================== */
.landing-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-link-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Mobile enhancements - Better touch targets and readability
   ========================================================================== */

/* Small phones (up to 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .landing-lead {
    font-size: 1.75rem;
  }

  .event-card {
    padding: 1rem;
  }

  .event-card__title {
    font-size: 1rem;
  }

  .event-card__date {
    font-size: 0.85rem;
  }

  .info-row {
    gap: 0.5rem;
  }

  .info-row__icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .attendance-avatar {
    width: 38px;
    height: 38px;
  }

  .landing-connect__visual img {
    max-width: 50%;
  }
}

/* Tablet and up (768px+)
   ========================================================================== */
@media (max-width: 768px) {
  .landing-hero-content {
    padding: 1rem;
  }

  .event-card {
    padding: 1rem;
  }

  .event-card__title {
    font-size: 1.125rem;
  }

  .event-card__header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .map-container {
    margin-top: 1.5rem;
  }

  .map-container__caption {
    font-size: 0.8rem;
    flex-direction: column;
    text-align: center;
  }
}
