/**
 * Input Components - ProRank Design System
 *
 * Unified input styling for all form elements
 * Consistent with ProRank premium design
 *
 * @since 3.0.0
 */

/* ============================================
   BASE INPUT STYLES
   ============================================ */

.prorank-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #1f2937;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.prorank-input:focus {
  color: #1f2937;
  background-color: #ffffff;
  border-color: var(--prorank-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.prorank-input:disabled {
  background-color: #f3f4f6;
  opacity: 0.5;
  cursor: not-allowed;
}

.prorank-input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* ============================================
   INPUT SIZES
   ============================================ */

.prorank-input-small {
  width: 80px !important;
}

.prorank-input-medium {
  width: 180px !important;
}

.prorank-input-large {
  width: 300px !important;
}

.prorank-input-full {
  width: 100% !important;
}

/* Number inputs */
.prorank-input-number {
  -moz-appearance: textfield;
}

.prorank-input-number::-webkit-outer-spin-button,
.prorank-input-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ============================================
   INPUT WRAPPER
   ============================================ */

.prorank-input-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.prorank-input-suffix {
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

/* ============================================
   INLINE INPUT LAYOUT
   ============================================ */

.prorank-input-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.prorank-input-inline .prorank-input-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  margin: 0;
}

.prorank-input-inline .prorank-input-help {
  font-size: 12px;
  color: #9ca3af;
  margin-left: 8px;
}

/* ============================================
   RADIO GROUP VERTICAL LAYOUT
   ============================================ */

.prorank-radio-group-vertical {
  flex-direction: column !important;
  gap: 12px !important;
}

.prorank-radio-group-vertical label {
  width: fit-content;
}

/* ============================================
   DISABLED STATE
   ============================================ */

.prorank-radio-group label.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prorank-radio-group label.disabled:hover {
  background-color: transparent;
}

/* ============================================
   TEXTAREA STYLES
   ============================================ */

.prorank-textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  resize: vertical;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.prorank-textarea:focus {
  color: #1f2937;
  background-color: #ffffff;
  border-color: var(--prorank-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

/* ============================================
   SELECT STYLES
   ============================================ */

.prorank-select {
  display: block;
  width: 100%;
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #1f2937;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.prorank-select:focus {
  border-color: var(--prorank-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.prorank-select:disabled {
  background-color: #f3f4f6;
  opacity: 0.5;
  cursor: not-allowed;
}