/* ═══════════════════════════════════════════════════════════════
   Link Directory — Design System
   Modern, sharp, grey-based theme 2026
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ───────────────────────────────────── */
:root {
  --ld-bg:            #f0f2f5;
  --ld-bg-alt:        #e8eaed;
  --ld-surface:       #ffffff;
  --ld-border:        #d8dce4;
  --ld-shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --ld-shadow-md:     0 4px 12px rgba(0,0,0,.10);
  --ld-radius:        .5rem;
  --ld-radius-lg:     .75rem;

  --ld-text:          #1a1d23;
  --ld-text-muted:    #5a6170;
  --ld-text-light:    #8b95a5;

  --ld-primary:       #2563eb;
  --ld-primary-hover: #1d4ed8;
  --ld-primary-light: #eff6ff;

  --ld-success:       #16a34a;
  --ld-warning:       #d97706;
  --ld-danger:        #dc2626;

  --ld-nav-bg:        #1a1d23;
  --ld-nav-text:      #c9cdd4;
  --ld-nav-hover:     #ffffff;
  --ld-nav-h:         58px;

  --ld-catbar-bg:     #23272f;
  --ld-catbar-h:      36px;

  --ld-footer-bg:     #1a1d23;
  --ld-footer-text:   #9ba3af;

  --ld-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ld-font-mono:     'SFMono-Regular', Consolas, monospace;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --ld-bg:         #111318;
    --ld-bg-alt:     #1a1d23;
    --ld-surface:    #1e2229;
    --ld-border:     #2e333d;
    --ld-shadow:     0 1px 3px rgba(0,0,0,.3);
    --ld-shadow-md:  0 4px 12px rgba(0,0,0,.4);
    --ld-text:       #e8ecf1;
    --ld-text-muted: #8b95a5;
    --ld-text-light: #555e6d;
    --ld-primary-light: #1e3a6a;
  }
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.ld-body {
  font-family: var(--ld-font);
  background: var(--ld-bg);
  color: var(--ld-text);
  font-size: .9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header / Navbar ─────────────────────────────────────────── */
.ld-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--ld-shadow-md);
}

.ld-nav {
  background: var(--ld-nav-bg);
  height: var(--ld-nav-h);
  display: block;
}

.ld-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.ld-brand i { color: var(--ld-primary); font-size: 1.2rem; }
.ld-brand:hover { color: #fff; }

/* Search form */
.ld-search-form {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.ld-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 2rem;
  overflow: hidden;
  transition: all .2s;
}
.ld-search-wrap:focus-within {
  background: #fff;
  border-color: var(--ld-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.ld-search-icon {
  color: var(--ld-nav-text);
  padding: 0 .75rem;
  font-size: .9rem;
  flex-shrink: 0;
  pointer-events: none;
}
.ld-search-wrap:focus-within .ld-search-icon { color: var(--ld-text-muted); }
.ld-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  padding: .5rem .25rem;
  font-size: .9rem;
  outline: none;
  min-width: 0;
}
.ld-search-wrap:focus-within .ld-search-input { color: var(--ld-text); }
.ld-search-input::placeholder { color: rgba(255,255,255,.5); }
.ld-search-wrap:focus-within .ld-search-input::placeholder { color: var(--ld-text-light); }
.ld-search-btn {
  background: var(--ld-primary);
  color: #fff;
  border: none;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.ld-search-btn:hover { background: var(--ld-primary-hover); }

/* Autocomplete */
.ld-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow-md);
  display: none;
  z-index: 200;
  overflow: hidden;
}
.ld-autocomplete.show { display: block; }
.ld-autocomplete-item {
  padding: .5rem .875rem;
  cursor: pointer;
  font-size: .875rem;
  color: var(--ld-text);
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--ld-bg-alt);
}
.ld-autocomplete-item:last-child { border-bottom: none; }
.ld-autocomplete-item:hover { background: var(--ld-bg); }
.ld-autocomplete-item i { color: var(--ld-text-muted); font-size: .8rem; }

/* Nav links */
.ld-nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}
.ld-nav-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--ld-nav-text);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: var(--ld-radius);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all .15s;
  border: none;
  background: none;
  cursor: pointer;
}
.ld-nav-link:hover, .ld-nav-link.active { color: var(--ld-nav-hover); background: rgba(255,255,255,.1); }
.ld-nav-link span { display: none; }
@media (min-width: 1100px) { .ld-nav-link span { display: inline; } }

.ld-nav-submit {
  background: var(--ld-primary);
  color: #fff !important;
  border-radius: 2rem;
  padding: .4rem .875rem;
}
.ld-nav-submit:hover { background: var(--ld-primary-hover) !important; color: #fff; }

/* User dropdown */
.ld-nav-user { position: relative; }
.ld-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow-md);
  min-width: 180px;
  display: none;
  z-index: 300;
  overflow: hidden;
}
.ld-dropdown.show { display: block; }
.ld-dropdown-item {
  display: flex;
  align-items: center;
  padding: .6rem 1rem;
  font-size: .875rem;
  color: var(--ld-text);
  text-decoration: none;
  transition: background .1s;
}
.ld-dropdown-item:hover { background: var(--ld-bg); }
.ld-dropdown-danger { color: var(--ld-danger) !important; }
.ld-dropdown-divider { border: none; border-top: 1px solid var(--ld-border); margin: .25rem 0; }

/* Theme toggle */
.ld-theme-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--ld-nav-text);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .875rem;
  transition: all .15s;
}
.ld-theme-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Mobile */
.ld-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--ld-nav-text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: .25rem .5rem;
}
@media (max-width: 767px) {
  .ld-search-form { display: none; }
  .ld-nav-links .ld-nav-link:not(.ld-nav-submit):not(.ld-hamburger) { display: none; }
  .ld-hamburger { display: flex; align-items: center; }
  .ld-nav-submit { display: none; }
}
.ld-mobile-menu {
  background: var(--ld-nav-bg);
  border-top: 1px solid rgba(255,255,255,.05);
  display: none;
}
.ld-mobile-menu.show { display: block; }

/* Category bar */
.ld-catbar {
  background: var(--ld-catbar-bg);
  height: var(--ld-catbar-h);
  overflow: hidden;
}
.ld-catbar-inner {
  display: flex;
  align-items: center;
  gap: .25rem;
  overflow-x: auto;
  height: 100%;
  scrollbar-width: none;
  padding: 0 .25rem;
}
.ld-catbar-inner::-webkit-scrollbar { display: none; }
.ld-catbar-item {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  padding: .2rem .625rem;
  border-radius: 2rem;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.ld-catbar-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.ld-catbar-all { color: #fff; background: rgba(255,255,255,.1); }

/* ── Main content area ───────────────────────────────────────── */
.ld-main { min-height: 70vh; }

/* ── Cards / Link cards ──────────────────────────────────────── */
.ld-card {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  box-shadow: var(--ld-shadow);
  transition: box-shadow .2s, transform .2s;
}
.ld-card:hover { box-shadow: var(--ld-shadow-md); transform: translateY(-1px); }

.ld-link-card {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  box-shadow: var(--ld-shadow);
  padding: 1rem 1.25rem;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
}
.ld-link-card:hover { box-shadow: var(--ld-shadow-md); border-color: #b8c0d0; }
.ld-link-card.is-featured { border-left: 3px solid var(--ld-warning); }

.ld-link-title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ld-primary);
  text-decoration: none;
  display: block;
  line-height: 1.3;
}
.ld-link-title:hover { color: var(--ld-primary-hover); text-decoration: underline; }
.ld-link-url {
  font-size: .78rem;
  color: var(--ld-success);
  display: block;
  margin-top: .15rem;
}
.ld-link-desc {
  font-size: .85rem;
  color: var(--ld-text-muted);
  margin: .35rem 0 .5rem;
  line-height: 1.5;
}
.ld-link-meta {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--ld-text-light);
}
.ld-link-meta a { color: var(--ld-text-muted); text-decoration: none; }
.ld-link-meta a:hover { color: var(--ld-primary); }

/* Featured badge */
.ld-badge-featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ── Category cards (grid) ───────────────────────────────────── */
.ld-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
@media (min-width: 576px) { .ld-cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }
@media (min-width: 992px) { .ld-cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

.ld-cat-card {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  padding: .875rem .875rem .75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: all .2s;
  color: var(--ld-text);
}
.ld-cat-card:hover {
  border-color: var(--ld-primary);
  box-shadow: 0 0 0 3px var(--ld-primary-light);
  transform: translateY(-2px);
  color: var(--ld-text);
}
.ld-cat-name {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}
.ld-cat-count {
  font-size: .75rem;
  color: var(--ld-text-muted);
}

/* ── Hero search (index page) ────────────────────────────────── */
.ld-hero {
  background: linear-gradient(135deg, #1a1d23 0%, #23272f 50%, #1e2432 100%);
  padding: 3.5rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ld-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0, rgba(37,99,235,.15) 0%, transparent 70%);
  pointer-events: none;
}
.ld-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.ld-hero-sub {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.ld-hero-search {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all .2s;
}
.ld-hero-search:focus-within {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.3);
}
.ld-hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  padding: .875rem 1.25rem;
  font-size: 1rem;
  outline: none;
}
.ld-hero-search:focus-within input { color: var(--ld-text); }
.ld-hero-search input::placeholder { color: rgba(255,255,255,.5); }
.ld-hero-search:focus-within input::placeholder { color: var(--ld-text-light); }
.ld-hero-search button {
  background: var(--ld-primary);
  color: #fff;
  border: none;
  padding: .875rem 1.75rem;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.ld-hero-search button:hover { background: var(--ld-primary-hover); }
.ld-hero-stats {
  margin-top: 1.5rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ld-hero-stat {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}
.ld-hero-stat strong { color: #fff; }

/* Trending tags */
.ld-trending {
  margin-top: 1.5rem;
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.ld-trending-label { color: rgba(255,255,255,.5); font-size: .8rem; }
.ld-trending-tag {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: .25rem .75rem;
  border-radius: 2rem;
  font-size: .78rem;
  transition: all .15s;
}
.ld-trending-tag:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── Section headings ────────────────────────────────────────── */
.ld-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ld-text);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--ld-border);
}
.ld-section-title a {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ld-primary);
  text-decoration: none;
}
.ld-section-title a:hover { text-decoration: underline; }

/* ── Sidebar widgets ─────────────────────────────────────────── */
.ld-widget {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  padding: 1rem 1.125rem;
  margin-bottom: 1rem;
}
.ld-widget-title {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ld-text-muted);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ld-border);
}
.ld-widget-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid var(--ld-bg);
  color: var(--ld-text);
  text-decoration: none;
  font-size: .85rem;
  transition: color .1s;
}
.ld-widget-link:last-child { border-bottom: none; }
.ld-widget-link:hover { color: var(--ld-primary); }

/* ── Search results ──────────────────────────────────────────── */
.ld-search-header {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.ld-search-form-inline {
  display: flex;
  gap: .5rem;
}
.ld-search-form-inline input {
  flex: 1;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  padding: .5rem .875rem;
  font-size: .9rem;
  background: var(--ld-bg);
  color: var(--ld-text);
  outline: none;
}
.ld-search-form-inline input:focus {
  border-color: var(--ld-primary);
  box-shadow: 0 0 0 3px var(--ld-primary-light);
  background: var(--ld-surface);
}

/* Sponsored ad */
.ld-sponsored {
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: var(--ld-radius);
  padding: .75rem 1rem;
  margin-bottom: .5rem;
}
.ld-sponsored-badge {
  font-size: .68rem;
  font-weight: 700;
  color: #92400e;
  background: #fde68a;
  padding: .15rem .45rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.ld-breadcrumb {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: .8125rem;
  color: var(--ld-text-muted);
}
.ld-breadcrumb a { color: var(--ld-text-muted); text-decoration: none; }
.ld-breadcrumb a:hover { color: var(--ld-primary); }
.ld-breadcrumb-sep { color: var(--ld-text-light); }

/* ── Pagination ──────────────────────────────────────────────── */
.ld-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.ld-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .5rem;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  background: var(--ld-surface);
  color: var(--ld-text);
  text-decoration: none;
  font-size: .85rem;
  transition: all .15s;
}
.ld-page-btn:hover { border-color: var(--ld-primary); color: var(--ld-primary); }
.ld-page-btn.active { background: var(--ld-primary); border-color: var(--ld-primary); color: #fff; font-weight: 600; }
.ld-page-btn.disabled { opacity: .4; pointer-events: none; }

/* ── Star rating ─────────────────────────────────────────────── */
.ld-stars { color: #f59e0b; font-size: .85rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.ld-form-card {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--ld-shadow);
}

/* ── Footer ──────────────────────────────────────────────────── */
.ld-footer {
  background: var(--ld-footer-bg);
  color: var(--ld-footer-text);
  margin-top: 3rem;
}
.ld-footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.ld-footer-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}
.ld-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.ld-footer-links a {
  color: var(--ld-footer-text);
  text-decoration: none;
  font-size: .85rem;
  transition: color .1s;
}
.ld-footer-links a:hover { color: #fff; }
.ld-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── Back to top ─────────────────────────────────────────────── */
.ld-back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px; height: 40px;
  background: var(--ld-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 2px 8px rgba(37,99,235,.4);
  z-index: 999;
}
.ld-back-top.show { opacity: 1; pointer-events: auto; }
.ld-back-top:hover { background: var(--ld-primary-hover); color: #fff; transform: translateY(-2px); }

/* ── Admin overrides (shared namespace) ──────────────────────── */
.admin-sidebar { background: #1a1d23 !important; }
.btn-xs { font-size: .72rem; padding: .2rem .45rem; }

/* ── Utility ─────────────────────────────────────────────────── */
.text-muted { color: var(--ld-text-muted) !important; }
.min-w-0 { min-width: 0; }
.font-mono { font-family: var(--ld-font-mono); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .3s ease forwards; }

/* ═══════════════════════════════════════════════════════════════
   PREMIUM / FEATURED LISTINGS — People pay for this!
   ═══════════════════════════════════════════════════════════════ */

.ld-link-card.is-featured {
  background: linear-gradient(135deg, #fffbf0 0%, #fff 60%);
  border: 1.5px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 4px 16px rgba(245,158,11,.15), var(--ld-shadow);
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer top-right glow */
.ld-link-card.is-featured::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 70%);
  pointer-events: none;
}

.ld-link-card.is-featured:hover {
  box-shadow: 0 6px 24px rgba(245,158,11,.25), var(--ld-shadow-md);
  transform: translateY(-2px);
}

/* Premium badge — big and proud */
.ld-badge-featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: .25rem .65rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(245,158,11,.4);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.ld-badge-featured::before { content: '★'; font-size: .8rem; }

/* Premium title gets a gold tint */
.ld-link-card.is-featured .ld-link-title {
  color: #92400e;
  font-weight: 700;
}
.ld-link-card.is-featured .ld-link-title:hover { color: #78350f; }

/* "FEATURED" ribbon on search results */
.ld-result-featured {
  background: linear-gradient(135deg, #fffbf0 0%, #fff 70%);
  border: 1.5px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(245,158,11,.18);
  position: relative;
}
.ld-result-featured::after {
  content: '★ FEATURED';
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: .2rem .6rem;
  border-radius: 0 var(--ld-radius-lg) 0 var(--ld-radius);
  letter-spacing: .06em;
}

/* Premium ribbon for admin list */
.premium-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(245,158,11,.5);
}

/* Dark mode premium */
@media (prefers-color-scheme: dark) {
  .ld-link-card.is-featured {
    background: linear-gradient(135deg, #292014 0%, #1e2229 60%);
    border-color: #d97706;
  }
  .ld-link-card.is-featured .ld-link-title { color: #fbbf24; }
  .ld-link-card.is-featured .ld-link-title:hover { color: #fcd34d; }
}

/* ── Admin layout dark sidebar fix ───────────────────────────── */
@media (max-width: 767px) {
  .admin-sidebar { position: relative !important; width: 100% !important; }
}

/* ── Centered navigation ─────────────────────────────────────── */
.ld-nav {
  background: var(--ld-nav-bg);
  height: var(--ld-nav-h);
  padding: 0;
}
.ld-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}
/* Catbar uses same centered inner */
.ld-catbar .ld-nav-inner {
  height: var(--ld-catbar-h);
  padding: 0 2rem;
}

/* ── sidebar-widget alias (used in dir.php sidebar) ─────────── */
.sidebar-widget        { background:var(--ld-surface);border:1px solid var(--ld-border);border-radius:var(--ld-radius-lg);padding:1rem 1.125rem;margin-bottom:1rem; }
.sidebar-widget-title  { font-size:.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--ld-text-muted);margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid var(--ld-border); }
