/**
 * Bildconverter v2 - CSS
 * Responsive design för Samsung S22 (360px) och uppåt
 * Använder data-theme attribut för tema-stöd
 */

/* ===== CSS Variables - Light Theme ===== */
:root[data-theme="light"] {
  --bc-primary: #2563eb;
  --bc-primary-hover: #1d4ed8;
  --bc-primary-light: #dbeafe;
  --bc-secondary: #64748b;
  --bc-secondary-hover: #475569;

  --bc-success: #16a34a;
  --bc-success-bg: rgba(22, 163, 74, 0.1);
  --bc-success-text: #166534;
  --bc-error: #dc2626;
  --bc-error-bg: rgba(220, 38, 38, 0.1);
  --bc-error-text: #991b1b;
  --bc-warning: #d97706;
  --bc-warning-bg: rgba(217, 119, 6, 0.1);
  --bc-warning-text: #92400e;

  --bc-text-primary: #1f2937;
  --bc-text-secondary: #4b5563;
  --bc-text-muted: #6b7280;

  --bc-bg-primary: #ffffff;
  --bc-bg-secondary: #f9fafb;
  --bc-bg-tertiary: #f3f4f6;

  --bc-border-color: #e5e7eb;
  --bc-border-radius: 8px;
  --bc-border-radius-lg: 12px;

  --bc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --bc-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --bc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  --bc-transition: 150ms ease;
}

/* ===== CSS Variables - Dark Theme ===== */
:root[data-theme="dark"] {
  --bc-primary: #3b82f6;
  --bc-primary-hover: #60a5fa;
  --bc-primary-light: rgba(59, 130, 246, 0.15);
  --bc-secondary: #94a3b8;
  --bc-secondary-hover: #cbd5e1;

  --bc-success: #22c55e;
  --bc-success-bg: rgba(34, 197, 94, 0.15);
  --bc-success-text: #86efac;
  --bc-error: #ef4444;
  --bc-error-bg: rgba(239, 68, 68, 0.15);
  --bc-error-text: #fca5a5;
  --bc-warning: #f59e0b;
  --bc-warning-bg: rgba(245, 158, 11, 0.15);
  --bc-warning-text: #fcd34d;

  --bc-text-primary: #f2f2f2;
  --bc-text-secondary: #c9d1d9;
  --bc-text-muted: #8b949e;

  --bc-bg-primary: #181a1b;
  --bc-bg-secondary: #1f2124;
  --bc-bg-tertiary: #2a2d30;

  --bc-border-color: #374151;
  --bc-border-radius: 8px;
  --bc-border-radius-lg: 12px;

  --bc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --bc-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --bc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);

  --bc-transition: 150ms ease;
}

/* ===== Header ===== */
.bc-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.bc-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bc-text-primary);
  margin: 0 0 0.5rem;
}

.bc-subtitle {
  font-size: 1rem;
  color: var(--bc-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ===== Tabs ===== */
.bc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: var(--bc-bg-tertiary);
  padding: 0.25rem;
  border-radius: var(--bc-border-radius-lg);
  margin-bottom: 1.5rem;
}

.bc-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.625rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--bc-border-radius);
  color: var(--bc-text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--bc-transition);
  text-decoration: none;
}

.bc-tab:hover {
  color: var(--bc-text-primary);
  background: var(--bc-bg-secondary);
}

.bc-tab--active {
  background: var(--bc-bg-primary);
  color: var(--bc-primary);
  box-shadow: var(--bc-shadow-sm);
}

.bc-tab__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bc-tab__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Mobile: 3 columns */
@media (max-width: 480px) {
  .bc-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .bc-tab {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .bc-tab__icon {
    width: 18px;
    height: 18px;
  }
}

/* ===== Panels ===== */
.bc-panel {
  display: none;
}

.bc-panel--active {
  display: block;
}

.bc-panel__header {
  margin-bottom: 1.25rem;
}

.bc-panel__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  margin: 0 0 0.375rem;
}

.bc-panel__intro {
  font-size: 0.9375rem;
  color: var(--bc-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ===== Upload Zone ===== */
.bc-upload {
  border: 2px dashed var(--bc-border-color);
  border-radius: var(--bc-border-radius-lg);
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bc-bg-secondary);
  transition: all var(--bc-transition);
  cursor: pointer;
}

.bc-upload:hover,
.bc-upload--dragover {
  border-color: var(--bc-primary);
  background: var(--bc-primary-light);
}

.bc-upload__icon {
  width: 48px;
  height: 48px;
  color: var(--bc-text-muted);
  margin-bottom: 0.75rem;
}

.bc-upload__text {
  font-size: 0.9375rem;
  color: var(--bc-text-secondary);
  margin: 0 0 0.25rem;
}

.bc-upload__hint {
  font-size: 0.8125rem;
  color: var(--bc-text-muted);
  margin: 0;
}

.bc-upload__input {
  display: none;
}

/* ===== URL Input ===== */
.bc-url-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bc-url-group__input {
  flex: 1;
  min-width: 0;
}

/* ===== Form Elements ===== */
.bc-fieldset {
  margin-bottom: 1.25rem;
}

.bc-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bc-text-primary);
  margin-bottom: 0.375rem;
}

.bc-hint {
  font-size: 0.8125rem;
  color: var(--bc-text-muted);
  margin: 0.25rem 0 0;
}

.bc-input,
.bc-select,
.bc-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--bc-text-primary);
  background: var(--bc-bg-primary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius);
  transition: border-color var(--bc-transition), box-shadow var(--bc-transition);
}

.bc-input:focus,
.bc-select:focus,
.bc-textarea:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px var(--bc-primary-light);
}

.bc-input--small {
  width: 5rem;
  padding: 0.5rem;
}

.bc-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: ui-monospace, monospace;
}

/* Range slider */
.bc-range {
  width: 100%;
  height: 6px;
  appearance: none;
  background: var(--bc-bg-tertiary);
  border-radius: 3px;
  cursor: pointer;
}

.bc-range::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--bc-primary);
  border-radius: 50%;
  cursor: pointer;
}

.bc-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--bc-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* Checkbox */
.bc-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.bc-checkbox__input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--bc-primary);
  flex-shrink: 0;
}

.bc-checkbox__label {
  font-size: 0.9375rem;
  color: var(--bc-text-primary);
  line-height: 1.4;
}

/* Radio buttons */
.bc-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bc-radio {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}

.bc-radio__input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--bc-primary);
}

.bc-radio__label {
  font-size: 0.9375rem;
  color: var(--bc-text-primary);
}

/* ===== Controls Grid ===== */
.bc-controls {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bc-controls--2col {
  grid-template-columns: repeat(2, 1fr);
}

.bc-controls--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 480px) {
  .bc-controls--2col,
  .bc-controls--3col {
    grid-template-columns: 1fr;
  }
}

/* ===== Buttons ===== */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: var(--bc-border-radius);
  cursor: pointer;
  transition: all var(--bc-transition);
  text-decoration: none;
}

.bc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bc-btn--primary {
  background: var(--bc-primary);
  color: white;
}

.bc-btn--primary:hover:not(:disabled) {
  background: var(--bc-primary-hover);
}

.bc-btn--secondary {
  background: var(--bc-bg-tertiary);
  color: var(--bc-text-primary);
}

.bc-btn--secondary:hover:not(:disabled) {
  background: var(--bc-border-color);
}

.bc-btn--small {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.bc-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ===== File List ===== */
.bc-filelist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.bc-filelist__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius);
  margin-bottom: 0.5rem;
}

.bc-filelist__thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bc-bg-tertiary);
  flex-shrink: 0;
}

.bc-filelist__info {
  flex: 1;
  min-width: 0;
}

.bc-filelist__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bc-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-filelist__meta {
  font-size: 0.75rem;
  color: var(--bc-text-muted);
}

.bc-filelist__remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--bc-text-muted);
  cursor: pointer;
  transition: all var(--bc-transition);
  flex-shrink: 0;
}

.bc-filelist__remove:hover {
  background: var(--bc-error-bg);
  color: var(--bc-error);
}

/* ===== Results Grid ===== */
.bc-results {
  margin-top: 1.5rem;
}

.bc-results__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bc-results__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  margin: 0;
}

.bc-results__header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bc-results__count {
  font-size: 0.875rem;
  color: var(--bc-text-secondary);
}

.bc-results__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--bc-border-color);
  border-radius: 4px;
  color: var(--bc-text-muted);
  cursor: pointer;
  transition: all var(--bc-transition);
}

.bc-results__close:hover {
  background: var(--bc-bg-tertiary);
  color: var(--bc-text-primary);
  border-color: var(--bc-text-muted);
}

.bc-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

@media (max-width: 400px) {
  .bc-results__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Result Card */
.bc-card {
  background: var(--bc-bg-primary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius);
  overflow: hidden;
  transition: box-shadow var(--bc-transition);
}

.bc-card:hover {
  box-shadow: var(--bc-shadow);
}

.bc-card__preview {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bc-bg-tertiary);
  overflow: hidden;
}

.bc-card__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bc-card__body {
  padding: 0.625rem;
}

.bc-card__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bc-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.bc-card__meta {
  font-size: 0.75rem;
  color: var(--bc-text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.bc-card__actions {
  display: flex;
  gap: 0.25rem;
}

.bc-card__btn {
  flex: 1;
  padding: 0.375rem;
  font-size: 0.75rem;
}

/* Stats badge */
.bc-stats {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.375rem;
  background: var(--bc-success-bg);
  color: var(--bc-success);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.bc-stats--negative {
  background: var(--bc-error-bg);
  color: var(--bc-error);
}

/* ===== Base64 Panel ===== */
.bc-base64-output {
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.bc-base64-output__text {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--bc-text-secondary);
  word-break: break-all;
  max-height: 150px;
  overflow-y: auto;
}

.bc-base64-output__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ===== Toast Notifications ===== */
.bc-toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 480px) {
  .bc-toast-container {
    left: auto;
    width: 320px;
  }
}

.bc-toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--bc-bg-primary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius);
  box-shadow: var(--bc-shadow-lg);
  pointer-events: auto;
  animation: bc-toast-in 200ms ease-out;
}

.bc-toast--success {
  border-left: 3px solid var(--bc-success);
}

.bc-toast--error {
  border-left: 3px solid var(--bc-error);
}

.bc-toast--info {
  border-left: 3px solid var(--bc-primary);
}

.bc-toast__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bc-toast--success .bc-toast__icon {
  color: var(--bc-success);
}

.bc-toast--error .bc-toast__icon {
  color: var(--bc-error);
}

.bc-toast--info .bc-toast__icon {
  color: var(--bc-primary);
}

.bc-toast__text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--bc-text-primary);
}

@keyframes bc-toast-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Loading State ===== */
.bc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.bc-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bc-bg-tertiary);
  border-top-color: var(--bc-primary);
  border-radius: 50%;
  animation: bc-spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

.bc-loading__text {
  font-size: 0.9375rem;
  color: var(--bc-text-secondary);
}

@keyframes bc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Empty State ===== */
.bc-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--bc-text-muted);
}

.bc-empty__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.bc-empty__text {
  font-size: 0.9375rem;
  margin: 0;
}

/* ===== Language Switcher ===== */
.bc-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius);
  font-size: 0.8125rem;
  color: var(--bc-text-secondary);
  text-decoration: none;
  transition: all var(--bc-transition);
}

.bc-lang-switch:hover {
  background: var(--bc-bg-tertiary);
  color: var(--bc-text-primary);
}

/* ===== Divider ===== */
.bc-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--bc-text-muted);
  font-size: 0.8125rem;
}

.bc-divider::before,
.bc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bc-border-color);
}

/* ===== Section ===== */
.bc-section {
  background: var(--bc-bg-primary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.bc-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  margin: 0 0 1rem;
}

/* ===== Inline Groups ===== */
.bc-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bc-inline--between {
  justify-content: space-between;
}

/* ===== Value Display ===== */
.bc-value {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--bc-bg-tertiary);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bc-text-primary);
  min-width: 3rem;
  text-align: center;
}

/* ===== Progress Bar ===== */
.bc-progress {
  height: 6px;
  background: var(--bc-bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.bc-progress__bar {
  height: 100%;
  background: var(--bc-primary);
  transition: width 200ms ease;
}

/* ===== Comparison View ===== */
.bc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .bc-compare {
    grid-template-columns: 1fr;
  }
}

.bc-compare__item {
  text-align: center;
}

.bc-compare__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bc-text-secondary);
  margin-bottom: 0.375rem;
}

.bc-compare__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bc-text-primary);
}

.bc-compare__value--success {
  color: var(--bc-success);
}

/* ===== Hidden Utility ===== */
.bc-hidden {
  display: none !important;
}

/* ===== Responsive Typography ===== */
@media (max-width: 360px) {
  .bc-title {
    font-size: 1.5rem;
  }

  .bc-subtitle {
    font-size: 0.9375rem;
  }

  .bc-panel__title {
    font-size: 1.125rem;
  }
}

/* ============================================
   README STYLES
   ============================================ */

.bc-readme {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.bc-readme__header {
  margin-bottom: 2rem;
  text-align: center;
}

.bc-readme__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bc-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.bc-readme__back:hover {
  color: var(--bc-text-primary);
}

.bc-readme__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bc-text-primary);
  margin: 0 0 0.5rem;
}

.bc-readme__lang-switch {
  font-size: 0.875rem;
  color: var(--bc-text-muted);
  margin: 0 0 0.75rem;
}

.bc-readme__lang-switch a {
  color: var(--bc-text-secondary);
  text-decoration: none;
}

.bc-readme__lang-switch a:hover {
  color: var(--bc-primary);
}

.bc-readme__lang-active {
  color: var(--bc-primary) !important;
  font-weight: 600;
}

.bc-readme__intro {
  font-size: 1.1rem;
  color: var(--bc-text-secondary);
  margin: 0;
}

.bc-readme__toc {
  background: var(--bc-bg-tertiary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bc-readme__toc h2 {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--bc-text-primary);
}

.bc-readme__toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bc-readme__toc li {
  margin-bottom: 0.5rem;
}

.bc-readme__toc a {
  color: var(--bc-primary);
  text-decoration: none;
}

.bc-readme__toc a:hover {
  text-decoration: underline;
}

.bc-readme__section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bc-border-color);
}

.bc-readme__section:last-of-type {
  border-bottom: none;
}

.bc-readme__section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  margin: 0 0 1rem;
}

.bc-readme__section p {
  color: var(--bc-text-secondary);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.bc-readme__section a {
  color: var(--bc-primary);
}

.bc-readme__section code {
  background: var(--bc-bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--bc-text-primary);
}

.bc-readme__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.bc-readme__feature {
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: 8px;
  padding: 1.25rem;
}

.bc-readme__feature h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  margin: 0 0 0.5rem;
}

.bc-readme__feature p {
  font-size: 0.9rem;
  margin: 0;
}

.bc-readme__sources {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bc-readme__source {
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.bc-readme__source h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  margin: 0 0 0.75rem;
}

.bc-readme__source p {
  margin: 0 0 0.75rem;
}

.bc-readme__source p:last-child {
  margin-bottom: 0;
}

.bc-readme__best-for {
  font-size: 0.9rem;
  color: var(--bc-text-muted);
}

.bc-readme__comparison {
  background: var(--bc-bg-tertiary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.bc-readme__comparison h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  margin: 0 0 1rem;
}

.bc-readme__table-wrapper {
  overflow-x: auto;
}

.bc-readme__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bc-readme__table th,
.bc-readme__table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--bc-border-color);
  text-align: center;
}

.bc-readme__table th:first-child,
.bc-readme__table td:first-child {
  text-align: left;
}

.bc-readme__table th {
  background: var(--bc-bg-secondary);
  font-weight: 600;
  color: var(--bc-text-primary);
}

.bc-readme__table td {
  color: var(--bc-text-secondary);
}

.bc-readme__table tr:last-child td {
  border-bottom: none;
}

.bc-readme__usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.bc-readme__usecase {
  border-radius: 8px;
  padding: 1.5rem;
}

.bc-readme__usecase--ok {
  background: var(--bc-success-bg);
  border: 1px solid var(--bc-success);
}

.bc-readme__usecase--ok h3 {
  color: var(--bc-success);
}

.bc-readme__usecase--warn {
  background: var(--bc-warning-bg);
  border: 1px solid var(--bc-warning);
}

.bc-readme__usecase--warn h3 {
  color: var(--bc-warning);
}

.bc-readme__usecase h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.bc-readme__usecase ul {
  margin: 0;
  padding-left: 1.25rem;
}

.bc-readme__usecase li {
  color: var(--bc-text-primary);
  margin-bottom: 0.5rem;
}

.bc-readme__usecase li:last-child {
  margin-bottom: 0;
}

.bc-readme__faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bc-readme__faq-item {
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: 8px;
  overflow: hidden;
}

.bc-readme__faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--bc-text-primary);
  list-style: none;
}

.bc-readme__faq-item summary::-webkit-details-marker {
  display: none;
}

.bc-readme__faq-item summary::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  color: var(--bc-text-muted);
}

.bc-readme__faq-item[open] summary::after {
  content: '−';
}

.bc-readme__faq-item p {
  padding: 0 1.25rem 1rem;
  margin: 0;
}

.bc-readme__tech-list {
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.bc-readme__tech-list h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  margin: 0 0 1rem;
}

.bc-readme__tech-list ul {
  margin: 0;
  padding-left: 1.25rem;
}

.bc-readme__tech-list li {
  color: var(--bc-text-secondary);
  margin-bottom: 0.5rem;
}

.bc-readme__tech-list li:last-child {
  margin-bottom: 0;
}

.bc-readme__tech-list a {
  color: var(--bc-primary);
}

.bc-readme__footer {
  text-align: center;
  padding-top: 2rem;
  color: var(--bc-text-secondary);
}

.bc-readme__footer a {
  color: var(--bc-primary);
}

@media (max-width: 640px) {
  .bc-readme__title {
    font-size: 1.5rem;
  }

  .bc-readme__section h2 {
    font-size: 1.25rem;
  }
}

/* ============================================
   INSPECT TAB STYLES (BK-01)
   ============================================ */

/* Upload zone wrapper */
.bc-inspect-upload {
  margin-bottom: 1.25rem;
}

/* Summary Card */
.bc-inspect-summary {
  background: var(--bc-bg-primary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.bc-inspect-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--bc-success-bg);
  border: 1px solid var(--bc-success);
  border-radius: var(--bc-border-radius);
  font-size: 0.8125rem;
  color: var(--bc-success-text);
  margin-bottom: 1rem;
}

.bc-inspect-trust svg {
  flex-shrink: 0;
  color: var(--bc-success);
}

.bc-inspect-format-note {
  padding: 0.5rem 0.875rem;
  background: var(--bc-warning-bg);
  border: 1px solid var(--bc-warning);
  border-radius: var(--bc-border-radius);
  font-size: 0.8125rem;
  color: var(--bc-warning-text);
  margin-bottom: 1rem;
}

.bc-inspect-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.bc-inspect-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.bc-inspect-summary__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.bc-inspect-summary__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bc-text-primary);
}

.bc-inspect-summary__value--risk {
  color: var(--bc-warning);
}

/* Privacy Risk Score */
.bc-inspect-privacy {
  background: var(--bc-bg-primary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.bc-inspect-privacy__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  margin: 0 0 0.75rem;
}

.bc-inspect-privacy__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bc-inspect-privacy__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: var(--bc-border-radius);
  font-size: 0.875rem;
}

.bc-inspect-privacy__item--ok {
  background: var(--bc-success-bg);
  color: var(--bc-success-text);
}

.bc-inspect-privacy__item--risk {
  background: var(--bc-warning-bg);
  color: var(--bc-warning-text);
}

.bc-inspect-privacy__icon {
  flex-shrink: 0;
  font-size: 1rem;
}

/* Accordion Sections */
.bc-inspect-accordion {
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius-lg);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.bc-inspect-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bc-bg-secondary);
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bc-text-primary);
  transition: background var(--bc-transition);
}

.bc-inspect-accordion__header:hover:not(:disabled) {
  background: var(--bc-bg-tertiary);
}

.bc-inspect-accordion__header:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bc-inspect-accordion__header:focus-visible {
  outline: 2px solid var(--bc-primary);
  outline-offset: -2px;
}

.bc-inspect-accordion__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bc-inspect-accordion__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  background: var(--bc-bg-tertiary);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bc-text-muted);
}

.bc-inspect-accordion__badge--warn {
  background: var(--bc-warning-bg);
  color: var(--bc-warning);
}

.bc-inspect-accordion__icon {
  flex-shrink: 0;
  transition: transform var(--bc-transition);
}

.bc-inspect-accordion__header[aria-expanded="true"] .bc-inspect-accordion__icon {
  transform: rotate(180deg);
}

.bc-inspect-accordion__content {
  padding: 0 1rem 1rem;
  background: var(--bc-bg-primary);
}

.bc-inspect-accordion__content[hidden] {
  display: none;
}

/* Metadata Table */
.bc-inspect-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.bc-inspect-table__row:not(:last-child) {
  border-bottom: 1px solid var(--bc-border-color);
}

.bc-inspect-table__key {
  padding: 0.5rem 0.75rem 0.5rem 0;
  font-weight: 500;
  color: var(--bc-text-secondary);
  white-space: nowrap;
  width: 40%;
  vertical-align: top;
}

.bc-inspect-table__value {
  padding: 0.5rem 0;
  color: var(--bc-text-primary);
  word-break: break-word;
  cursor: pointer;
  transition: background var(--bc-transition);
  border-radius: 2px;
}

.bc-inspect-table__value:hover {
  background: var(--bc-primary-light);
}

/* Copy section button */
.bc-inspect-copy-section {
  margin-top: 0.5rem;
}

/* Export Bar */
.bc-inspect-export {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius-lg);
  margin-bottom: 1rem;
}

/* Action Buttons Row */
.bc-inspect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* GPS Map */
.bc-inspect-map-container {
  margin-bottom: 1.25rem;
}

.bc-inspect-map {
  height: 250px;
  border-radius: var(--bc-border-radius-lg);
  border: 1px solid var(--bc-border-color);
  margin-bottom: 0.5rem;
}

.bc-inspect-map__disclosure {
  font-size: 0.75rem;
  color: var(--bc-text-muted);
  margin: 0;
  font-style: italic;
}

/* Cross-link CTA */
.bc-inspect-cross-link {
  padding: 0.75rem 1rem;
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius);
  margin-bottom: 1.25rem;
}

.bc-inspect-cross-link p {
  font-size: 0.875rem;
  color: var(--bc-text-secondary);
  margin: 0;
}

.bc-inspect-cross-link a {
  color: var(--bc-primary);
  font-weight: 500;
  text-decoration: none;
}

.bc-inspect-cross-link a:hover {
  text-decoration: underline;
}

/* Empty state inside accordion */
.bc-inspect-accordion .bc-inspect-empty {
  font-size: 0.875rem;
  color: var(--bc-text-muted);
  margin: 0;
  padding: 0.5rem 0;
}

/* Responsive: Inspect */
@media (max-width: 480px) {
  .bc-inspect-summary__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bc-inspect-export {
    flex-direction: column;
  }

  .bc-inspect-table__key {
    width: auto;
    display: block;
    padding-bottom: 0;
  }

  .bc-inspect-table__value {
    display: block;
    padding-top: 0.125rem;
    padding-bottom: 0.625rem;
  }

  .bc-inspect-table__row {
    display: block;
  }
}

/* ===== Landing Pages (SEO) ===== */

.bc-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--bc-text-muted);
}

.bc-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.bc-breadcrumb li:not(:last-child)::after {
  content: "\203A";
  margin-left: 0.25rem;
  color: var(--bc-text-muted);
}

.bc-breadcrumb [aria-current="page"] {
  color: var(--bc-text-primary);
}

.bc-breadcrumb a {
  color: var(--bc-primary);
  text-decoration: none;
}

.bc-breadcrumb a:hover {
  text-decoration: underline;
}

.bc-lp__cta {
  text-align: center;
  margin: 2rem 0;
}

.bc-lp__cta-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--bc-primary);
  color: #fff;
  border-radius: var(--bc-border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background var(--bc-transition);
}

.bc-lp__cta-btn:hover {
  background: var(--bc-primary-hover);
  color: #fff;
  text-decoration: none;
}

.bc-lp__steps {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.bc-lp__steps li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.bc-lp__related {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.bc-lp__related li a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bc-bg-secondary);
  border: 1px solid var(--bc-border-color);
  border-radius: var(--bc-border-radius);
  color: var(--bc-primary);
  text-decoration: none;
  transition: border-color var(--bc-transition), background var(--bc-transition);
}

.bc-lp__related li a:hover {
  border-color: var(--bc-primary);
  background: var(--bc-primary-light);
}

/* ===== Mobile Touch Targets (WCAG 2.5.5: min 44x44px) ===== */
@media (max-width: 480px) {
  .bc-tab {
    min-height: 44px;
  }

  .bc-btn--small {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
  }

  .bc-card__btn {
    min-height: 44px;
    padding: 0.5rem;
  }

  .bc-filelist__remove {
    width: 44px;
    height: 44px;
  }

  .bc-results__close {
    width: 44px;
    height: 44px;
  }

  .bc-inspect-accordion__header {
    min-height: 44px;
  }

  .bc-checkbox__input,
  .bc-radio__input {
    width: 22px;
    height: 22px;
  }
}

/* ===== SEO Content (Intent Ladder) ===== */
.bc-seo-content {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid var(--bc-border-color);
  color: var(--bc-text-primary);
  line-height: 1.7;
}

.bc-seo-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--bc-text-primary);
}

.bc-seo-content h2:first-child {
  margin-top: 0;
}

.bc-seo-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--bc-text-primary);
}

.bc-seo-content p {
  margin: 0 0 0.75rem;
  color: var(--bc-text-secondary);
}

.bc-seo-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.bc-seo-content li {
  margin-bottom: 0.35rem;
  color: var(--bc-text-secondary);
}

.bc-seo-content a {
  color: var(--bc-primary);
  text-decoration: none;
}

.bc-seo-content a:hover {
  text-decoration: underline;
}

.bc-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.bc-comparison-table th,
.bc-comparison-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--bc-border-color);
}

.bc-comparison-table th {
  font-weight: 600;
  background: var(--bc-bg-secondary);
  color: var(--bc-text-primary);
}

.bc-comparison-table td {
  color: var(--bc-text-secondary);
}

@media (max-width: 640px) {
  .bc-comparison-table {
    font-size: 0.8rem;
  }

  .bc-comparison-table th,
  .bc-comparison-table td {
    padding: 0.4rem 0.5rem;
  }
}
