/* Minecraft UUID Lookup - Results Styling */

/* Error text inside results card */
.lookup-error-text {
  color: #dc2626;
  font-size: 16px;
  font-weight: 600;
}

/* Results card */
.lookup-results {
  max-width: 570px;
  margin: 30px auto 0;
  padding: 24px;
  border: 2px solid #d1d5db;
  border-radius: 24px;
  background: #f8f9fa;
}

/* Desktop: flex row - skin left, all data right */
.lookup-results-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lookup-skin {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.lookup-skin img {
  image-rendering: pixelated;
  width: 100px !important;
  height: auto;
  margin-top: 0;
}

/* Profile data fields */
.lookup-data {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.lookup-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lookup-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lookup-field-value-row {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lookup-field-value {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  word-break: break-all;
}

.lookup-field-value-mono {
  font-family: Consolas, 'Roboto Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Liberation Mono', 'Courier New', monospace;
  font-size: 14px;
  font-weight: 500;
}

.lookup-field-value-small {
  font-size: 12px;
}

/* Copy button inside field rows */
.lookup-copy-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lookup-copy-btn:hover {
  color: #374151;
  background: #e5e7eb;
  border-color: #d1d5db;
}

.lookup-copy-btn .copy-icon {
  width: 14px;
  height: 14px;
}

.lookup-copy-btn.copied {
  color: #16a34a;
}

/* Mobile: skin + username side by side, rest below */
@media (max-width: 600px) {
  .lookup-results {
    padding: 16px;
  }

  .lookup-results-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px 16px;
  }

  .lookup-skin {
    grid-row: 1 / 3;
    grid-column: 1;
    padding: 0 8px;
    align-self: center;
  }

  .lookup-skin img {
    width: 70px !important;
  }

  /* Children become direct grid items */
  .lookup-data {
    display: contents;
  }

  /* Username + model sit next to skin */
  .lookup-data .lookup-field:nth-child(1) {
    grid-column: 2;
    align-self: end;
  }

  .lookup-data .lookup-field:nth-child(2) {
    grid-column: 2;
    align-self: start;
  }

  /* All remaining fields span full width below */
  .lookup-data .lookup-field:nth-child(n+3) {
    grid-column: 1 / -1;
  }

  /* Error state: skin doesn't need to span 2 rows */
  .lookup-results.is-error .lookup-skin {
    grid-row: 1;
  }

  .lookup-error-text {
    grid-column: 2;
    align-self: center;
  }

  .lookup-field-value-mono {
    font-size: 12px;
  }
}

@media (max-width: 450px) {
  .lookup-skin img {
    width: 60px !important;
  }
}

@media (max-width: 300px) {
  .lookup-results-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .lookup-skin {
    align-self: center;
  }

  .lookup-skin img {
    width: 50px !important;
  }

  .lookup-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .lookup-data .lookup-field:nth-child(1),
  .lookup-data .lookup-field:nth-child(2) {
    align-self: stretch;
  }

  .lookup-error-text {
    text-align: center;
  }
}

/* Cross-link to UUID lookup */
.stealer-cross-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #6b7280;
}

.stealer-cross-link a {
  color: #3984a7;
  text-decoration: none;
  font-weight: 500;
}

.stealer-cross-link a:hover {
  text-decoration: underline;
}
