/* RESET */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* HEADER */
.header-container {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-overlay {
  position: absolute;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 12px;
}

.header-overlay h1 {
  margin: 0;
  font-size: 48px;
}

.header-overlay p {
  margin-top: 10px;
  font-size: 22px;
}

/* LOGIN */
.login-page {
  background: #111;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-box {
  background: #222;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border-radius: 6px;
  border: none;
}

.login-box button {
  padding: 10px 20px;
  background: #c8102e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#error {
  color: #ff8080;
}

/* COUNTERS */
.counters {
  display: flex;
  gap: 15px;
  margin: 20px;
  flex-wrap: wrap;
}

.counter {
  flex: 1;
  background: #e00b0b34;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* TABS */
/* TABS – classic layout, aligned right */
.tabs {
  padding: 20px 20px 0 20px;
  display: flex;
  justify-content: flex-end;
  max-width: 900px;
  margin: 0 auto;
  gap: 10px;
  flex-wrap: wrap;
}


.tabs input[type="radio"] {
  display: none;
}

.tab-buttons {
  background-color: #f0f0f0;
  border: 2px solid #333;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.tab-buttons:hover {
  background-color: #e0e0e0;
}

#thu:checked + .tab-buttons,
#fri:checked + .tab-buttons,
#sat:checked + .tab-buttons,
#sun:checked + .tab-buttons,
#mon:checked + .tab-buttons {
  background-color: #d32f2f;
  color: white;
}

/* TAB CONTENT */
.tab-content {
  display: flex;
  justify-content: center;
}

.content {
  display: none;
  width: 65%;
  max-width: 900px;
  margin: 20px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border: 2px solid #333;
  border-radius: 14px;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#thu:checked ~ .tab-content #thu-content,
#fri:checked ~ .tab-content #fri-content,
#sat:checked ~ .tab-content #sat-content,
#sun:checked ~ .tab-content #sun-content,
#mon:checked ~ .tab-content #mon-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* PARAGRAPH CARDS */
.content p {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 10px 14px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* PUB LIST */
.pub-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  gap: 10px;
}

.pub-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: #f4f4f4;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.pub-list a:hover {
  background: #eaeaea;
}

.pub-list span {
  font-size: 14px;
  opacity: 0.7;
}

/* FLIGHT STATUS */
.flight-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  background: #e8f5e9;
  color: #2e7d32;
}

.flight-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7d32;
}

.flight-status.boarding {
  background: #fff8e1;
  color: #f57f17;
}

.flight-status.boarding .dot {
  background: #f57f17;
}

.flight-status.final {
  background: #fdecea;
  color: #c62828;
}

.flight-status.final .dot {
  background: #c62828;
}

.flight-status.departed {
  background: #eeeeee;
  color: #555;
}

.flight-status.departed .dot {
  background: #555;
}

.flight-code {
  font-size: 14px;
  opacity: 0.7;
}

/* MOBILE */
@media (max-width: 768px) {
  .header-overlay h1 {
    font-size: 32px;
  }

  .header-overlay p {
    font-size: 18px;
  }

  .content {
    width: 95%;
    padding: 20px;
  }
}


.flight-card {
  display: block;
}

.flight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.flight-row a {
  font-size: 14px;
  text-decoration: none;
  color: #1565c0;
  font-weight: 500;
}

.flight-row a:hover {
  text-decoration: underline;
}

.flight-card {
  display: block;
}

.flight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.flight-row a {
  font-size: 14px;
  text-decoration: none;
  color: #1565c0;
  font-weight: 500;
}

.flight-row a:hover {
  text-decoration: underline;
}

/* ===== MOBILE LAYOUT FIX ===== */
@media (max-width: 768px) {

  /* Tabs: halda hægri-jöfnun */
  .tabs {
    justify-content: flex-end;
    max-width: 100%;
    padding: 12px 10px 0 10px;
  }

  /* Content: fyllir skjáinn og miðjast */
  .tab-content {
    display: flex;
    justify-content: center;
  }

  .content {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    padding: 16px;
    border-radius: 0;
  }
}

