/* ============================================
   BATCH-TRANSFER.CSS - Batch NFT Transfer Page
   Uses existing .btn classes from search-bar.css
   ============================================ */

/* ============================================
   TRANSFER CONTROLS PANEL
   ============================================ */

.transfer-controls-panel {
  background: linear-gradient(to bottom, #160d0b, #341e13);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--warm-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.control-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.selection-count {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to bottom, #0d0806, #1a0f0a);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
}

.count-label {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.count-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  min-width: 50px;
  text-align: center;
}

.control-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================
   INPUT GROUP
   ============================================ */

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.address-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-family: 'Courier New', monospace;
  background: linear-gradient(to bottom, #0d0806, #1a0f0a);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: all 0.3s ease;
}

.address-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.address-input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.input-hint {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* ============================================
   BUTTON GROUP
   ============================================ */

.button-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button-group .btn {
  flex: 1;
  min-width: 180px;
}

.button-group .btn-primary {
  min-width: 240px;
}

/* ============================================
   STATUS MESSAGE
   ============================================ */

.status-message {
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-message::before {
  font-size: 24px;
}

.status-pending {
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid rgba(255, 193, 7, 0.3);
  color: #FFC107;
}

.status-pending::before {
  content: '⏳';
}

.status-success {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid rgba(76, 175, 80, 0.3);
  color: #4CAF50;
}

.status-success::before {
  content: '✓';
}

.status-error {
  background: rgba(255, 107, 107, 0.1);
  border: 2px solid rgba(255, 107, 107, 0.3);
  color: #FF6B6B;
}

.status-error::before {
  content: '✗';
}

/* ============================================
   NFT GRID
   ============================================ */

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.nft-card {
  background: linear-gradient(to bottom, #0d0806, #1a0f0a);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.2);
  border-color: var(--orange);
}

.nft-card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
  animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 140, 0, 0.9);
  }
}

.nft-card-inner {
  position: relative;
}

.selection-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.checkbox {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-radius: 8px;
  background: rgba(13, 8, 6, 0.8);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nft-card:hover .checkbox {
  border-color: var(--orange);
  background: rgba(13, 8, 6, 0.95);
}

.nft-card.selected .checkbox {
  background: var(--orange);
  border-color: var(--orange);
}

.nft-card.selected .checkbox::after {
  content: '✓';
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.nft-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.nft-info {
  padding: 16px;
  background: linear-gradient(to bottom, #0d0806, #1a0f0a);
}

.nft-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.nft-id {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Courier New', monospace;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 24px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  text-align: center;
  gap: 16px;
}

.empty-icon {
  font-size: 80px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 28px;
  color: var(--text);
  margin: 0;
}

.empty-state p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 500px;
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .transfer-controls-panel {
    padding: 24px;
  }

  .control-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .control-header h2 {
    font-size: 24px;
  }

  .selection-count {
    width: 100%;
    justify-content: center;
  }

  .button-group {
    flex-direction: column;
  }

  .button-group .btn {
    width: 100%;
    min-width: auto;
  }

  .nft-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .transfer-controls-panel {
    padding: 20px;
  }

  .control-header h2 {
    font-size: 20px;
  }

  .count-value {
    font-size: 24px;
    min-width: 40px;
  }

  .address-input {
    padding: 12px 16px;
    font-size: 14px;
  }

  .nft-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .nft-name {
    font-size: 13px;
  }

  .nft-id {
    font-size: 11px;
  }

  .checkbox {
    width: 28px;
    height: 28px;
  }

  .selection-indicator {
    top: 8px;
    right: 8px;
  }
}