/* ==========================================================================
   hangout  — Layout & Grid Structure (Clean, Grounded Apple 2001-2003 Web)
   ========================================================================== */

.page-wrapper {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ==========================================================================
   Top Header & Apple Segmented Tab Navigation Bar
   ========================================================================== */

.pinstripe-header {
  position: relative;
}

.visitor-counter-badge {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #444444;
  background: linear-gradient(180deg, #ffffff 0%, #e9e9e9 100%);
  border: 1px solid #b5b5b5;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: none;
}

.online-counter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.online-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f9e44;
  box-shadow: 0 0 0 1px rgba(47, 158, 68, 0.25);
  flex-shrink: 0;
}

.counter-divider {
  color: #b0b0b0;
  margin: 0 1px;
}

.visitor-counter-label {
  color: #666666;
  font-weight: 500;
}

.visitor-counter-value {
  color: #111111;
  font-weight: 700;
}

@media (max-width: 1280px) {
  .visitor-counter-badge {
    position: static;
    transform: none;
    margin: 0 auto 10px;
    display: inline-flex;
  }

  .pinstripe-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.site-header {
  width: 100%;
  padding-top: 10px;
  margin-bottom: 14px;
}

/* Top Utility Links */
.header-utility-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
}

.header-blue-link {
  color: #0055cc;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.15s ease;
}

.header-blue-link:hover {
  color: #003399;
}

.utility-separator {
  color: #a0a0a0;
  font-size: 9px;
}

/* Apple 2001 Tab Bar */
.apple-tab-bar {
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  border: 1px solid #aeaeae;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.apple-tab-logo {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  border-right: 1px solid #c4c4c4;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  color: #111111;
  text-decoration: none;
  background: linear-gradient(180deg, #fdfdfd 0%, #e1e1e1 100%);
  letter-spacing: -0.01em;
}

.apple-tab-logo:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
}

.apple-tab-logo.active {
  background: linear-gradient(
    180deg,
    #c2c2c2 0%,
    #a8a8a8 50%,
    #9c9c9c 51%,
    #b5b5b5 100%
  );
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
  border-top: 1px solid #888888;
}

.apple-tab-links {
  display: flex;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.apple-tab-item {
  flex: 1;
  min-width: 80px;
  display: flex;
  border-right: 1px solid #c4c4c4;
}

.apple-tab-item:last-child {
  border-right: none;
}

.apple-tab-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ebebeb 50%,
    #dddddd 51%,
    #ececec 100%
  );
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  border-top: 1px solid #ffffff;
  transition:
    background 0.1s ease,
    color 0.1s ease;
  white-space: nowrap;
}

.apple-tab-link:hover {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f5f5f5 50%,
    #e6e6e6 51%,
    #f2f2f2 100%
  );
  color: #000000;
}

.apple-tab-item.active .apple-tab-link {
  background: linear-gradient(
    180deg,
    #c2c2c2 0%,
    #a8a8a8 50%,
    #9c9c9c 51%,
    #b5b5b5 100%
  );
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
  border-top: 1px solid #888888;
}

/* Sub-Navigation Strip */
.sub-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px;
  background-color: #f8f8f8;
  border-left: 1px solid #c4c4c4;
  border-right: 1px solid #c4c4c4;
  border-bottom: 1px solid #d0d0d0;
  font-size: 11px;
}

.sub-nav-links {
  display: flex;
  gap: 14px;
  list-style: none;
}

.sub-nav-links a {
  color: #555555;
  text-decoration: none;
  font-weight: 500;
}

.sub-nav-links a:hover {
  color: #000000;
  text-decoration: underline;
}

.sub-nav-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #666666;
  text-transform: uppercase;
}

/* ==========================================================================
   Announcement Bar (Hot News Style)
   ========================================================================== */

.announcement-section {
  margin: 12px 0 16px 0;
}

.announcement-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.headline-timestamp {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #666666;
  margin-left: auto;
  padding-right: 6px;
}

/* ==========================================================================
   Two-Button Quick Action Area (Replacing Cluttered Marketing Hero)
   Clean, punchy, direct entry into directory actions.
   ========================================================================== */

/* Unified Blue Aqua Split Button (Directory Toolbar Primary Action) */
.hero-split-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
}

.hero-split-group {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(24, 78, 160, 0.22);
}

.hero-split-main {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
  padding: 7px 16px 7px 20px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.hero-split-toggle {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.35) !important;
  padding: 7px 12px 7px 10px !important;
  font-size: 10px !important;
  min-width: 32px;
  box-shadow: none !important;
}

.hero-split-caret {
  display: inline-block;
  line-height: 1;
  transition: transform 0.15s ease;
}

.hero-split-wrap.is-open .hero-split-caret {
  transform: rotate(180deg);
}

/* Shared Classic Mac OS X Popover Dropdown Menu */
.aqua-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 175px;
  background: #ffffff;
  border: 1px solid #a8a8a8;
  border-radius: 5px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.16),
    0 2px 5px rgba(0, 0, 0, 0.08);
  padding: 4px 0;
  z-index: 200;
  display: none;
  flex-direction: column;
}

.hero-split-wrap.is-open .aqua-dropdown-menu,
.sort-dropdown-wrap.is-open .aqua-dropdown-menu {
  display: flex;
}

.aqua-dropdown-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.aqua-dropdown-item:hover,
.aqua-dropdown-item:focus-visible {
  background: linear-gradient(180deg, #3a83e7 0%, #2067cb 100%);
  color: #ffffff;
  outline: none;
}

.aqua-dropdown-item.is-selected {
  font-weight: 700;
  color: #1c52a4;
}

.aqua-dropdown-item.is-selected:hover {
  color: #ffffff;
}

.sort-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
}

.sort-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sort-dropdown-wrap.is-open .sort-dropdown-caret {
  transform: rotate(180deg);
}

.sort-dropdown-caret {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  transition: transform 0.15s ease;
}

/* ==========================================================================
   Directory Controls: Category Selector & Search Bar
   ========================================================================== */

.directory-header {
  padding: 28px 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directory-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.directory-headline-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.directory-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

.directory-count-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #444444;
  background: #efefef;
  border: 1px solid #c0c0c0;
  padding: 2px 8px;
  border-radius: 2px;
}

/* Category Tabs (Segmented Bar) */
.category-segmented-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #333333;
  background: linear-gradient(180deg, #ffffff 0%, #ededed 100%);
  border: 1px solid #b0b0b0;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
}

.category-tab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  color: #000000;
  border-color: #888888;
}

.category-tab.active {
  background: linear-gradient(180deg, #3a83e7 0%, #2067cb 100%);
  color: #ffffff;
  border-color: #164e99;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.15);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
}

/* Search Bar (Classic Beveled Search Input) */
.search-bar-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.beveled-search-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid #9a9a9a;
  border-radius: 3px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.15),
    0 1px 0 #ffffff;
  color: #111111;
  outline: none;
  transition: border-color 0.15s ease;
}

.beveled-search-input:focus {
  border-color: #3b82e8;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.1),
    0 0 3px rgba(59, 130, 232, 0.4);
}

/* ==========================================================================
   meet Cards Grid (Flatter, Grounded Directory Feel)
   ========================================================================== */

.meet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(295px, 100%), 1fr));
  gap: 14px;
  padding: 4px 0 28px 0;
}

/* ==========================================================================
   Clean, Minimal Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid #d0d0d0;
  padding: 20px 0 28px 0;
  text-align: center;
  font-size: 11px;
  color: #555555;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-nav a {
  color: #0044bb;
  text-decoration: underline;
}

.footer-copyright {
  color: #777777;
  font-size: 10px;
}

.footer-utility-links {
  margin-top: 6px;
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 0 12px;
  }

  .action-hero-strip {
    padding: 18px 0 12px 0;
  }

  .action-hero-buttons {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .action-hero-buttons .aqua-button {
    flex: 1 1 160px;
  }

  .directory-headline-row {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .meet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .apple-tab-logo {
    padding: 7px 12px;
    font-size: 15px;
  }

  .apple-tab-item {
    min-width: 0;
  }

  .apple-tab-link {
    padding: 7px 8px;
    font-size: 11px;
  }

  .action-hero-buttons .aqua-button-large {
    font-size: 14px;
    padding: 11px 18px;
  }

  .category-tab {
    padding: 4px 9px;
    font-size: 11px;
  }

  .search-bar-row {
    gap: 6px;
  }

  .beveled-search-input {
    font-size: 12px;
    padding: 6px 10px;
  }

  .brushed-metal-bar {
    border-radius: 8px;
    padding: 6px 8px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .metal-content {
    white-space: normal;
    padding: 0 2px;
  }
}
