/* ========================================
   AigcMart - Post Job Styles
   ======================================== */

.post-job-main {
  padding: 32px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.post-job-header {
  margin-bottom: 32px;
}

.post-job-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-job-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Form Sections */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.form-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Type options */
.type-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.type-option {
  cursor: pointer;
}

.type-option input {
  position: absolute;
  opacity: 0;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-dark);
  transition: all 0.2s;
  text-align: center;
}

.type-option input:checked + .type-card {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
}

.type-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.type-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Price input group */
.price-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input-group input {
  flex: 1;
}

.price-input-group span {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.price-input-group select {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  cursor: pointer;
}

/* Skill tags */
.skill-tags-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.skill-tags-input:focus-within {
  border-color: var(--primary);
}

.selected-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-light);
  font-size: 0.8125rem;
  font-weight: 500;
}

.skill-tag .remove {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.skill-tag .remove:hover {
  opacity: 1;
}

.skill-tags-input input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9375rem;
  flex: 1;
  min-width: 120px;
  padding: 4px;
}

.skill-tags-input input::placeholder {
  color: var(--text-muted);
}

.skill-suggestions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.skill-suggestions button {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.skill-suggestions button:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Level options */
.level-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.level-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.level-options input[type="radio"] {
  accent-color: var(--primary);
}

/* File upload */
.file-upload .upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-input);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.file-upload .upload-area:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.04);
}

.upload-area .icon {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.upload-area span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .post-job-main {
    padding: 20px 16px;
  }
  .form-section {
    padding: 20px;
  }
  .type-options {
    grid-template-columns: 1fr;
  }
  .price-input-group {
    flex-wrap: wrap;
  }
  .price-input-group input,
  .price-input-group select {
    width: 100%;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn {
    width: 100%;
  }
}
