/* React runtime overrides and animations for NewsPrk 1:1 clone */

/* Ensure Swiper buttons and slides render cleanly */
.swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
}

/* Back to top smooth appearance */
.up_btn.up_btn1 {
  cursor: pointer;
}

/* Modal video player — matches NewsPrk reference (.modal-video) */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  animation: modal-video 0.3s ease-out;
}

@keyframes modal-video {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-video-inner {
  from { transform: translateY(100px); }
  to { transform: translate(0); }
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: visible;
  cursor: default;
  animation: modal-video-inner 0.3s ease-out;
}

.video-modal-content > div {
  border-radius: 6px;
  overflow: hidden;
}

.video-modal-content iframe,
.video-modal-content > div {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-content > div {
  aspect-ratio: auto;
}

.video-modal-unavailable {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #ccc;
  font-size: 16px;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 10;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: auto;
}

.video-modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Ensure mobile menu transitions correctly */
.sidebarMenu {
  transition: all 0.4s ease-in-out;
}

.sidebarMenu.hideSideMenu {
  left: -100% !important;
}

/* Search overlay */
.searching {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.searching.active {
  display: flex;
}

.searching:not(.active) {
  display: none;
}

/* Tab display */
.tab-content > .tab-pane {
  display: none;
}

.tab-content > .tab-pane.active {
  display: block;
}

/* Ensure font awesome icons display properly */
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
