/*
* Layouts and visual styling for individual pages
*/

body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.body-pages-home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

  h1 {
    margin: 0;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-transform: lowercase;
    color: #e0f2fe;
    text-shadow:
      0 0 10px rgba(56, 189, 248, 0.5),
      0 0 20px rgba(56, 189, 248, 0.4),
      0 0 30px rgba(56, 189, 248, 0.3),
      0 0 40px rgba(56, 189, 248, 0.2);
    animation: glow-pulse 3s ease-in-out infinite;
  }

  @keyframes glow-pulse {
    0%,
    100% {
      text-shadow:
        0 0 10px rgba(56, 189, 248, 0.5),
        0 0 20px rgba(56, 189, 248, 0.4),
        0 0 30px rgba(56, 189, 248, 0.3),
        0 0 40px rgba(56, 189, 248, 0.2);
    }
    50% {
      text-shadow:
        0 0 15px rgba(56, 189, 248, 0.6),
        0 0 25px rgba(56, 189, 248, 0.5),
        0 0 35px rgba(56, 189, 248, 0.4),
        0 0 45px rgba(56, 189, 248, 0.3);
    }
  }
}

h1 {
  margin: 0 0 2rem 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #e0f2fe;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(15, 23, 42, 0.5);
}

thead {
  background-color: rgba(56, 189, 248, 0.1);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

td {
  padding: 0.75rem 1rem;
  color: #e0f2fe;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

tbody tr:hover {
  background-color: rgba(56, 189, 248, 0.05);
}

sup {
  font-size: 0.65em;
}

/* Error and Empty State Styles */
.error {
  padding: 1rem;
  background-color: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 0.5rem;
  color: #fca5a5;
}

p {
  color: #e0f2fe;
}

/* Clickable table rows */
tbody tr[data-controller="row-link"] {
  cursor: pointer;
}

/* Flight show page */
.flight-show {
  max-width: 900px;
  margin: 0 auto;

  .flight-header {
    margin-bottom: 2rem;

    h1 {
      margin: 0.5rem 0;
      font-size: 2rem;
    }
  }

  .flight-meta {
    display: flex;
    gap: 1.5rem;
    color: #7dd3fc;
    font-size: 0.9rem;
  }

  .back-link {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.9rem;

    &:hover {
      text-decoration: underline;
    }
  }
}

.map-container {
  width: 100%;
  height: 420px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 2rem;
}

.map-airport-icon {
  font-size: 1.2rem;
  text-align: center;
  line-height: 1;
}

.map-unavailable {
  padding: 2rem;
  background-color: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.airport-details {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.5rem;

  .airport {
    flex: 1;
  }

  .airport-code {
    font-size: 1.8rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.05em;
  }

  .airport-name {
    color: #7dd3fc;
    font-size: 0.875rem;
    margin-top: 0.25rem;
  }

  .route-arrow {
    font-size: 1.5rem;
    color: #38bdf8;
    flex-shrink: 0;
  }
}
