/* =============================================
   FONTS & BASE STYLES
   ============================================= */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Poppins:wght@700&display=swap');

/* Base body styles */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #F8F9FA;
  color: #333D4B;
  line-height: 1.7;
}

.container {
  margin: 0 auto;
  padding: 0 20px;
}


/* =============================================
   HEADER STYLES
   ============================================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  /* background: #FFFFFF; */
  border-bottom: 1px solid #EAECEF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: #007BFF;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  background: -webkit-linear-gradient(45deg, #D28E4D, #4CA1AF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a {
  margin-left: 25px;
  color: #555;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0056b3;
  text-decoration: none;
}


/* =============================================
   CUSTOM PAGE CONTENT STYLES (HOME & ABOUT)
   ============================================= */

/* Combined styles for hero sections on all pages */
.hero,
.page-hero {
  text-align: center;
  margin: 20px 0;
  padding: 80px 20px;
  border-radius: 12px;
  background: linear-gradient(45deg, #007BFF, #00C6FF);
  color: white;
}

.hero h1,
.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3em;
  margin-bottom: 10px;
  color: white;
  /* Ensure text is white */
}

.hero p,
.page-hero p {
  font-size: 1.25em;
  margin-bottom: 25px;
  opacity: 0.95;
  color: white;
  /* Ensure text is white */
}

.cta-button {
  display: inline-block;
  background: #FFC107;
  color: #212529;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: #e0a800;
  transform: translateY(-3px);
}

/* Styles for general content sections */
.mission,
.team-section,
section {
  padding: 50px 40px;
  background: white;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mission h2,
.team-section h2,
section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2em;
  color: #007BFF;
  text-align: center;
  margin-bottom: 30px;
}

/* Styles for the Team Section */
.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
  margin-top: 40px;
  text-align: center;
  width: 100%;
}

.team-member-card {
    background-color: #F8F9FA;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-member-card h3 {
  margin: 0 0 5px 0;
  font-size: 1.4em;
  color: #0056b3;
}

.team-member-card h4 {
  margin: 0 0 15px 0;
  font-size: 1.1em;
  font-weight: 400;
  color: #555;
}

.team-member-card p {
  font-size: 1em;
  color: #6c757d;
  font-style: italic;
}


/* =============================================
   TRANSCRIPT SHOW PAGE
   ============================================= */

.transcript-header {
  background: #e9ecef;
  /* Light gray background */
  padding: 40px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #dee2e6;
}

.transcript-header .metadata h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.transcript-header .metadata .duration {
  font-style: italic;
  color: #6c757d;
  margin-bottom: 15px;
}

.transcript-header .metadata .download-link a {
  font-weight: 600;
  color: #007BFF;
  text-decoration: none;
}

.transcript-header .metadata .download-link a:hover {
  text-decoration: underline;
}

.transcript-header .metadata p {
  margin-top: 20px;
  font-size: 1.1em;
}


/* =============================================
   TRANSCRIPT LIST PAGE
   ============================================= */

.transcripts-wrapper {
  background: #FFFFFF !important;
  border: 1px solid #EAECEF !important;
  border-radius: 12px;
  padding: 30px !important;
  margin: 30px 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.transcript-facets {
  background: #F8F9FA !important;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px !important;
  border: 1px solid #EAECEF;
}

.transcript-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
}

.transcript-item {
  display: block !important;
  background: #FFFFFF !important;
  border: 1px solid #EAECEF !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: #333D4B;
}

.transcript-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.transcript-item .item-image {
  height: 120px !important;
  background-size: cover !important;
  background-position: center !important;
}

.transcript-item .item-title {
  font-size: 1.1em !important;
  font-weight: 600;
  padding: 10px 15px 5px 15px !important;
  color: #007BFF;
}

.transcript-item .item-subtitle {
  font-size: 0.8em !important;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  padding: 0 15px !important;
}

.transcript-item .item-info {
  font-size: 0.9em !important;
  color: #555;
  padding: 10px 15px !important;
}


/* NEW: PROGRESS BAR STYLES */
.item-status {
  background: #e9ecef;
  position: relative;
  height: 8px;
}

.item-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ffc107;
  /* Yellow for in-progress */
  transition: width 0.4s ease;
}

.item-status-bar.reviewing {
  background: #fd7e14;
  /* Orange for reviewing */
}

.item-status-bar.completed {
  background: #28a745;
  /* Green for completed */
}

/* =============================================
   TRANSCRIPTION CONVENTIONS (COLLAPSIBLE)
   ============================================= */

   .conventions-container {
    margin: 20px 0;
}

.convention-details {
    background: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #EAECEF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.convention-summary {
    font-weight: 600;
    font-size: 1.1em;
    padding: 15px 20px;
    cursor: pointer;
    list-style: none; /* Hide the default marker */
    position: relative;
}

.convention-summary::-webkit-details-marker {
    display: none; /* Hide the default marker in Chrome/Safari */
}

.convention-summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5em;
    color: #007BFF;
    transition: transform 0.2s ease;
}

.convention-details[open] > .convention-summary::after {
    transform: rotate(45deg);
}

.convention-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #EAECEF;
}

.table-conventions {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table-conventions th, .table-conventions td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #EAECEF;
}

.table-conventions th {
    background-color: #F8F9FA;
    font-weight: 600;
}

/* =============================================
   TRANSCRIPT EDITOR STYLES
   ============================================= */

/* NEW: DETAILED TRANSCRIPT EDITOR STYLES */
/* =============================================
   VIDEO PLAYER & TOOLBAR
   ============================================= */

/* Main container for the video player */
#video-player {
  margin: 0 auto 20px auto;
  position: relative;
  z-index: 1000;
  width: 25vw;
  min-width: 280px; /* Add a min-width for usability */
  overflow: hidden;
  background-color: #222;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#video-player video {
  width: 100%;
  display: block;
}

/* Picture-in-picture (PIP) mode for when scrolling */
#video-player.pip {
  position: fixed;
  bottom: 70px; /* Position above the toolbar */
  right: 20px;
  max-width: 280px;
  width: 20vw;
}

/* Playback and autoplay buttons */
button.playback-rate-button, button.autoplay-button {
  line-height: normal;
  color: #333;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 5px 10px;
  margin: 2px;
  border-radius: 4px;
  cursor: pointer;
}

button.playback-rate-button.highlight {
  color: #fff;
  background-color: #007BFF;
  border-color: #0056b3;
}

/* Main toolbar for transcript editor controls */
.transcript-toolbar {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  background: #FFFFFF;
  border-top: 1px solid #EAECEF;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  z-index: 1000;
}

.transcript-toolbar .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5px 0;
}

.transcript-toolbar .control {
    display: block;
    text-align: center;
    cursor: pointer;
    padding: 10px 15px;
    color: #555;
    background: transparent;
    border: none;
    transition: background-color 0.2s ease;
}

.transcript-toolbar .control:hover {
    background-color: #F8F9FA;
}

.transcript-toolbar .key {
    display: inline-block;
    margin-left: 8px;
}

.transcript-toolbar .key span {
    background: #e9ecef;
    color: #333D4B;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    font-size: 0.8em;
}

.transcript-lines {
  border-top: 5px solid #EAECEF;
  border-bottom: 5px solid #EAECEF;
  background-color: #FFFFFF;
  margin: 30px 0;
}

.transcript-lines .line {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  background: #FFFFFF;
  color: #6c757d;
  border-bottom: 1px solid #f0f0f0;
}

.transcript-lines .line:hover {
  background: #F8F9FA !important;
}

.transcript-lines .line.active {
  background: #E9F5FF !important;
  color: #333D4B !important;
}

.transcript-lines .line .speaker {
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  font-size: 1.5em;
  color: #007BFF;
}

.transcript-lines .line .status {
  flex-shrink: 0;
  width: 34px;
  text-align: center;
  font-size: 1.2em;
}

.transcript-lines .line .time {
  flex-shrink: 0;
  width: 80px;
  padding-left: 10px;
  font-family: 'monospace', monospace;
  font-size: 0.9em;
}

.transcript-lines .line .text {
  flex-grow: 1;
  padding-left: 10px;
}

.transcript-lines .line .text input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  height: 56px;
  line-height: 56px;
  color: #333D4B;
}

.transcript-lines .line .text input:focus {
  outline: none;
}

.transcript-lines .line .options {
  flex-shrink: 0;
  width: 80px;
  text-align: right;
  padding-right: 20px;
}

/* Status Colors */
.transcript-lines .line.completed .status:before {
  color: #28a745 !important;
}

.transcript-lines .line.reviewing .status:before {
  color: #fd7e14 !important;
}

.transcript-lines .line.user-edited .status:before {
  color: #007BFF !important;
}


/* =============================================
   COMPLETION STYLES
   ============================================= */

   .transcript-finished,
   .show-when-finished .button {
       display: inline-block;
       background: #28a745;
       color: #fff;
       padding: 12px 28px;
       border-radius: 50px;
       font-weight: bold;
       text-decoration: none;
       transition: all 0.3s ease;
       border: none;
       cursor: pointer;
   }
   
   .transcript-finished:hover,
   .show-when-finished .button:hover {
       background: #218838;
       transform: translateY(-2px);
   }
   
   .show-when-finished {
       text-align: center;
       padding: 40px 20px;
       background-color: #e9f5ff;
       border-radius: 12px;
       margin-top: 30px;
   }
   
   .show-when-finished p {
       font-size: 1.2em;
       margin-bottom: 20px;
   }

/* =============================================
   FOOTER STYLES
   ============================================= */

.site-footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 30px;
  font-size: 0.9em;
  background: #deefff;
  color: #020202;
}


.site-footer .footer-links a.menu-item {
  margin: 0 15px;
  /* color: #EAECEF; */
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-links a.menu-item:hover {
  color: #007BFF;
  text-decoration: none;
}