@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* GLOBAL STYLING */
.page-container {
  gap: 16px;
}

.content-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.content-section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.content-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  background: white;
  color: #11111b;
  padding: 8px;
  border-radius: 10px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  cursor: pointer;
}

.response-message {
  box-sizing: border-box;
  display: none;
  align-items: center;
  gap: 12px;
  color: #ffffffe3;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 500;
  border-radius: 8px;
  text-align: center;
  line-height: 1.5;
  font-size: 16px;
  padding: 6px 12px;
}

.response-message.valid {
  color: #84ff6b;
  background: #273325;
}

.response-message.invalid {
  color: #fff36b;
  background: #323124;
}

/* FORM ELEMENTS */
form {
  gap: 16px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
}

textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 200px;
}

input::placeholder,
textarea::placeholder {
  color: #ffffff9f;
}

input:focus,
textarea:focus {
  outline: none;
  background: #11111b;
  border-color: #89b4fa;
}

.form-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  position: relative;
}

.form-input label {
  margin-bottom: 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Rubik", sans-serif;
}

.form-input .counter {
  color: #ffffff9e;
  font-variant-numeric: tabular-nums;
}

/* File Drop Zone */
.file-drop-zone {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 2px dashed #ffffff45;
  border-radius: 8px;
  text-align: center;
  background: #313244;
}

.file-drop-zone .choose-file {
  max-width: 200px;
  margin-top: 8px;
}

.drop-zone-text-main {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.drop-zone-text-sub {
  font-size: 14px;
  color: #ffffff9e;
  margin: 0;
}

.file-drop-zone.drag-over {
  border-color: #ffffffc0;
  background-color: #41425a;
}

#input-container {
  box-sizing: border-box;
  width: 100%;
}

/* Video Data */
.video-data {
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.video-player {
  width: 100%;
  max-width: 468px;
  max-height: 300px;
  border-radius: 8px;
  object-fit: contain;
  background: #14151c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  outline: 1px solid #22242f;
}

.video-details {
  font-size: 14px;
  color: #cfcfcf;
}

/* admin only */
.admin-only {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.admin-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9798a9;
  font-size: 13px;
  white-space: nowrap;
}

.admin-divider::before,
.admin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #434456;
}

/* Dropdown Styling */
.creator-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #16171f;
  border: 1px solid #3b3d52;
  border-radius: 8px;
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.creator-dropdown li {
  padding: 10px 12px;
  color: #f5f5f7;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #2a2b38;
  transition: background 0.2s;
}

.creator-dropdown li:last-child {
  border-bottom: none;
}

.creator-dropdown li:hover {
  background-color: #1e1f2b;
  color: #fff;
}

/* Container for the list of added collaborators/tags */
.collaborators-list,
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 0;
}

/* Individual Collaborator and Tag Pills */
.collaborator-tag,
.tag-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgb(7 7 9);
  font-size: 13px;
  animation: fadeIn 0.3s ease;
}

.collaborator-tag {
  background: #4f74ff;
}

.tag-pill {
  background: hsl(235, 100%, 65%);
}

/* Remove 'X' button */
.remove-tag {
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.remove-tag:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* UPLOAD VIDEO SECTION */
.content-btn.upload-btn {
  position: relative;
  background: #4f74ff;
  color: #fff;
  overflow: hidden;
  transition: background 0.3s ease;
  border: 1px solid transparent;
}

.content-btn.upload-btn.uploading {
  background: #11111b;
  border-color: #89b4fa;
  cursor: not-allowed;
}

.upload-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #2a7cff;
  transition: width 0.4s ease;
  z-index: 1;
}

.upload-btn-text {
  position: relative;
  z-index: 2;
}

.upload-loader {
  width: 16px;
  aspect-ratio: 1;
  --_g: no-repeat radial-gradient(farthest-side, rgba(255, 255, 255, 0.75) 94%, #0000);
  background:
    var(--_g) 0 0,
    var(--_g) 100% 0,
    var(--_g) 100% 100%,
    var(--_g) 0 100%;
  background-size: 40% 40%;
  animation: ul-anime 0.5s infinite;
}

@keyframes ul-anime {
  100% {
    background-position:
      100% 0,
      100% 100%,
      0 100%,
      0 0;
  }
}
