/* ztv-login button — "Sign in with Google" per Google brand guidelines.
 *
 * Light-mode (default): white background, #dadce0 1px border, dark text.
 * Dark-mode: DaisyUI's [data-theme="ztv-dark"] toggle inverts the
 * surface colors via CSS variables we resolve below.
 *
 * Designed to coexist with .btn DaisyUI primitives — drop the markup into
 * any DaisyUI page without extra CSS.
 */

.ztv-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 1rem;
  height: 44px;
  min-width: 200px;
  background: #ffffff;
  color: #1f1f1f;
  font-family: "Roboto", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: 0.01em;
  border-radius: 0.5rem;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.ztv-google-btn:hover {
  background: #f8f9fa;
  border-color: #c6c9cd;
  color: #1f1f1f;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.ztv-google-btn:active {
  background: #f1f3f4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.ztv-google-btn:focus-visible {
  outline: 2px solid #4285F4;
  outline-offset: 2px;
}

.ztv-google-btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ztv-google-btn-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.ztv-google-btn-label {
  display: inline-block;
  white-space: nowrap;
}

/* Dark-mode variant — matches the ztv-dark DaisyUI theme.
 * Per Google's brand guidance the logo stays multi-color; only the
 * surface flips. */
[data-theme="ztv-dark"] .ztv-google-btn,
.ztv-google-btn.ztv-google-btn-dark {
  background: #131314;
  color: #e3e3e3;
  border-color: #8e918f;
  box-shadow: none;
}

[data-theme="ztv-dark"] .ztv-google-btn:hover,
.ztv-google-btn.ztv-google-btn-dark:hover {
  background: #1d1d1f;
  border-color: #b9bcbf;
  color: #e3e3e3;
}

[data-theme="ztv-dark"] .ztv-google-btn:active,
.ztv-google-btn.ztv-google-btn-dark:active {
  background: #232325;
}

/* Full-width helper for stacked auth layouts (page-login.php uses this). */
.ztv-google-btn-block {
  display: flex;
  width: 100%;
}
