/* TubeVault - Custom styles for the YouTube Museum */

/* Footer Notice Styles */
.footer-notice {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-top: 30px;
  border-top: 1px solid #ddd;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

.disclaimer-text {
  font-size: 11px;
  color: #666;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}

/* Users Page Styles */
.page-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.page-content {
  width: 100%;
  max-width: 1200px;
  min-width: 320px;
  box-sizing: border-box;
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 2px;
  color: #666;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0px;
}

.user-peep-item {
  position: relative;
}

.user-thumbnail {
  cursor: pointer;
  margin: 0 auto 8px;
  position: relative;
}

.status-overlay {
  position: absolute;
  bottom: 3px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.status-overlay.suspended {
  background-color: rgba(255, 0, 0, 0.7);
}

.status-overlay.deleted {
  background-color: rgba(128, 128, 128, 0.7);
}

.status-overlay.hidden {
  background-color: rgba(179, 116, 0, 0.7);
}

.username-link {
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: bold;
  color: #03c;
  text-decoration: none;
}

.username-link.suspended {
  color: #999;
  text-decoration: line-through;
}

.username-link.deleted {
  color: #666;
  text-decoration: line-through;
}

.username-link:hover {
  text-decoration: none;
}

.join-date {
  font-size: 11px;
  color: #666;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 500px;
  max-width: 95%;
  max-height: 90%;
  overflow: auto;
  margin: 20px;
}

.modal-content.video-modal {
  width: fit-content;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-close-button {
  background: #f6f6f6;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
}

.profile-content {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.profile-avatar {
  position: relative;
}

.profile-info {
  flex: 1;
}

.profile-username {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #000;
  text-decoration: none;
}

.profile-username.suspended {
  color: #999;
  text-decoration: line-through;
}

.profile-username.deleted {
  color: #666;
  text-decoration: line-through;
}

.profile-details {
  font-size: 12px;
  line-height: 1.4;
}

.profile-info-label {
  font-weight: bold;
}

.profile-info-value {
  font-weight: normal;
  margin-left: 6px;
}

.profile-value-link {
  color: #03c;
  text-decoration: none;
  font-weight: bold;
}

.profile-value-link.unconfirmed {
  color: #ff4444;
}

.profile-value-link:hover {
  text-decoration: underline;
}

.profile-status-value {
  font-weight: bold;
  text-transform: capitalize;
}

.profile-status-value.suspended {
  color: #d00;
}

.profile-status-value.deleted {
  color: #666;
}

.about-section {
  margin-top: 15px;
}

.about-title {
  font-size: 14px;
  margin-bottom: 8px;
}

.about-text {
  font-size: 12px;
  line-height: 1.4;
  color: #333;
}

.notes-section {
  margin-top: 15px;
}

.notes-text {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  font-style: italic;
  background: #f9f9f9;
  padding: 8px;
  border-radius: 3px;
  border-left: 3px solid #ddd;
}

.unconfirmed-section {
  margin-top: 15px;
}

.unconfirmed-text {
  font-size: 12px;
  line-height: 1.4;
  color: #cc3333;
  font-style: italic;
  background: #fff5f5;
  padding: 8px;
  border-radius: 3px;
  border-left: 3px solid #ff4444;
}

.stats-section {
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.4;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 11px;
  color: #666;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Additional User Page Styles */
.username-container {
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: bold;
}

.join-date-container {
  font-size: 11px;
  color: #666;
}

/* Videos Section Styles */
.videos-section {
  margin-top: 15px;
}

.videos-text {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

.video-list {
  margin-top: 10px;
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
}

.video-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex-shrink: 0;
}

.video-item-link:hover {
  text-decoration: none;
}

.video-item-link:hover .video-thumbnail {
  opacity: 0.8;
  transition: all 0.2s ease;
}

.video-item {
  display: block;
  width: 120px;
}

.video-thumbnail {
  width: 120px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-info {
  width: 100%;
}

.video-title {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 3px 0;
  color: #0f0f0f;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 9px;
  color: #606060;
  line-height: 1.2;
}

.video-separator {
  margin: 0 4px;
}

/* Oldest Videos Page Styles */
.video-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 15px 0;
}

.video-grid-item {
  display: flex;
  flex-direction: column;
}

.video-thumbnail-container {
  position: relative;
  cursor: pointer;
  margin-bottom: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

.video-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.video-thumbnail-container:hover .video-thumbnail {
  opacity: 0.8;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 4px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 2px;
  font-family: Arial, sans-serif;
}

/* Video-specific status overlay styles */
.video-status-overlay {
  position: absolute;
  bottom: 12px;
  left: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 2px 4px;
}

.video-status-unknown {
  background-color: rgba(128, 128, 128, 0.7);
}

.video-status-deleted {
  background-color: rgba(255, 0, 0, 0.7);
}

.video-status-terminated {
  background-color: rgba(139, 0, 0, 0.7);
}

.video-status-private {
  background-color: rgba(255, 165, 0, 0.7);
}

.video-status-striked {
  background-color: rgba(255, 69, 0, 0.7);
}

.video-status-public {
  background-color: rgba(0, 128, 0, 0.7);
}

.video-status-recovered {
  background-color: rgba(34, 139, 34, 0.7);
}

.video-info h3.video-title {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 4px 0;
  color: #0f0f0f;
  cursor: pointer;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-info h3.video-title:hover {
  color: #03c;
}

.video-meta {
  font-size: 11px;
  color: #606060;
  line-height: 1.2;
}

.video-username {
  font-weight: 500;
}

/* Video Modal Styles */
.video-modal-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.video-player-section {
  flex: 0 0 auto;
}

.video-thumbnail-large {
  position: relative;
  width: 400px;
  border-radius: 4px;
  overflow: hidden;
}

.video-thumbnail-large img {
  width: 100%;
  height: auto;
  display: block;
}

.video-details {
  flex: 0 0 350px;
  width: 100%;
}

.video-modal-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.archive-icon {
  margin-left: 8px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  color: #666 !important;
  display: inline-flex;
  align-items: center;
}

.archive-icon:hover {
  opacity: 1;
  text-decoration: none;
}

.video-modal-meta {
  margin-bottom: 15px;
}

.video-description {
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 200px;
  line-height: 1.4;
}

.video-player {
  width: 600px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.video-username-link {
  color: #000 !important;
  text-decoration: none !important;
}

.video-username-link:hover {
  color: #000 !important;
  text-decoration: none !important;
}

.video-id-link {
  color: #000 !important;
  text-decoration: none !important;
}

.video-id-link:hover {
  color: #000 !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .video-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .video-modal-content {
    flex-direction: column;
  }
  
  .video-player-section {
    width: 100%;
  }
  
  .video-thumbnail-large {
    max-width: 100%;
  }
  
  .video-details {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
  }
  
  .video-player {
    width: 100%;
  }
  
  .modal-content.video-modal {
    height: fit-content;
  }
}

/* ==================================== */
/* DOCUMENTATION PAGE STYLES */
/* ==================================== */

/* Documentation Page Layout Styles */
.about-pages {
    background-color: #f1f1f1;
    min-height: 81vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
}

#content {
    margin: 0 auto;
    width: 970px;
}

.ytg-base {
    text-align: center;
}

.ytg-wide {
    width: 970px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Left Navigation Column */
.ytg-1col {
    width: 165px;
    float: left;
    margin-top: 53px;
}

.top-level a {
    color: #353535;
    display: block;
    padding: 5px;
    font-weight: bold;
    text-decoration: none;
}

.top-level a:hover {
    text-decoration: none;
}

.sub-level a {
    display: block;
    padding: 5px;
    text-decoration: none;
}

.sub-level a:hover {
    text-decoration: none;
}

.indented {
    margin-left: 10px;
}

.item-highlight {
    display: block;
    background: #dadada;
    color: #000 !important;
    font-weight: bold;
    text-decoration: none;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

/* Main Article Content */
#yts-article {
    padding-top: 10px;
    zoom: 1;
    color: #333;
    overflow: hidden; /* Contains the floated left column */
}

#yts-article #article-container {
    background-color: #fff;
    border: 1px solid #c1c1c1;
    padding: 20px;
    font-size: 13px;
}

#yts-article #header {
    position: relative;
    font-size: 30px;
    font-weight: bold;
    min-height: 40px;
    height: auto;
    padding-left: 0;
    margin-bottom: 6px;
    color: #000;
    line-height: 1.2;
}

#yts-article h2 {
    font-size: 1.3333em; /* 16px */
    font-weight: bold;
    margin-top: 6px;
    margin-bottom: 3px;
}

#yts-article .with-separator {
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

#yts-article p {
    line-height: 15px;
    margin-bottom: 12px;
}

#yts-article a {
    color: #03c;
    text-decoration: none;
}

#yts-article a:hover {
    text-decoration: underline;
}

#yts-article img {
    border-radius: 8px;
}

/* Markdown table styles */
.markdown-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
    border: 1px solid #d1d9e0;
}

.markdown-table th,
.markdown-table td {
    border: 1px solid #d1d9e0;
    padding: 8px 12px;
    text-align: left;
}

.markdown-table th {
    background-color: #f6f8fa;
    font-weight: bold;
}

.markdown-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#yts-article ol.lower-roman {
    list-style-type: lower-roman;
    margin-bottom: 10px;
}

#yts-article ol.lower-roman li {
    margin-top: 6px;
    margin-bottom: 6px;
    margin-left: 36px;
}

/* Code block styles - override Prism defaults for consistency */
#yts-article pre[class*="language-"],
#yts-article pre {
    background-color: #f6f8fa !important;
    border: 1px solid #d1d9e0 !important;
    border-radius: 6px !important;
    color: #24292f !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
    overflow: auto !important;
    padding: 16px !important;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace !important;
}

#yts-article code[class*="language-"],
#yts-article code {
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12px;
    padding: 0.2em 0.4em;
}

#yts-article pre code[class*="language-"],
#yts-article pre code {
    background-color: transparent !important;
    border: 0 !important;
    display: inline !important;
    line-height: inherit !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    word-wrap: normal !important;
    font-size: 12px !important;
}

/* Header utility navigation fix */
#masthead-utility {
    min-width: 280px;
    white-space: nowrap;
}

#masthead-utility a {
    display: inline-block;
    white-space: nowrap;
}

/* Documentation Button Styles */
.yt-uix-button {
    padding: 0 .5em;
    height: 2.0833em;
    border: 1px solid #ccc;
    color: #000;
    background: #f6f6f6;
    background-image: linear-gradient(to bottom, #ffffff, #efefef);
    border-radius: 3px;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    overflow: visible;
}

.yt-uix-button:hover {
    border-color: #999;
    background: #f3f3f3;
    background-image: linear-gradient(to bottom, #ffffff, #ebebeb);
    outline: 0;
    box-shadow: 0 0 3px #999;
}

.yt-uix-button-content {
    display: inline-block;
    vertical-align: middle;
}

/* Documentation Responsive Styles */
@media (max-width: 1024px) {
    .about-pages {
        padding: 10px;
    }
    
    #content {
        width: 100%;
        max-width: none;
    }
    
    .ytg-wide {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .ytg-1col {
        width: 100%;
        float: none;
        margin-top: 0;
        margin-bottom: 20px;
        order: 1;
    }
    
    #yts-article {
        width: 100%;
        float: none;
        order: 2;
    }
    
    #yts-article #article-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .about-pages {
        padding: 5px;
    }
    
    #yts-article #header {
        font-size: 24px;
    }
    
    #yts-article #article-container {
        padding: 10px;
        font-size: 12px;
    }
}

/* ==================================== */
/* VIDEO METADATA STYLES */
/* ==================================== */

/* Custom small text class */
.video-meta-small-text {
    font-size: 11px !important;
    font-family: Arial, sans-serif !important;
    color: #606060 !important;
    line-height: 1.2 !important;
}

.video-meta-separator {
    font-size: 11px !important;
    margin: 0 4px !important;
    color: #606060 !important;
}