/* fox-header.css - Static Tailwind replacement for foxpress.cloud nav + footer */
/* Covers all classes used in site-assets/includes/nav.php and footer.php. */
/* No Tailwind CDN JS runtime needed (it conflicts with WHMCS jQuery/iCheck). */

/* Fox brand colors */
:root {
  --fox-50: #f0f7fc; --fox-100: #daedf8; --fox-200: #b8ddf2;
  --fox-300: #87c5e8; --fox-400: #51a8da; --fox-500: #3b8dbd;
  --fox-600: #2f7aaa; --fox-700: #276490; --fox-800: #245376;
  --fox-900: #224663; --fox-950: #162d42;
}

/* ========= Layout ========= */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.absolute { position: absolute; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.-top-1 { top: -0.25rem; }
.-right-1 { right: -0.25rem; }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline { display: inline; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.overflow-x-auto { overflow-x: auto; }

/* ========= Spacing ========= */
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-1\.5 { margin-left: 0.375rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mt-0 { margin-top: 0; }
.mt-12 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-3 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
.p-2 { padding: 0.5rem; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-8 { padding-top: 2rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.gap-3 { gap: 0.75rem; }
.gap-10 { gap: 2.5rem; }
.space-x-1 > :not(:first-child) { margin-left: 0.25rem; }
.space-x-2 > :not(:first-child) { margin-left: 0.5rem; }
.space-x-2\.5 > :not(:first-child) { margin-left: 0.625rem; }
.space-y-1 > :not(:first-child) { margin-top: 0.25rem; }
.space-y-3 > :not(:first-child) { margin-top: 0.75rem; }

/* ========= Sizing ========= */
.h-5 { height: 1.25rem; }
.h-11 { height: 2.75rem; }
.h-16 { height: 4rem; }
.w-5 { width: 1.25rem; }
.w-52 { width: 13rem; }
.w-56 { width: 14rem; }
.w-60 { width: 15rem; }
.max-w-7xl { max-width: 80rem; }

/* ========= Typography ========= */
.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.no-underline { text-decoration: none !important; }

/* ========= Colors ========= */
.text-white { color: #fff; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-fox-200 { color: var(--fox-200); }
.text-fox-300 { color: var(--fox-300); }
.text-fox-400 { color: var(--fox-400); }
.text-fox-500 { color: var(--fox-500); }
.text-fox-600 { color: var(--fox-600); }
.text-red-500 { color: #ef4444; }
.text-green-500 { color: #22c55e; }
.bg-white { background-color: #fff; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-transparent { background-color: transparent; }
.bg-fox-500 { background-color: var(--fox-500); }
.bg-fox-950 { background-color: var(--fox-950); }

/* ========= Borders ========= */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-100 { border-color: #f3f4f6; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-fox-900 { border-color: var(--fox-900); }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* ========= Effects ========= */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.opacity-60 { opacity: 0.6; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }

/* ========= Hover ========= */
.hover\:bg-fox-50:hover { background-color: var(--fox-50); }
.hover\:bg-fox-600:hover { background-color: var(--fox-600); }
.hover\:bg-fox-900:hover { background-color: var(--fox-900); }
.hover\:text-fox-300:hover { color: var(--fox-300); }
.hover\:text-fox-500:hover { color: var(--fox-500); }
.hover\:text-fox-600:hover { color: var(--fox-600); }
.hover\:text-fox-700:hover { color: var(--fox-700); }
.hover\:text-white:hover { color: #fff; }

/* ========= Responsive: sm (640px+) ========= */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ========= Responsive: md (768px+) ========= */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========= Responsive: lg (1024px+) ========= */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ========= Dropdown (nav menus) ========= */
.dropdown-menu { display: none; }
.dropdown:hover .dropdown-menu { display: block; }

/* Legacy WHMCS dropdown aliases (client area sub-nav) */
.fox-dropdown-menu { display: none; }
.fox-dropdown:hover .fox-dropdown-menu { display: block; }

/* ========= Cart badge ========= */
.flex-shrink-0 { flex-shrink: 0; }

/* ========= Footer reset ========= */
footer.bg-fox-950 { text-align: left !important; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer a { text-decoration: none; color: inherit; }

/* ========= Account switcher dropdown (client area sub-nav) ========= */
.fox-btn-plain {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
.fox-btn-plain:focus { outline: 0; }
.fox-btn-plain:disabled { cursor: not-allowed; }

.fox-user-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  color: var(--fox-200);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  transition: background-color 150ms, color 150ms;
}
.fox-user-toggle:hover { color: #fff; background-color: var(--fox-900); }
.fox-user-toggle .fa-chevron-down { font-size: 10px; opacity: 0.7; }
.fox-user-toggle .fox-user-name {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) { .fox-user-toggle .fox-user-name { display: inline; } }

.fox-user-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 16rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.12), 0 8px 10px -6px rgba(0,0,0,.08);
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0;
  z-index: 60;
}
.fox-user-menu.hidden { display: none; }
.fox-user-menu-label {
  padding: 0.25rem 1rem 0.5rem;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fox-user-menu-divider {
  border-top: 1px solid #f3f4f6;
  margin: 0.5rem 0;
}

.fox-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.25rem;
  transition: background-color 120ms, color 120ms;
}
.fox-switch-item:hover { background-color: var(--fox-50); color: var(--fox-700); }
.fox-switch-item.is-active {
  background-color: var(--fox-50);
  color: var(--fox-700);
  font-weight: 600;
}
.fox-switch-item[disabled],
.fox-switch-item.is-closed {
  color: #9ca3af;
  cursor: not-allowed;
  background-color: transparent;
}
.fox-switch-item .fox-switch-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fox-switch-item .fox-owner-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fox-600);
  background-color: var(--fox-50);
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--fox-100, #daedf8);
}
.fox-switch-item.is-active .fox-owner-badge {
  background-color: #fff;
  border-color: var(--fox-200);
}

.fox-user-menu-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none !important;
  transition: background-color 120ms, color 120ms;
}
.fox-user-menu-link:hover { background-color: var(--fox-50); color: var(--fox-700); }
.fox-user-menu-link i { width: 1rem; color: #9ca3af; }
.fox-user-menu-link:hover i { color: var(--fox-500); }
