/**
 * TIMETABLE Diagnostic Interface Styles
 * Additional styles for the diagnostic layout
 */

/* ========================================
   Header Section
   ======================================== */

.header-main h2 {
  font-family: 'Blinker', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.hero-image {
  flex: 1;
  max-width: 70%;
  max-width: 51em;
}

.hero-image img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 208, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.2);
}

.hero-info {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-card-compact {
  background: rgba(0, 20, 40, 0.6);
  border: 1px solid rgba(0, 208, 255, 0.4);
  padding: 0.0em 0.6em;
  box-shadow: 0 0 15px rgba(0, 208, 255, 0.15);
  transition: all 0.3s ease;
}

.info-card-compact:hover {
  border-color: rgba(0, 208, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.3);
}

.info-card-compact h3 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  /* color: rgba(0, 208, 255, 0.7); */
  margin: 0 0.5rem 0 0;
  font-weight: 600;
  display: inline-block;
  width: 9em;
}

.info-card-compact p {
  font-size: 0.9rem;
  color: var(--accent-blue);
  margin: 0;
  font-weight: 400;
  display: inline-block;
}

.info-card-acronym {
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid rgba(0, 208, 255, 0.5);
  padding: 0em 0.6em;
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.2);
  margin-top: 0.5rem;
}

.info-card-acronym h2 {
  font-size: 1.2rem;
  color: var(--accent-blue);
  margin: 0.5rem 0 0.5rem 0;
  letter-spacing: 0.1em;
}

.info-card-acronym p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  margin-bottom: 0.3em;
}

.info-card-acronym strong {
  color: var(--accent-blue);
  font-weight: 600;
}


/* ========================================
   Diagnostic Rows
   ======================================== */

.diagnostic-row {
  margin-bottom: 3rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 10, 20, 0.4);
  border: 1px solid rgba(0, 208, 255, 0.2);
}

.diagnostic-title {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin: 0 0 1.5rem 0;
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 208, 255, 0.3);
  font-weight: normal;
  text-transform: uppercase;
}


/* ========================================
   Diagnostic Modes - Horizontal Tabs
   ======================================== */

.tab-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(0, 208, 255, 0.2);
}

.tab {
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(0, 208, 255, 0.3);
  border-top: 2px solid rgba(0, 208, 255, 0.3);
  border-bottom: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
  position: relative;
  top: 2px;
}

.tab:hover {
  background: rgba(0, 40, 60, 0.6);
  color: var(--accent-blue);
  border-color: rgba(0, 208, 255, 0.5);
}

.tab.active {
  background: rgba(0, 60, 100, 0.6);
  color: var(--accent-blue);
  border-color: rgba(0, 208, 255, 0.7);
  border-top: 2px solid rgba(0, 208, 255, 0.9);
  border-bottom: none;
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.3);
  font-weight: 600;
}

.diagnostic-content {
  position: relative;
  /* min-height: 500px; */
}

.mode-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mode-panel.active {
  display: flex;
  opacity: 1;
  gap: 2rem;
  align-items: flex-start;
}

.mode-image-container {
  flex: 1;
  position: relative;
  max-width: 60%;
}

.mode-image-container img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 208, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 208, 255, 0.2);
}

.mode-image-container .base-image {
  display: block;
}

.mode-image-container .overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.video-container {
  position: relative;
}

.video-placeholder {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-placeholder:hover {
  box-shadow: 0 0 25px rgba(0, 208, 255, 0.4);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 208, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #001020;
  transition: all 0.3s ease;
}

.video-placeholder:hover .play-button {
  background: rgba(0, 208, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 2px;
}

.mode-description {
  /* flex: 0 0 35%; */
}

.mode-description h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.mode-description .highlight {
  color: var(--accent-blue);
  font-weight: 600;
}

.mode-description p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.mode-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(0, 208, 255, 0.15);
  border: 1px solid rgba(0, 208, 255, 0.4);
  color: var(--accent-blue);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
}


/* ========================================
   Diagnostic Briefing - Vertical Tabs
   ======================================== */

.briefing-container {
  display: flex;
  gap: 2rem;
}

.briefing-tabs {
  flex: 0 0 330px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.briefing-tab {
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(0, 208, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 0.5rem;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.briefing-tab:hover {
  background: rgba(0, 40, 60, 0.6);
  color: var(--accent-blue);
  border-color: rgba(0, 208, 255, 0.5);
}

.briefing-tab.active {
  background: rgba(0, 60, 100, 0.7);
  color: var(--accent-blue);
  border-color: rgba(0, 208, 255, 0.7);
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.3);
  font-weight: 600;
}

.briefing-tab .tab-icon {
  font-size: 1.2rem;
  opacity: 0.8;
}

.briefing-tab .arrow {
  margin-left: auto;
  font-size: 1.2rem;
  opacity: 0.6;
}

.briefing-tab.active .arrow {
  opacity: 1;
}

.briefing-content-area {
  flex: 1;
  position: relative;
  min-height: 400px;
}

.briefing-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.briefing-content.active {
  display: block;
  opacity: 1;
}

.briefing-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.briefing-thumbnails img {
  width: calc(33.333% - 0.75rem);
  height: auto;
  border: 1px solid rgba(0, 208, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 208, 255, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.briefing-thumbnails img:hover {
  border-color: rgba(0, 208, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.3);
  transform: scale(1.02);
}

.briefing-text h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent-blue);
  margin: 0 0 1rem 0;
  letter-spacing: 0.05em;
}

.briefing-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;

}

/* Lightbox styles — moved to system.css */


/* ========================================
   Field Recordings Grid
   ======================================== */

.recordings-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.video-card {
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(0, 208, 255, 0.3);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-card:hover {
  border-color: rgba(0, 208, 255, 0.6);
  box-shadow: 0 0 25px rgba(0, 208, 255, 0.3);
  transform: translateY(-5px);
}

.video-thumbnail {
  display: block;
  position: relative;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-thumbnail .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 208, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #001020;
  transition: all 0.3s ease;
}

.video-card:hover .video-thumbnail .play-button {
  background: rgba(0, 208, 255, 1);
  transform: translate(-50%, -50%) scale(1.15);
}

.video-thumbnail .video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 2px;
}

.video-card h4 {
  font-size: 1rem;
  color: var(--accent-blue);
  margin: 1rem 1.25rem 0.5rem;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.video-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 1.25rem 1.25rem;
}


/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
  .hero-section {
    flex-direction: column;
  }
  
  .hero-image,
  .hero-info {
    max-width: 100%;
    flex: 1;
  }
  
  .mode-panel.active {
    flex-direction: column;
  }
  
  .mode-image-container,
  .mode-description {
    max-width: 100%;
    flex: 1;
  }
  
  .briefing-container {
    flex-direction: column;
  }
  
  .briefing-tabs {
    flex: 1;
    flex-direction: row;
    overflow-x: auto;
  }
  
  .briefing-tab {
    white-space: nowrap;
  }
}

/* Mobile behavior for diagnostic tabs - stack vertically on small screens */
@media (max-width: 1000px) {
  .tab-bar {
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: none;
    border-left: 2px solid rgba(0, 208, 255, 0.2);
    padding-left: 0.5rem;
    /* margin-bottom: 0.7em; */
  }

  .tab {
    border: 1px solid rgba(0, 208, 255, 0.3);
    border-left: 2px solid rgba(0, 208, 255, 0.3);
    border-top: 1px solid rgba(0, 208, 255, 0.3);
    width: 100%;
    text-align: left;
    position: static;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
  }

  .tab.active {
    border-left: 2px solid rgba(0, 208, 255, 0.9);
  }

  /* Briefing tabs - stacked vertical layout */
  .briefing-tabs {
    flex-direction: column;
    width: 100%;
  }

  .briefing-tab {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 1000px) {
  .recordings-container {
    grid-template-columns: 1fr;
  }
  
  .briefing-thumbnails {
    flex-direction: column;
  }
  
  .briefing-thumbnails img {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
  }
}


/* ========================================
   System Control
   ======================================== */

/* moved to system.css

.system-control {
  margin: 3rem 0 2rem;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(0, 208, 255, 0.2);
}

.system-control a {
  display: inline-block;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(0, 208, 255, 0.4);
  transition: all 0.3s ease;
}

.system-control a:hover {
  background: rgba(0, 208, 255, 0.1);
  border-color: rgba(0, 208, 255, 0.7);
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.3);
}

*/
