/*
 * ABN App Shell — shared styles
 * -----------------------------------------------------------
 * Canonical styles for chrome elements that should be identical
 * across all web apps: back button, feature request button + dialog,
 * wordmark logo, app title, common animations, common dialog modal.
 *
 * Load AFTER any app-specific :root variable block.
 * Expected CSS variables (both shotlist and calendar define these):
 *   --bg, --surface, --border, --border-strong
 *   --text, --text-secondary, --text-muted
 * -----------------------------------------------------------
 */

/* Common animations — shared so every app gets the same motion */
@keyframes abn-shell-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes abn-shell-modal-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ——— APP TITLE ——— */
.app-header h1 {
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.app-header h1 span {
  color: var(--text-muted);
  font-weight: 400;
}

/* ——— BACK BUTTON ——— */
.back-btn {
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-right: 12px;
  white-space: nowrap;
}
.back-btn:hover {
  color: var(--text);
  border-color: var(--border-strong, #ccc);
}

/* ——— WORDMARK LOGO ——— */
.app-wordmark {
  height: 30px;
  width: auto;
  opacity: 0.5;
  margin-left: 16px;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.app-wordmark-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.app-wordmark-link:hover .app-wordmark,
.app-wordmark-link:focus-visible .app-wordmark {
  opacity: 1;
}
.app-wordmark-link:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.4);
  outline-offset: 4px;
}

/* ——— FEATURE REQUEST BUTTON ——— */
.feature-btn {
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.feature-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
}

/* ——— FEATURE REQUEST DIALOG ——— */
.fr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: abn-shell-fade-in 0.18s ease-out;
}
.fr-dialog {
  background: #fff;
  border: 1px solid var(--border);
  width: 480px;
  max-width: 90vw;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.10);
  animation: abn-shell-modal-rise 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fr-dialog h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
}
.fr-dialog textarea {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 120px;
}
.fr-dialog textarea:focus { border-color: var(--text); }
.fr-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.fr-actions button {
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  transition: all 0.15s;
}
.fr-actions button:hover {
  color: var(--text);
  border-color: var(--border-strong, #ccc);
}
.fr-actions button.primary {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.fr-actions button.primary:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.fr-actions button.primary:disabled {
  background: #fca5a5;
  border-color: #fca5a5;
  cursor: default;
}
