/* ============================================
   250ginfo.com - Video Dönüştürücü Stilleri
   Kapsamlı dönüştürme aracı UI
   ============================================ */

/* === CONVERTER APP WRAPPER === */
.vc-app {
  background: var(--color-dark-deep);
  border-radius: var(--border-radius);
  border: 2px solid var(--color-border);
  border-bottom: 4px solid rgba(0,0,0,0.3);
  overflow: hidden;
  margin-bottom: 24px;
}

/* === CATEGORY TABS === */
.vc-tabs {
  display: flex;
  background: #0d1b0f;
  border-bottom: 2px solid rgba(139,239,81,0.15);
  overflow-x: auto;
  scrollbar-width: none;
}

.vc-tabs::-webkit-scrollbar { display: none; }

.vc-tab {
  flex: 0 0 auto;
  padding: 14px 20px;
  font-size: 0.813rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vc-tab:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(139,239,81,0.05);
}

.vc-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: rgba(139,239,81,0.08);
}

.vc-tab .tab-icon {
  font-size: 1rem;
}

/* === MAIN CONTENT AREA === */
.vc-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 500px;
}

/* === LEFT: Work Area === */
.vc-work {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === UPLOAD AREA === */
.vc-upload {
  border: 2px dashed rgba(139,239,81,0.3);
  border-radius: var(--border-radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(139,239,81,0.03);
  position: relative;
}

.vc-upload:hover,
.vc-upload.drag-over {
  border-color: var(--color-primary);
  background: rgba(139,239,81,0.08);
}

.vc-upload .upload-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.vc-upload .upload-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.vc-upload .upload-hint {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}

.vc-upload .upload-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--color-primary);
  color: #0d1b0f;
  font-weight: 700;
  font-size: 0.813rem;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-main);
}

.vc-upload .upload-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

/* === FILE LIST (Batch) === */
.vc-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,239,81,0.3) transparent;
}

.vc-file-list::-webkit-scrollbar { width: 5px; }
.vc-file-list::-webkit-scrollbar-track { background: transparent; }
.vc-file-list::-webkit-scrollbar-thumb { background: rgba(139,239,81,0.25); border-radius: 3px; }

.vc-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  transition: all 0.15s;
}

.vc-file-item:hover {
  border-color: rgba(139,239,81,0.2);
}

.vc-file-item.active {
  border-color: var(--color-primary);
  background: rgba(139,239,81,0.08);
}

.vc-file-item .file-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.vc-file-item .file-info {
  flex: 1;
  min-width: 0;
}

.vc-file-item .file-name {
  color: #fff;
  font-size: 0.813rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-file-item .file-meta {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  margin-top: 2px;
}

.vc-file-item .file-status {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.vc-file-item .file-status.waiting {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}

.vc-file-item .file-status.converting {
  background: rgba(255,165,0,0.15);
  color: #ffa500;
}

.vc-file-item .file-status.done {
  background: rgba(139,239,81,0.15);
  color: var(--color-primary);
}

.vc-file-item .file-status.error {
  background: rgba(255,80,80,0.15);
  color: #ff5050;
}

.vc-file-item .file-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.vc-file-item .file-remove:hover {
  background: rgba(255,80,80,0.15);
  border-color: rgba(255,80,80,0.3);
  color: #ff5050;
}

/* === PREVIEW AREA === */
.vc-preview {
  position: relative;
  background: #000;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vc-preview .preview-placeholder {
  color: rgba(255,255,255,0.25);
  font-size: 0.875rem;
  text-align: center;
}

.vc-preview .preview-placeholder .icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

.vc-preview-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.vc-preview-info .info-tag {
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}

.vc-preview-info .info-tag strong {
  color: var(--color-primary);
}

/* === PROGRESS BAR === */
.vc-progress-wrap {
  display: none;
}

.vc-progress-wrap.active {
  display: block;
}

.vc-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vc-progress-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
}

.vc-progress-percent {
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.vc-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.vc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.vc-progress-detail {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  margin-top: 6px;
}

/* === ACTION BUTTONS === */
.vc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.813rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
}

.vc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vc-btn-primary {
  background: var(--color-primary);
  color: #0d1b0f;
  border-color: var(--color-primary-dark);
  border-bottom-width: 3px;
}

.vc-btn-primary:hover:not(:disabled) {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.vc-btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent-dark);
  border-bottom-width: 3px;
}

.vc-btn-accent:hover:not(:disabled) {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

.vc-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.15);
}

.vc-btn-outline:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(139,239,81,0.08);
}

.vc-btn-danger {
  background: transparent;
  color: #ff5050;
  border-color: rgba(255,80,80,0.25);
}

.vc-btn-danger:hover:not(:disabled) {
  background: rgba(255,80,80,0.1);
  border-color: #ff5050;
}

/* === RIGHT SIDEBAR: SETTINGS === */
.vc-sidebar {
  background: #111e13;
  border-left: 2px solid rgba(139,239,81,0.1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,239,81,0.2) transparent;
}

.vc-sidebar::-webkit-scrollbar { width: 5px; }
.vc-sidebar::-webkit-scrollbar-track { background: transparent; }
.vc-sidebar::-webkit-scrollbar-thumb { background: rgba(139,239,81,0.2); border-radius: 3px; }

.vc-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-sidebar-header h3 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.vc-sidebar-header .icon {
  font-size: 1.1rem;
}

/* Settings Panel */
.vc-settings {
  padding: 16px 20px;
  flex: 1;
}

.vc-setting-group {
  margin-bottom: 20px;
}

.vc-setting-group:last-child {
  margin-bottom: 0;
}

.vc-setting-title {
  color: rgba(255,255,255,0.4);
  font-size: 0.688rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.vc-setting-row {
  margin-bottom: 12px;
}

.vc-setting-row:last-child {
  margin-bottom: 0;
}

.vc-setting-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.vc-setting-label span {
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 600;
}

.vc-setting-label .value {
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.vc-select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238bef51' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.vc-select:focus {
  border-color: var(--color-primary);
  outline: none;
  background-color: rgba(139,239,81,0.06);
}

.vc-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-main);
  transition: all 0.15s;
  box-sizing: border-box;
}

.vc-input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.vc-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.vc-range {
  width: 100%;
  accent-color: var(--color-primary);
  margin-top: 4px;
}

.vc-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vc-input-row .vc-input {
  flex: 1;
}

.vc-input-row .separator {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Checkbox / Toggle */
.vc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.vc-toggle-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 600;
}

.vc-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.vc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.vc-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  transition: 0.2s;
}

.vc-switch .slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.vc-switch input:checked + .slider {
  background: var(--color-primary);
}

.vc-switch input:checked + .slider::before {
  transform: translateX(16px);
  background: #0d1b0f;
}

/* Format Grid */
.vc-format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.vc-format-btn {
  padding: 8px 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  text-transform: uppercase;
}

.vc-format-btn:hover {
  border-color: rgba(139,239,81,0.4);
  color: var(--color-primary);
  background: rgba(139,239,81,0.08);
}

.vc-format-btn.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(139,239,81,0.12);
  box-shadow: 0 0 8px rgba(139,239,81,0.15);
}

/* Platform Preset Cards */
.vc-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vc-preset-card {
  padding: 12px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.vc-preset-card:hover {
  border-color: rgba(139,239,81,0.3);
  background: rgba(139,239,81,0.06);
}

.vc-preset-card.active {
  border-color: var(--color-primary);
  background: rgba(139,239,81,0.1);
}

.vc-preset-card .preset-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  display: block;
}

.vc-preset-card .preset-name {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.vc-preset-card .preset-detail {
  color: rgba(255,255,255,0.4);
  font-size: 0.625rem;
}

/* Aspect Ratio Visual Selector */
.vc-aspect-grid {
  display: flex;
  gap: 8px;
}

.vc-aspect-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.vc-aspect-btn:hover {
  border-color: rgba(139,239,81,0.3);
}

.vc-aspect-btn.active {
  border-color: var(--color-primary);
  background: rgba(139,239,81,0.1);
}

.vc-aspect-btn .aspect-box {
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 3px;
}

.vc-aspect-btn.active .aspect-box {
  border-color: var(--color-primary);
}

.vc-aspect-btn .aspect-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.625rem;
  font-weight: 700;
}

.vc-aspect-btn.active .aspect-label {
  color: var(--color-primary);
}

/* === SETTINGS PANEL SECTIONS (for each tab) === */
.vc-panel {
  display: none;
}

.vc-panel.active {
  display: block;
}

/* === NOTIFICATION TOAST === */
.vc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: #1a2e1c;
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-size: 0.813rem;
  font-weight: 600;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.vc-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.vc-toast.error {
  border-color: #ff5050;
}

/* === OUTPUT RESULTS === */
.vc-result {
  background: rgba(139,239,81,0.06);
  border: 1px solid rgba(139,239,81,0.2);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  display: none;
}

.vc-result.active {
  display: block;
}

.vc-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vc-result-header h4 {
  color: var(--color-primary);
  font-size: 0.875rem;
}

.vc-result-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.vc-result-stat {
  text-align: center;
}

.vc-result-stat .stat-value {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: block;
}

.vc-result-stat .stat-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* === SECTION DIVIDER === */
.vc-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 16px 0;
}

/* === BATCH COUNTER === */
.vc-batch-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.vc-batch-info .batch-count {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}

.vc-batch-info .batch-count strong {
  color: var(--color-primary);
}

/* === SUBTITLE TEXT AREA === */
.vc-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  resize: vertical;
  transition: all 0.15s;
  box-sizing: border-box;
}

.vc-textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* === ESTIMATED OUTPUT INFO === */
.vc-estimate {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
}

.vc-estimate-title {
  color: rgba(255,255,255,0.4);
  font-size: 0.688rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vc-estimate-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.vc-estimate-row span:first-child {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}

.vc-estimate-row span:last-child {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .vc-body {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 768px) {
  .vc-body {
    grid-template-columns: 1fr;
  }

  .vc-sidebar {
    border-left: none;
    border-top: 2px solid rgba(139,239,81,0.1);
    max-height: 400px;
  }

  .vc-tabs {
    padding: 0 8px;
  }

  .vc-tab {
    padding: 10px 12px;
    font-size: 0.75rem;
  }

  .vc-work {
    padding: 16px;
  }

  .vc-upload {
    padding: 28px 16px;
  }

  .vc-format-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vc-preset-grid {
    grid-template-columns: 1fr;
  }

  .vc-actions {
    flex-direction: column;
  }

  .vc-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .vc-tab .tab-text {
    display: none;
  }

  .vc-tab {
    padding: 10px 14px;
  }

  .vc-tab .tab-icon {
    font-size: 1.2rem;
  }

  .vc-aspect-grid {
    flex-wrap: wrap;
  }
}
