/* =========================
   Notes Page Specifics
   ========================= */

/* 
   Everything is now handled in shared-styles.css.
   Add overrides here if you want this specific page
   to look different than the Feed or Network page.
*/


/* =========================
   my-notes.css
   ========================= */

/* 
   Most styles are now imported from shared-ui.css.
   We only need to set the width and flex behavior 
   to match the 'Streamers Feed' layout.
*/

.notesdir-layout .notesdir-main {
  /* Matches the width from your my-feed.css */
  max-width: 980px; 
  flex: 1;
}

/* 
   Since shared-ui.css sets .notes-feed to max-width: 820px,
   we need to override it here if you want the feed to utilize 
   the full 980px available in the main container.
*/
.notesdir-main .notes-feed {
  max-width: 100%;
}

.notes-compose-video-hint {
  margin-top: -2px;
  color: #aaa;
  font-size: 12px;
  line-height: 1.4;
}

/* =========================================================
   MY NOTES: Uploaded media share-code cards
   ========================================================= */

.upload-output-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.upload-output-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.upload-output-summary-title {
  font-size: 14px;
}

.upload-output-meta {
  color: #aaa;
  font-size: 12px;
}

.upload-output-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-code-card {
  --upload-card-accent: #777;
  --upload-card-bg: rgba(255, 255, 255, 0.035);

  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 4px solid var(--upload-card-accent);
  border-radius: 11px;
  background: var(--upload-card-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

.upload-code-card--viewer {
  --upload-card-accent: #5ca8ff;
  --upload-card-bg: rgba(92, 168, 255, 0.055);
}

.upload-code-card--bbcode {
  --upload-card-accent: #ffb75c;
  --upload-card-bg: rgba(255, 183, 92, 0.05);
}

.upload-code-card--markdown {
  --upload-card-accent: #65d49a;
  --upload-card-bg: rgba(101, 212, 154, 0.05);
}

.upload-code-head {
  padding: 11px 12px 8px;
}

.upload-code-title {
  color: #f3f3f3;
  font-size: 13px;
  font-weight: 800;
}

.upload-code-description {
  margin-top: 3px;
  color: #aaa;
  font-size: 11px;
  line-height: 1.35;
}

.notes-compose .upload-code-text {
  display: block;
  width: calc(100% - 24px);
  min-height: 64px;
  margin: 0 12px;
  padding: 10px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #050505;
  color: #eee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.upload-code-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.upload-code-actions .upload-code-action {
  width: auto;
  min-width: 72px;
  height: 34px;
  padding: 0 12px;
  line-height: normal;
  white-space: nowrap;
}

.upload-code-actions .upload-code-action:first-child {
  min-width: 118px;
  border-color: color-mix(in srgb, var(--upload-card-accent) 55%, transparent);
  background: color-mix(in srgb, var(--upload-card-accent) 17%, transparent);
}

.upload-code-actions .upload-code-action:first-child:hover {
  background: color-mix(in srgb, var(--upload-card-accent) 26%, transparent);
}

@media (max-width: 520px) {
  .upload-output-panel {
    padding: 9px;
  }

  .upload-code-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .upload-code-actions .upload-code-action,
  .upload-code-actions .upload-code-action:first-child {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   MY NOTES: Video-note composer
   ========================================================= */

.video-compose-panel {
  border-color: rgba(86, 154, 255, 0.34);
}

.video-compose {
  display: grid;
  gap: 15px;
}

.video-compose-intro {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(86, 154, 255, 0.24);
  border-radius: 10px;
  background: rgba(86, 154, 255, 0.07);
  color: #cbdcf5;
  font-size: 13px;
  line-height: 1.45;
}

.video-compose-field,
.video-source-panel {
  display: grid;
  gap: 7px;
}

.video-compose label,
.video-source-options legend {
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 750;
}

.video-compose input[type="text"],
.video-compose input[type="url"],
.video-compose input[type="file"],
.video-compose textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #080808;
  color: #f5f5f5;
  font: inherit;
}

.video-compose textarea {
  min-height: 100px;
  resize: vertical;
}

.video-compose input:focus,
.video-compose textarea:focus {
  border-color: rgba(86, 154, 255, 0.72);
  outline: 2px solid rgba(86, 154, 255, 0.16);
  outline-offset: 1px;
}

.video-compose-help {
  color: #aaa;
  font-size: 12px;
  line-height: 1.4;
}

.video-source-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.video-source-options legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
}

.video-source-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.video-source-choice:has(input:checked) {
  border-color: rgba(86, 154, 255, 0.68);
  background: rgba(86, 154, 255, 0.11);
}

.video-source-choice input[type="radio"] {
  appearance: auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #569aff;
}

.video-upload-button {
  width: max-content;
  min-width: 125px;
  margin-top: 3px;
}

.video-compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.video-compose-actions .notes-compose-status {
  flex: 1 1 240px;
}

@media (max-width: 620px) {
  .video-source-options {
    grid-template-columns: 1fr;
  }

  .video-source-options legend {
    grid-column: 1;
  }

  .video-compose-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .video-compose-actions .notes-compose-status {
    flex-basis: auto;
  }

  .video-compose-actions .notes-publish-btn,
  .video-upload-button {
    width: 100%;
  }
}
