/* My Content page styles */

.submit-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.submit-header {
  margin-bottom: 2rem;
}

.submit-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.submit-subtitle {
  color: var(--color-text-muted);
}

/* Section dividers */
.content-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.content-section:last-child {
  border-bottom: none;
}

.content-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

/* ─── Content Library Grid ─── */

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.content-card:hover {
  border-color: var(--color-accent);
}

.content-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a0a;
  overflow: hidden;
}

.content-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card-info {
  padding: 0.75rem;
}

.content-card-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-provider {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--color-border);
  color: var(--color-text-muted);
  margin-right: 0.4rem;
}

/* Status badges */
.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.status-approved {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.status-rejected {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.status-scheduled {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
}

.status-airing {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.status-available {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.status-completed {
  background: rgba(158, 158, 158, 0.15);
  color: #9e9e9e;
}

.rejection-reason {
  font-size: 0.8rem;
  color: #f44336;
  margin-top: 0.4rem;
  font-style: italic;
}

/* Rotation toggle */
.rotation-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  cursor: pointer;
}

.rotation-toggle input[type="checkbox"] {
  accent-color: var(--color-accent);
}

/* ─── Channel Badge ─── */

.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--color-success);
  margin-bottom: 1rem;
}

/* ─── Submit Form ─── */

.submit-form {
  max-width: 600px;
}

.form-row-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.select-inline {
  padding: 0.4rem 0.6rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.85rem;
}

.submit-preview {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.submit-thumb {
  width: 120px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}

.submit-preview-info p {
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}

/* ─── My Slots ─── */

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slot-assign-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.slot-time {
  font-size: 0.85rem;
  white-space: nowrap;
  min-width: 200px;
}

.slot-content-info {
  flex: 1;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ─── Assign Modal ─── */

.assign-modal {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 500px;
  width: 90vw;
}

.assign-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.assign-modal h2 {
  margin-bottom: 0.5rem;
}

.assign-content-list {
  max-height: 400px;
  overflow-y: auto;
  margin: 1rem 0;
}

.assign-content-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: border-color var(--transition);
}

.assign-content-option:hover {
  border-color: var(--color-accent);
}

.assign-thumb {
  width: 60px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}

.assign-label {
  flex: 1;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assign-provider {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--color-border);
  color: var(--color-text-muted);
}

.assign-actions {
  display: flex;
  justify-content: flex-end;
}

/* ─── TOS Modal ─── */

.tos-modal {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 550px;
  width: 90vw;
}

.tos-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.tos-modal h2 {
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.tos-content {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.tos-content ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.tos-content li {
  margin-bottom: 0.5rem;
}

.tos-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ─── Responsive ─── */

@media (max-width: 600px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .slot-assign-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .slot-time {
    min-width: unset;
  }

  .submit-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .submit-thumb {
    width: 100%;
  }
}
