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

/* Base */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050505;
  color: #e5e5e5;
  min-height: 100vh;
  padding: 3rem 1.5rem;
}

.container {
  max-width: 560px;
  margin: 0 auto;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: #525252;
  font-size: 0.875rem;
}

/* Search */
.search-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  color: #fafafa;
  transition: all 0.2s;
}

input:focus {
  outline: none;
  border-color: #333;
  background: #0f0f0f;
}

input::placeholder {
  color: #404040;
}

.search-btn {
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fafafa;
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-btn:hover {
  background: #e5e5e5;
}

/* Platform Select */
.platform-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
}

.platform-label {
  font-size: 0.75rem;
  color: #525252;
  margin-right: 0.25rem;
}

.platform-btn {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  background: #171717;
  color: #a3a3a3;
  border: 1px solid #262626;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.platform-btn:hover {
  background: #262626;
  color: #fafafa;
}

/* Result Card */
.card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
}

.info-section {
  padding: 1.25rem;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.profile-username {
  font-size: 0.9375rem;
  color: #525252;
  margin-bottom: 1rem;
}

/* Meta Info */
.meta-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #0f0f0f;
  border-radius: 8px;
}

.meta-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #525252;
}

.meta-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-value span {
  font-size: 0.8125rem;
  color: #a3a3a3;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.copy-btn {
  padding: 0.3rem 0.6rem;
  background: #171717;
  border: 1px solid #262626;
  border-radius: 5px;
  color: #a3a3a3;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: #262626;
  color: #fafafa;
}

/* Action Buttons */
.buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1a1a1a;
}

.btn {
  text-align: center;
  padding: 0.75rem;
  background: #171717;
  color: #e5e5e5;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}

.btn:hover {
  background: #262626;
}

.btn.disabled {
  background: #0f0f0f;
  color: #333;
  cursor: not-allowed;
}

/* Photos Section */
.photos-section {
  padding: 1.25rem;
}

.section-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #404040;
  margin-bottom: 0.75rem;
}

.full-photo {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.no-photo {
  padding: 2.5rem;
  text-align: center;
  color: #404040;
  font-size: 0.8125rem;
  background: #0f0f0f;
  border-radius: 10px;
  border: 1px dashed #1a1a1a;
}

/* States */
.error {
  color: #e5e5e5;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  text-align: center;
}

.error-box {
  background: #0a0a0a !important;
  border: 1px solid #262626 !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  text-align: center !important;
}

.error-msg {
  color: #e5e5e5 !important;
  font-size: 0.9375rem !important;
  margin-bottom: 0.5rem !important;
}

.error-help {
  color: #737373 !important;
  font-size: 0.8125rem !important;
  margin-bottom: 1rem !important;
}

.manual-buttons {
  display: flex !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  margin-bottom: 1rem !important;
}

.manual-btn {
  padding: 0.75rem 1.25rem !important;
  font-family: inherit !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  background: #171717 !important;
  color: #e5e5e5 !important;
  border: 1px solid #333 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}

.manual-btn:hover {
  background: #262626 !important;
}

.error-hint {
  color: #525252 !important;
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
}

.loading {
  color: #525252;
  font-size: 0.875rem;
  text-align: center;
}

#result {
  min-height: 2rem;
}

.hidden {
  display: none;
}
