/**
 * 뉴로메트릭 - 모바일 관리자 라디오 CSS
 */

/* ===== 라디오 서브탭 ===== */
.radio-subtab {
  display: none;
}

.radio-subtab.active {
  display: block;
}

/* ===== 라디오 콘텐츠 카드 ===== */
.radio-content-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.radio-content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.radio-content-header:active {
  opacity: 0.7;
}

.radio-content-info {
  flex: 1;
  min-width: 0;
}

.radio-content-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.radio-content-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.radio-content-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.radio-content-meta:active {
  opacity: 0.7;
}

.radio-content-status {
  margin-left: 8px;
  flex-shrink: 0;
}

.radio-status-public {
  color: var(--success);
  font-size: 18px;
}

.radio-status-scheduled {
  color: var(--warning);
  font-size: 18px;
}

.radio-status-private {
  color: var(--text-muted);
  font-size: 18px;
}

.radio-content-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.radio-content-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.radio-content-actions .btn {
  flex: 1;
  font-size: 13px;
  padding: 8px;
  white-space: nowrap;
}

/* ===== 라디오 댓글 관리 ===== */
.radio-comment-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.radio-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.radio-comment-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.radio-comment-date {
  font-size: 12px;
  color: var(--text-muted);
}

.radio-comment-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
  margin-bottom: 12px;
}

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

/* ===== 라디오 카테고리 카드 ===== */
.radio-category-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.radio-category-info {
  flex: 1;
  min-width: 0;
}

.radio-category-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-category-icon {
  font-size: 20px;
}

.radio-category-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.radio-category-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.radio-category-actions {
  display: flex;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

.radio-category-actions .btn {
  font-size: 13px;
  padding: 6px 12px;
}

/* ===== 라디오 질문 카드 ===== */
.radio-question-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.radio-question-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.radio-question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.radio-question-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

/* ===== 댓글 관리 페이지 ===== */
.radio-comment-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.radio-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.radio-comment-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.radio-comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.radio-comment-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.radio-comment-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.radio-comment-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.radio-comment-empty-text {
  font-size: 14px;
  color: var(--text-muted);
}

.radio-question-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.radio-question-status.pending {
  background: #FFF7ED;
  color: #f59e0b;
}

.radio-question-status.answered {
  background: #DCFCE7;
  color: #22c55e;
}

.radio-question-status.hold {
  background: #F3F4F6;
  color: #6b7280;
}

.radio-question-content {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.radio-question-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.radio-question-meta > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 라디오 업로드 진행바 ===== */
.radio-upload-progress {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.radio-upload-progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* ===== 라디오 썸네일 미리보기 ===== */
.radio-thumbnail-preview-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 12px;
}

.radio-thumbnail-preview-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.radio-thumbnail-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 탭바 5개 대응 (스크롤 가능) ===== */
.mobile-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 1000;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-tab-bar::-webkit-scrollbar {
  display: none;
}

.mobile-tab-bar .tab-item {
  flex: 0 0 20%;
  min-width: 70px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: white;
  text-decoration: none;
}

.mobile-tab-bar .tab-item.active {
  color: var(--primary);
  background: var(--primary-light);
}

.tab-icon {
  font-size: 20px;
}

.tab-label {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== 모바일 반응형 (작은 화면) ===== */
@media (max-width: 375px) {
  .mobile-tab-bar .tab-item {
    min-width: 65px;
  }
  
  .tab-icon {
    font-size: 18px;
  }
  
  .tab-label {
    font-size: 10px;
  }
}

/* ===== 라디오 콘텐츠 상세 페이지 ===== */
.radio-detail-section {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.radio-detail-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.radio-detail-field {
  margin-bottom: 16px;
}

.radio-detail-field:last-child {
  margin-bottom: 0;
}

.radio-detail-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.radio-detail-value {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}

.radio-audio-player {
  width: 100%;
  margin-top: 8px;
}

/* ===== 필터 카운트 배지 ===== */
.filter-count {
  display: inline-block;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.text-filter-btn.active .filter-count {
  background: var(--primary);
  color: white;
}

/* ===== 빈 상태 메시지 ===== */
.radio-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.radio-empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.radio-empty-state-text {
  font-size: 15px;
  line-height: 1.6;
}
