* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0B0C10;
  color: #C5C6C7;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}

.container {
  width: 100%;
  max-width: 680px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #66FCF1;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #6B7280;
  font-size: 14px;
  margin-top: 8px;
}

/* Form */
.scrape-form {
  margin-bottom: 32px;
}

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

.url-input {
  flex: 1;
  padding: 12px 16px;
  background: #1F2833;
  border: 1px solid #1F2833;
  border-radius: 8px;
  color: #C5C6C7;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.url-input::placeholder {
  color: #6B7280;
}

.url-input:focus {
  border-color: #45A29E;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #66FCF1;
  color: #0B0C10;
  border: none;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  min-width: 100px;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #0B0C10;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-spinner {
  display: block;
}

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

/* Result area */
.result-area {
  background: #1F2833;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1F2833;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #151D27;
  border-bottom: 1px solid #1F2833;
}

.toolbar-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-ghost {
  background: none;
  border: 1px solid #2A3A4A;
  color: #66FCF1;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: #2A3A4A;
}

/* Preview card */
.preview {
  padding: 16px;
}

.preview-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #0B0C10;
}

.preview-no-image {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B0C10;
  border-radius: 8px;
  margin-bottom: 16px;
  color: #6B7280;
  font-size: 13px;
}

.preview-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #C5C6C7;
  line-height: 1.3;
  margin-bottom: 8px;
}

.preview-title a {
  color: inherit;
  text-decoration: none;
}

.preview-title a:hover {
  color: #66FCF1;
}

.preview-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #6B7280;
}

.preview-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.preview-meta .sep {
  color: #2A3A4A;
}

/* Raw JSON */
.raw {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #C5C6C7;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
  margin: 0;
}

/* Error */
.error-area {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  color: #EF4444;
  font-size: 14px;
}

/* Utilities */
.hidden {
  display: none;
}
