/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.admin-shell-nav [data-dropdown-trigger] {
  color: #d1d5db;
}

.admin-shell-nav [data-dropdown-trigger]:hover,
.admin-shell-nav [data-dropdown-trigger][data-active="true"] {
  color: #ffffff;
}


/* Public UI: capsule controls, softly rounded content, circular avatars.
 * Keep these explicit classes scoped so admin tools and email layouts are unaffected.
 */
.followed-ui {
  --ui-radius-control: 9999px;
  --ui-radius-card: 1rem;
  --ui-radius-product-image: 0.5rem;
  --ui-field-background: #f3f4f6;
  --ui-field-border: #e5e7eb;
  --ui-focus: #6366f1;
  padding-bottom: var(--sticky-follow-height, 0px);
}

/* Follow prompt shares the current page's width and responsive gutters. */
.followed-ui .sticky-follow-inner {
  gap: 0.5rem;
  padding: 0.75rem max(1rem, env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.followed-ui .sticky-follow-title { overflow-wrap: anywhere; }

.followed-ui .ui-button.sticky-follow-cta {
  min-height: 44px;
  padding-inline: 1rem;
}

.followed-ui .sticky-follow-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--ui-radius-control);
  cursor: pointer;
}

.followed-ui .sticky-follow-dismiss:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .followed-ui .sticky-follow-inner {
    gap: 0.75rem;
    padding-inline: max(1.5rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 1024px) {
  .followed-ui .sticky-follow-inner {
    padding-inline: max(2rem, env(safe-area-inset-left)) max(2rem, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .followed-ui .sticky-follow-bar { transition: none; }
}

.followed-ui .ui-pill,
.followed-ui .ui-button,
.followed-ui .ui-field {
  border-radius: var(--ui-radius-control);
}

.followed-ui .ui-card {
  border-radius: var(--ui-radius-card);
}

/* Small favicons need less rounding than full-size content containers. */
.followed-ui .ui-product-image {
  border-radius: var(--ui-radius-product-image);
}

.followed-ui .ui-field {
  min-width: 0;
  min-height: 3rem;
  border: 1px solid var(--ui-field-border);
  background-color: var(--ui-field-background);
  color: #111827;
  padding-inline: 1rem;
  font-size: 1rem;
  box-shadow: none;
}

.followed-ui .ui-field::placeholder {
  color: #6b7280;
  opacity: 1;
}

.followed-ui .ui-field:focus {
  border-color: var(--ui-focus);
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}

.followed-ui .ui-field--with-icon {
  padding-left: 2.5rem;
}

.followed-ui .ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-inline: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.followed-ui .ui-button:focus-visible,
.followed-ui .ui-pill:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}

/* Compact navigation controls fit the existing mobile header. */
.followed-ui .ui-field--compact,
.followed-ui .ui-button--compact {
  min-height: 2.25rem;
}

.followed-ui .ui-button--compact {
  padding-inline: 0.875rem;
}

.followed-ui .mobile-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  cursor: pointer;
}

.followed-ui .mobile-menu-toggle:focus-visible,
.followed-ui .home-feed-retry:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}

.followed-ui [data-home-feed-target="category"] {
  position: relative;
}

.followed-ui [data-home-feed-pending="true"] {
  /* Make room for the spinner only while this category is loading. */
  padding-right: 1.875rem;
}

.followed-ui [data-home-feed-target="category"]::after {
  content: "";
  position: absolute;
  right: 0.625rem;
  top: calc(50% - 0.375rem);
  width: 0.75rem;
  height: 0.75rem;
  box-sizing: border-box;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
}

.followed-ui [data-home-feed-pending="true"]::after {
  opacity: 0.7;
  animation: home-feed-spin 0.7s linear infinite;
}

.followed-ui .home-feed-status {
  margin-bottom: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Keep loading announcements accessible without a visible status row. */
.followed-ui .home-feed-status:not([data-error="true"]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.followed-ui .home-feed-retry {
  color: #4f46e5;
  text-decoration: underline;
  margin-left: 0.25rem;
  cursor: pointer;
}

@keyframes home-feed-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .followed-ui [data-home-feed-pending="true"]::after {
    animation: none;
  }
}

@media (min-width: 640px) {
  .followed-ui .ui-field--compact,
  .followed-ui .ui-button--compact {
    min-height: 2.5rem;
  }

  .followed-ui .ui-field--compact {
    font-size: 0.875rem;
  }
}
