/* Facebook In-App Browser Simulation Styles */
:root {
  --fb-header-bg: #000000;
  --fb-text-primary: #ffffff;
  --fb-text-secondary: #a0a0a0;
  --fb-icon-color: #ffffff;
  --fb-border-color: #1a1a1a;
  --fb-header-height: 56px;
}

#fb-browser-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--fb-header-height);
  background-color: var(--fb-header-bg);
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 9999;
  border-bottom: 1px solid var(--fb-border-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
}

.fb-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fb-header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
  overflow: hidden;
}

.fb-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fb-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fb-icon svg {
  fill: var(--fb-icon-color);
  width: 20px;
  height: 20px;
}

.fb-site-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fb-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-site-url {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--fb-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-lock-icon {
  width: 10px;
  height: 10px;
}

.fb-lock-icon svg {
  fill: var(--fb-text-secondary);
  width: 10px;
  height: 10px;
}

/* Adjust root to start below header */
#root {
  margin-top: var(--fb-header-height);
}

/* Hide header if not on mobile (optional) */
@media (min-width: 768px) {
  #fb-browser-header {
    display: none;
  }
  #root {
    margin-top: 0;
  }
}
