
:host {
  display: block;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #e2e8f0;
}

.analyzer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.analyzer-header {
  text-align: center;
  margin-bottom: 60px;
}

.brand-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.analyzer-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.analyzer-header p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Upload Card */
.upload-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #3b82f6;
  transform: translateY(-4px);
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  color: #3b82f6;
}

.upload-card h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.upload-card p {
  color: #64748b;
  margin-bottom: 32px;
}

/* Analyzing State */
.loading-card {
  text-align: center;
  padding: 40px;
}

.scanner-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-under-scan {
  max-width: 80%;
  max-height: 80%;
  opacity: 0.5;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #3b82f6;
  box-shadow: 0 0 15px #3b82f6;
  animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.loading-step {
  color: #475569;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.loading-step.active {
  color: #3b82f6;
  font-weight: 600;
}

.loading-step.active::before {
  content: '󱓻';
  animation: rotate 1s linear infinite;
}

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

/* Results Layout */
.results-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-logo-box {
  background: white;
  padding: 40px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
}

.result-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.personality-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 24px;
}

.personality-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin: 0 0 16px;
}

.mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.personality-desc {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0 0 20px;
  color: white;
}

.meta-item {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.meta-item strong {
  color: #64748b;
}

.results-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.result-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-header .icon {
  font-size: 1.5rem;
  color: #3b82f6;
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
}

/* Colors Display */
.main-swatches {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.swatch-group {
  flex: 1;
  text-align: center;
}

.big-swatch {
  height: 120px;
  border-radius: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hex-label {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: monospace;
}

.swatch-group label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
}

.full-palette h3 {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 16px;
}

.palette-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.palette-item {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography Display */
.typography-display {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.typo-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}

.typo-info h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.font-spec {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.font-preview {
  font-size: 1.5rem;
  color: white;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 16px;
}

.font-preview.body {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #94a3b8;
}

.typography-rationale {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  font-style: italic;
  color: #64748b;
  line-height: 1.6;
}

/* Shared UI Components */
.btn-primary {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: white;
  color: white;
}

.full-width {
  width: 100%;
}

@media (max-width: 900px) {
  .results-layout {
    grid-template-columns: 1fr;
  }
  
  .typo-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

