/* Shared header CTA treatment. */
:root {
  --frc-header-bar-height: 30px;
}

.frc-announcement-bar {
  position: sticky;
  top: 0;
  z-index: 1001;
  min-height: var(--frc-header-bar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  color: #fff;
  background: rgba(242, 102, 36, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 4px 16px rgba(122, 45, 12, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.frc-announcement-bar strong {
  font-weight: 700;
}

.frc-announcement-separator {
  margin: 0 8px;
  opacity: 0.72;
}

.frc-established-mark,
.est-badge,
.header-est-badge,
.frc-est {
  display: inline-block;
  margin-left: 9px;
  color: #f26624;
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", "Apple Chancery", cursive !important;
  font-size: 12px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0 !important;
  line-height: 1;
  text-transform: none !important;
  transform: rotate(-10deg) translateY(-1px);
  vertical-align: middle;
  white-space: nowrap;
}

.app-header {
  top: var(--frc-header-bar-height) !important;
}

.header-right {
  gap: 14px !important;
}

.frc-header-stats {
  display: flex;
  margin-left: 28px;
  padding-right: 2px;
}

.welcome-user-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f26624;
  white-space: nowrap;
  gap: 3px;
}

.app-header h2 .frc-established-mark,
.mobile-app-title .frc-established-mark {
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", "Apple Chancery", cursive !important;
}

.frc-welcome-label,
.frc-welcome-user {
  color: #f26624;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.welcome-label {
  display: block;
  text-align: center;
}

.welcome-divider {
  display: block;
  width: 78px;
  max-width: 90px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  margin: 2px auto;
  flex: none;
}

.welcome-name {
  display: block;
  text-align: center;
  min-width: 0;
  max-width: 150px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-profile-wrapper .profile-dropdown-menu {
  display: none !important;
}

.auth-profile-wrapper .profile-btn.frc-join-club-btn {
  width: auto !important;
  min-width: 126px !important;
  max-width: none !important;
  height: 42px !important;
  min-height: 42px !important;
  margin-right: 0 !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  background: #f26624 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  box-shadow: 0 7px 17px rgba(242, 102, 36, 0.25) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease !important;
}

.auth-profile-wrapper .profile-btn.frc-join-club-btn svg {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .auth-profile-wrapper .profile-btn.frc-join-club-btn:hover {
    transform: translateY(-1px) !important;
    background: #d5561f !important;
    box-shadow: 0 10px 22px rgba(242, 102, 36, 0.32) !important;
  }
}

.auth-profile-wrapper .profile-btn.frc-join-club-btn:active {
  transform: translateY(1px) scale(0.985) !important;
}

.profile-dropdown-menu .dropdown-user-email {
  padding: 14px 16px !important;
  color: #f26624 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  word-break: normal !important;
}

.profile-dropdown-menu .dropdown-action-item {
  font-size: 14px !important;
  font-weight: 700 !important;
}

@media (min-width: 1024px) and (max-width: 1380px) {
  .app-header {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .app-header .nav-links {
    gap: 13px !important;
  }

  .app-header .nav-links a {
    font-size: 13px !important;
  }

  .frc-header-stats { gap: 0; margin-left: 20px; }
}

@media (max-width: 1023px) {
  .mobile-menu-bar {
    top: var(--frc-header-bar-height) !important;
  }

  .frc-header-stats {
    display: none;
  }

  .frc-established-mark {
    margin-left: 6px;
    font-size: 9px;
    transform: rotate(-10deg) translateY(-1px);
  }

  .sidebar-auth-wrapper.mobile-auth-control {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px !important;
    padding: 14px 20px 24px !important;
    transform: translateY(-4px);
  }

  .sidebar-auth-wrapper.mobile-auth-control .sidebar-auth-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #f26624 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 7px 17px rgba(242, 102, 36, 0.24) !important;
  }

  .sidebar-auth-wrapper.mobile-auth-control .sidebar-auth-btn svg,
  .sidebar-auth-wrapper.mobile-auth-control .sidebar-auth-label {
    display: none !important;
  }

  .frc-mobile-stats {
    display: flex;
    transform: translateY(-3px);
    text-align: center;
  }

  .frc-mobile-stats .frc-welcome-label,
  .frc-mobile-stats .frc-welcome-user {
    color: #f26624;
    text-align: center;
  }

  .frc-mobile-stats .frc-welcome-user {
    max-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-profile-wrapper .profile-btn.frc-join-club-btn {
    transition: none !important;
  }
}
