﻿/* ================================================================
   SEC-ABC.CSS — ADDYBUDDY BRAND OVERRIDES (Navy & Gold)
   ----------------------------------------------------------------
   • Load AFTER main-abc.css.
   • ONLY contains color palette overrides and scrolled nav state.
   • Does NOT contain layout spacing (handled in main-abc.css).
   ================================================================ */

:root {
  /* ---------- Brand Colors ---------- */
  --background-color:  #ffffff;
  --default-color:     #3a3f52;
  --heading-color:     #0b2545;       /* Deep Navy */
  --surface-color:     #ffffff;
  --surface-soft:      #f7f8fc;
  --surface-tint:      #eef1f9;
  --contrast-color:    #ffffff;
  --line-color:        rgba(11, 37, 69, 0.08);
  --line-color-strong: rgba(11, 37, 69, 0.14);
  --shadow-sm:         0 1px 2px rgba(11, 37, 69, 0.05);
  --shadow-md:         0 4px 14px -4px rgba(11, 37, 69, 0.12);
  --shadow-lg:         0 24px 48px -24px rgba(11, 37, 69, 0.28);

  /* ---------- Accent Colors ---------- */
  --accent-color:      #c8992e;       /* AddyBuddy Gold */
  --accent-bright:     #f2c14e;       /* Light Gold */

  /* ---------- Gradient stops ---------- */
  --gradient-start:    #0b2545;
  --gradient-mid:      #13315c;
  --gradient-end:      #1b4b8a;

  /* ---------- Transparent Header Nav ---------- */
  --nav-top-color:       #0b2545;
  --nav-top-hover-color: var(--accent-color);

  /* ---------- Footer Colors ---------- */
  --pf-bg:          #071428;
  --pf-bg-deep:     #050e1d;
  --pf-fg:          #e4e9f2;
  --pf-fg-muted:    #8a96ad;
  --pf-fg-dim:      #4f5a70;
  --pf-accent:      var(--accent-bright);
  --pf-accent-soft: rgba(242, 193, 78, 0.12);
  --pf-line:        rgba(255, 255, 255, 0.07);
  --pf-line-strong: rgba(255, 255, 255, 0.14);
}

/* ================================================================
   HEADER: SCROLLED STATE OVERRIDE (Navy Background)
   ================================================================ */
html.scrolled #header.header {
  background-color: rgba(11, 37, 69, 0.95) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 
              0 8px 24px -12px rgba(0, 0, 0, 0.3) !important;
}

html.scrolled #header.header .logo-text .sitename {
  color: #ffffff !important;
}
html.scrolled #header.header .logo-text .sitename-tagline {
  color: rgba(255, 255, 255, 0.7) !important;
}
html.scrolled .mobile-nav-toggle {
  color: #ffffff !important;
}

/* ================================================================
   LITERAL COLOR PATCHES (Where main-abc.css hardcodes green)
   ================================================================ */

/* Hero background grid and glow */
.hero::before {
  background-image:
    linear-gradient(to right,  rgba(11, 37, 69, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 37, 69, 0.055) 1px, transparent 1px);
}
.hero::after {
  background: radial-gradient(circle,
              rgba(200, 153, 46, 0.15) 0%,
              rgba(200, 153, 46, 0.03) 40%,
              transparent 70%);
}

/* Footer top line and glow */
.pm-footer::before {
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--pf-accent) 50%, transparent 100%);
}
.pm-footer::after {
  background: radial-gradient(ellipse at 50% 0%, rgba(242, 193, 78, 0.10) 0%, rgba(242, 193, 78, 0.03) 35%, transparent 70%);
}

/* Footer status pulse and logo mark */
.pm-footer .pm-footer-logo-mark {
  background: linear-gradient(135deg, var(--heading-color) 0%, var(--accent-color) 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(200, 153, 46, 0.5);
}
.pm-footer .pm-status-dot {
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.18);
}
.pm-footer .pm-status-dot::after {
  background: var(--accent-bright);
}

/* CTA Band background */
.cta-band .cta-card {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(242, 193, 78, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, var(--gradient-end) 0%, var(--gradient-mid) 100%);
}
/* ================================================================
   18. SEARCH PAGE
   ================================================================ */
.search-hero {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line-color);
    padding: 48px 0;
    margin-bottom: 48px;
}

.search-hero h1 {
    font-family: var(--display-font);
    font-size: 32px;
    font-weight: 800;
    color: var(--heading-color);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.search-hero-form {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid var(--line-color-strong);
    border-radius: 14px;
    padding: 8px;
    max-width: 800px;
    box-shadow: 0 4px 12px -4px rgba(11, 37, 69, 0.05);
}

.search-hero-form input {
    flex: 1;
    min-width: 200px;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--default-font);
    font-size: 16px;
    color: var(--default-color);
    padding: 10px 16px;
}

.search-hero-form input::placeholder {
    color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.search-hero-form .btn {
    border-radius: 10px;
    padding: 0 28px;
}

/* Sidebar Filters */
.search-sidebar {
    position: sticky;
    top: 100px;
}

.search-filter-card {
    background: #fff;
    border: 1px solid var(--line-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.search-filter-card h4 {
    font-family: var(--display-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-color);
}

.search-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-filter-list li {
    margin-bottom: 8px;
}

.search-filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--default-color);
    font-size: 14px;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.search-filter-list a:hover,
.search-filter-list a.active {
    background: var(--surface-soft);
    color: var(--accent-color);
    font-weight: 500;
}

/* Result Toolbar */
.search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-color);
}

.search-results-count {
    font-family: var(--mono-font);
    font-size: 14px;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.search-results-count strong {
    color: var(--heading-color);
    font-weight: 600;
}

.search-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.search-sort select {
    padding: 8px 12px;
    border: 1px solid var(--line-color-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--heading-color);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Pagination */
.search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.search-pagination a,
.search-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line-color);
    background: #fff;
    color: var(--heading-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-pagination a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.search-pagination .active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff !important;
}

.search-pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty State */
.search-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface-soft);
    border-radius: 16px;
    border: 1px dashed var(--line-color-strong);
}

.search-empty i {
    font-size: 48px;
    color: color-mix(in srgb, var(--default-color), transparent 60%);
    margin-bottom: 16px;
    display: block;
}

.search-empty h3 {
    font-family: var(--display-font);
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.search-empty p {
    font-size: 15px;
    color: var(--default-color);
}

@media (max-width: 992px) {
    .search-sidebar {
        position: static;
        margin-bottom: 32px;
    }
}