/* ══ STATS STRIP ══ */
.stats-strip {
  background: var(--clr-primary);
  padding: 1.6rem 0;
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--clr-white);
}

.stat-item i {
  font-size: 1.4rem;
  color: var(--clr-primary-light);
}

.stat-item strong {
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.stat-item span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ══ CONTENT AREA ══ */
.updates-body {
  padding: 3.5rem 0 5rem;
}

/* ══ TAB SWITCHER (pill style, unique to updates) ══ */
.tab-switcher {
  display: flex;
  background: var(--clr-grey-10);
  border-radius: var(--radius);
  padding: 0.3rem;
  margin-bottom: 2.5rem;
  width: 100%;
  box-shadow: 0 2px 10px rgba(1, 37, 125, 0.08);
  box-sizing: border-box;
}

.tab-switcher .tab-btn {
  flex: 1;
  padding: 0.7rem 0.75rem;
  font-family: var(--ff-primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: var(--spacing);
  color: var(--clr-primary);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}

.tab-switcher .tab-btn .tab-count {
  background: rgba(1, 37, 125, 0.12);
  color: var(--clr-primary);
  padding: 0.1rem 0.45rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.tab-switcher .tab-btn:hover {
  background: rgba(1, 37, 125, 0.08);
}

.tab-switcher .tab-btn.active {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 3px 10px rgba(1, 37, 125, 0.25);
}

.tab-switcher .tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--clr-white);
}

@media (max-width: 380px) {
  .tab-switcher .tab-btn .tab-label {
    display: none;
  }

  .tab-switcher .tab-btn {
    font-size: 0.75rem;
    padding: 0.65rem 0.5rem;
  }
}

/* ══ PANEL HEADER ══ */
.panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--clr-grey-10);
  flex-wrap: wrap;
}

.panel-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.panel-icon.entrance-icon  { background: linear-gradient(135deg, #01257D, #0a4bcf); color: var(--clr-primary-light); }
.panel-icon.changelog-icon { background: linear-gradient(135deg, #0a7a5a, #12b97a); color: #7fffd4; }

.panel-title-group h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: var(--spacing);
  color: var(--clr-primary);
  margin-bottom: 0.1rem;
}

.panel-title-group p {
  font-size: 0.8rem;
  color: #6a7aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

/* ══ UPDATE CARDS ══ */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.update-card {
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: 0 3px 16px rgba(1, 37, 125, 0.07);
  border-left: 4px solid var(--clr-primary);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.update-card:hover {
  box-shadow: 0 8px 28px rgba(1, 37, 125, 0.13);
  transform: translateY(-3px);
}

.update-card.priority-important { border-left-color: #e9b949; }
.update-card.priority-urgent    { border-left-color: #e94949; }

.update-card-body {
  padding: 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.update-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.update-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: capitalize;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  line-height: 1.3;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-normal    { background: rgba(1, 37, 125, 0.08);  color: var(--clr-primary); }
.badge-important { background: rgba(233, 185, 73, 0.15); color: #8a6000; border: 1px solid rgba(233, 185, 73, 0.4); }
.badge-urgent    { background: rgba(233, 73, 73, 0.1);   color: #b91c1c; border: 1px solid rgba(233, 73, 73, 0.3); }

.update-card-body p {
  font-size: 0.9rem;
  color: #2a3a6e;
  line-height: 1.75;
  margin-bottom: 1rem;
  flex: 1;
}

.update-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #8a9aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--clr-grey-10);
}

.update-card-footer i {
  color: var(--clr-primary-light);
}

/* Replaces inline style="margin-left:auto; color:#add8e6" */
.update-card-footer .timestamp {
  margin-left: auto;
  color: #add8e6;
}

/* Changelog colour variant */
.tab-panel#changelog .update-card-footer .timestamp {
  color: #7fffd4;
}

/* ══ EMPTY STATE ══ */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  background: var(--clr-grey-10);
  border-radius: var(--radius);
}

.empty-state i {
  font-size: 3rem;
  color: rgba(1, 37, 125, 0.2);
  margin-bottom: 1rem;
  display: block;
}

.empty-state h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: var(--spacing);
  color: var(--clr-primary);
  margin-bottom: 0.4rem;
}

.empty-state p {
  color: #6a7aaa;
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ══ CHANGELOG BORDER OVERRIDES ══ */
.tab-panel#changelog .update-card                    { border-left-color: #12b97a; }
.tab-panel#changelog .update-card.priority-important { border-left-color: #e9b949; }
.tab-panel#changelog .update-card.priority-urgent    { border-left-color: #e94949; }

/* ══ LIGHTBOX ══ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}

.lightbox-overlay.open {
  display: flex;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img-wrap {
  position: relative;
  max-width: min(92vw, 900px);
  max-height: 90vh;
  cursor: default;
}

@keyframes lightboxZoomIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.lightbox-close:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}

.lightbox-caption {
  margin-top: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ══ CARD WITH IMAGE ══ */
.update-card-img-wrap {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  flex-shrink: 0;
}

.update-card-img-wrap::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(1, 37, 125, 0.75);
  color: var(--clr-primary-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  line-height: 32px;
  text-align: center;
}

.update-card-img-wrap:hover::after {
  opacity: 1;
}

.update-card.has-image {
  flex-direction: row;
}

.update-card-img-wrap {
  width: 240px;
}

.update-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.update-card-img-wrap:hover .update-card-img {
  transform: scale(1.04);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 640px) {
  .update-card.has-image {
    flex-direction: column;
  }

  .update-card-img-wrap {
    width: 100%;
    height: 200px;
  }

  .update-card-img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .updates-body {
    padding: 2rem 0 3.5rem;
  }

  .update-card-body {
    padding: 1.2rem;
  }

  .stats-inner {
    gap: 1.5rem;
  }
}