/* chrome.css — Shared chrome: scrollbar, theme toggle, account button, account modal, responsive. (split from design3.css) */

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* ===== Theme Toggle Button ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: background 0.2s;
  cursor: pointer;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== Account button ===== */
.account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: background 0.2s;
  color: var(--text-secondary);
  padding: 0;
  overflow: hidden;
}

.account-btn:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.account-btn .account-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.account-avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

/* ===== Account / Settings Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  padding: 24px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--bg-hover);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.account-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.account-status-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.account-email {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.modal-btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-btn-secondary:hover {
  background: var(--border-color);
}

/* Google sign-in button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.15s, border-color 0.15s;
}

.google-btn:hover {
  background: var(--bg-hover);
}

.google-btn svg {
  width: 18px;
  height: 18px;
}

/* Theme options */
.theme-options {
  display: flex;
  gap: 10px;
}

.theme-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.theme-option svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.theme-option.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-hover);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  :root {
    --avatar-size: 40px;
  }

  .top-bar-inner {
    padding: 10px 14px;
  }

  .story-card {
    padding: 12px 14px;
  }

  .card-name {
    font-size: 14px;
  }

  .mini-event-text {
    font-size: 12px;
  }

  .story-title-bar {
    top: 49px;
  }

  .timeline-text {
    font-size: 14px;
  }

  .timeline-event {
    padding: 0 14px;
  }

  .card-btn {
    font-size: 12px;
    padding: 5px 12px;
  }
}
