/*
Theme Name: localdrop-wp-theme-wpvibe-backup
Theme URI: https://localdrop.com
Author: LocalDrop
Author URI: https://localdrop.com
Description: A bold, dark, AI-powered local deals theme with an orange background, dark card surfaces, and lime-green accents. Features deal cards, city selectors, category filters, modal overlays, and skeleton loaders. Built for local deals and listings websites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: localdrop
Tags: dark, orange, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, two-columns, three-columns, blog, news, e-commerce
*/

/* ==========================================================================
   LOCALDROP THEME — CSS
   Palette: Orange bg (#e85d00), Dark surfaces (#161918), Lime accent (#c8f566)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  --ld-bg:           #e85d00;
  --ld-surface:      #161918;
  --ld-surface2:     #1e2220;
  --ld-border:       rgba(255, 255, 255, 0.08);
  --ld-border2:      rgba(255, 255, 255, 0.14);
  --ld-text:         #f0ede8;
  --ld-muted:        #8a9490;
  --ld-accent:       #c8f566;
  --ld-accent2:      #5dffc8;
  --ld-accent3:      #ff8c5a;
  --ld-tag-bg:       rgba(200, 245, 102, 0.1);
  --ld-tag-text:     #c8f566;

  --ld-radius-sm:    6px;
  --ld-radius-md:    12px;
  --ld-radius-lg:    16px;
  --ld-radius-xl:    20px;
  --ld-radius-full:  9999px;

  --ld-font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ld-font-serif:   'DM Serif Display', Georgia, 'Times New Roman', serif;

  --ld-transition:   0.2s ease;
  --ld-transition-fast: 0.18s ease;
}

/* --------------------------------------------------------------------------
   2. GOOGLE FONTS IMPORT
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ld-bg);
  color: var(--ld-text);
  font-family: var(--ld-font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WordPress body classes */
.wp-site-blocks { background-color: var(--ld-bg); }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ld-font-serif);
  color: var(--ld-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--ld-muted);
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 1rem;
}

a {
  color: var(--ld-accent);
  text-decoration: none;
  transition: opacity var(--ld-transition);
}

a:hover { opacity: 0.8; }

strong, b { font-weight: 700; color: var(--ld-text); }

em, i { font-style: italic; }

small { font-size: 0.75rem; color: var(--ld-muted); }

ul, ol {
  padding-left: 1.5rem;
  color: var(--ld-muted);
  font-weight: 700;
}

li { margin-bottom: 0.25rem; }

blockquote {
  border-left: 3px solid var(--ld-accent);
  padding: 1rem 1.5rem;
  background: var(--ld-surface);
  border-radius: 0 var(--ld-radius-md) var(--ld-radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ld-text);
}

code, pre {
  font-family: 'Fira Code', 'Courier New', monospace;
  background: var(--ld-surface2);
  color: var(--ld-accent2);
  border-radius: var(--ld-radius-sm);
  padding: 2px 7px;
  font-size: 0.875em;
}

pre {
  padding: 1.5rem;
  overflow-x: auto;
  border: 0.5px solid var(--ld-border);
  margin: 1.5rem 0;
}

hr {
  border: none;
  border-top: 0.5px solid var(--ld-border);
  margin: 2rem 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ld-radius-md);
}

/* --------------------------------------------------------------------------
   5. LAYOUT
   -------------------------------------------------------------------------- */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

.container,
.wp-block-group.alignwide,
.entry-content > *:not(.alignfull):not(.alignwide) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container--narrow { max-width: 720px; }
.container--wide   { max-width: 1400px; }

/* --------------------------------------------------------------------------
   6. HEADER / SITE HEADER
   -------------------------------------------------------------------------- */
.site-header,
#masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 93, 0, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--ld-border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  justify-content: space-between;
}

/* Site logo / title */
.site-branding,
.site-title {
  font-family: var(--ld-font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ld-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-title a {
  color: var(--ld-text);
  text-decoration: none;
}

.site-title a span { color: var(--ld-accent); }

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--ld-accent);
  border-radius: 50%;
  display: inline-block;
  animation: ld-pulse 2s infinite;
}

@keyframes ld-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.site-description {
  display: none;
}

/* --------------------------------------------------------------------------
   7. NAVIGATION
   -------------------------------------------------------------------------- */
.main-navigation,
#site-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul,
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.main-navigation li a,
.nav-menu li a {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-muted);
  border-radius: var(--ld-radius-full);
  border: 0.5px solid transparent;
  transition: all var(--ld-transition);
  text-decoration: none;
}

.main-navigation li a:hover,
.nav-menu li a:hover,
.main-navigation li.current-menu-item a,
.nav-menu li.current-menu-item a {
  color: var(--ld-text);
  border-color: var(--ld-border2);
  background: var(--ld-surface2);
}

/* City badge in nav */
.city-badge {
  background: var(--ld-surface2);
  border: 0.5px solid var(--ld-border2);
  border-radius: var(--ld-radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-muted);
  cursor: pointer;
  transition: all var(--ld-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.city-badge:hover {
  color: var(--ld-text);
  border-color: var(--ld-accent);
}

.city-badge svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   8. HERO / PAGE HEADER
   -------------------------------------------------------------------------- */
.hero,
.page-header,
.entry-header {
  padding: 5rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow,
.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ld-accent);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.hero h1,
.page-title,
.entry-title {
  font-family: var(--ld-font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--ld-text);
}

.hero h1 em,
.page-title em {
  font-style: italic;
  color: var(--ld-accent);
}

.hero-sub,
.page-description {
  font-size: 1.1rem;
  color: var(--ld-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. CITY SELECTOR CHIPS
   -------------------------------------------------------------------------- */
.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3rem;
}

.city-chip {
  background: var(--ld-surface);
  border: 0.5px solid var(--ld-border);
  border-radius: var(--ld-radius-full);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-muted);
  cursor: pointer;
  transition: all var(--ld-transition-fast);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  font-family: var(--ld-font-sans);
}

.city-chip:hover {
  color: var(--ld-text);
  border-color: var(--ld-border2);
  background: var(--ld-surface2);
  opacity: 1;
}

.city-chip.active,
.city-chip:focus {
  background: var(--ld-accent);
  color: #0d0f0e;
  border-color: var(--ld-accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   10. CATEGORY BAR
   -------------------------------------------------------------------------- */
.category-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.cat-btn {
  background: var(--ld-surface);
  border: 0.5px solid var(--ld-border);
  border-radius: var(--ld-radius-sm);
  padding: 8px 18px;
  font-size: 13px;
  font-family: var(--ld-font-sans);
  font-weight: 700;
  color: var(--ld-muted);
  cursor: pointer;
  transition: all var(--ld-transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-btn:hover {
  color: var(--ld-text);
  border-color: var(--ld-border2);
}

.cat-btn.active {
  color: #0d0f0e;
  background: var(--ld-accent);
  border-color: var(--ld-accent);
}

.cat-icon { font-size: 15px; }

/* --------------------------------------------------------------------------
   11. SEARCH BAR
   -------------------------------------------------------------------------- */
.search-wrap,
.search-form-wrap {
  position: relative;
  max-width: 640px;
  margin-bottom: 3rem;
}

.search-input,
.search-field,
input[type="search"] {
  width: 100%;
  background: var(--ld-surface);
  border: 0.5px solid var(--ld-border2);
  border-radius: var(--ld-radius-md);
  padding: 14px 20px 14px 48px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--ld-font-sans);
  color: var(--ld-text);
  outline: none;
  transition: border-color var(--ld-transition);
  appearance: none;
  -webkit-appearance: none;
}

.search-input::placeholder,
.search-field::placeholder { color: var(--ld-muted); }

.search-input:focus,
.search-field:focus {
  border-color: var(--ld-accent);
  box-shadow: 0 0 0 3px rgba(200, 245, 102, 0.12);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ld-muted);
  pointer-events: none;
}

.search-btn,
.search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ld-accent);
  color: #0d0f0e;
  border: none;
  border-radius: var(--ld-radius-sm);
  padding: 7px 18px;
  font-size: 13px;
  font-family: var(--ld-font-sans);
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--ld-transition);
}

.search-btn:hover,
.search-submit:hover { opacity: 0.85; }

/* --------------------------------------------------------------------------
   12. SECTION HEADER
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--ld-font-serif);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--ld-text);
}

.section-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-muted);
}

/* --------------------------------------------------------------------------
   13. DEALS GRID
   -------------------------------------------------------------------------- */
.deals-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   14. DEAL CARD  (also used as .post-card, .product-card)
   -------------------------------------------------------------------------- */
.deal-card,
.post-card,
.product-card {
  background: var(--ld-surface);
  border: 0.5px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  overflow: hidden;
  transition: all var(--ld-transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.deal-card:hover,
.post-card:hover,
.product-card:hover {
  border-color: var(--ld-border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.deal-card-top,
.card-body {
  padding: 1.25rem 1.25rem 1rem;
  flex: 1;
}

.deal-store,
.card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ld-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ld-accent2);
  flex-shrink: 0;
}

.deal-title,
.card-title,
.entry-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--ld-text);
  font-family: var(--ld-font-sans);
}

.deal-desc,
.card-excerpt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.deal-card-bottom,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1.25rem;
  border-top: 0.5px solid var(--ld-border);
}

.deal-price,
.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-new,
.price-sale {
  font-family: var(--ld-font-serif);
  font-size: 1.4rem;
  color: var(--ld-accent);
  letter-spacing: -0.02em;
}

.price-old,
.price-regular {
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-muted);
  text-decoration: line-through;
}

.discount-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 140, 90, 0.15);
  color: var(--ld-accent3);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   15. TAGS
   -------------------------------------------------------------------------- */
.deal-tags,
.card-tags,
.wp-block-tag-cloud {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 1.25rem 1rem;
}

.tag,
.wp-tag-cloud a {
  font-size: 11px;
  font-weight: 700;
  background: var(--ld-tag-bg);
  color: var(--ld-tag-text);
  border-radius: 5px;
  padding: 3px 9px;
  text-decoration: none;
  display: inline-block;
  transition: opacity var(--ld-transition);
}

.tag:hover,
.wp-tag-cloud a:hover { opacity: 0.8; }

.tag.blue {
  background: rgba(93, 255, 200, 0.08);
  color: var(--ld-accent2);
}

.tag.orange {
  background: rgba(255, 140, 90, 0.1);
  color: var(--ld-accent3);
}

/* WordPress post category pills */
.cat-links a,
.post-categories a,
.tags-links a {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--ld-tag-bg);
  color: var(--ld-tag-text);
  border-radius: 5px;
  padding: 3px 9px;
  text-decoration: none;
  margin-right: 4px;
  transition: opacity var(--ld-transition);
}

.cat-links a:hover,
.tags-links a:hover { opacity: 0.8; }

/* --------------------------------------------------------------------------
   16. EXPIRY / META BADGE
   -------------------------------------------------------------------------- */
.expiry,
.post-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--ld-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   17. SKELETON LOADER
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--ld-surface) 25%,
    var(--ld-surface2) 50%,
    var(--ld-surface) 75%
  );
  background-size: 200% 100%;
  animation: ld-shimmer 1.5s infinite;
  border-radius: var(--ld-radius-sm);
}

@keyframes ld-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skel-card {
  background: var(--ld-surface);
  border: 0.5px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  padding: 1.25rem;
}

.skel-line  { height: 14px; margin-bottom: 10px; }
.skel-title { height: 18px; width: 80%; margin-bottom: 10px; }
.skel-desc  { height: 13px; width: 60%; margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   18. AI BADGE
   -------------------------------------------------------------------------- */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 245, 102, 0.08);
  border: 0.5px solid rgba(200, 245, 102, 0.2);
  border-radius: var(--ld-radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ld-accent);
  margin-bottom: 1.5rem;
}

.ai-dot {
  width: 6px;
  height: 6px;
  background: var(--ld-accent);
  border-radius: 50%;
  animation: ld-pulse 1.5s infinite;
}

/* --------------------------------------------------------------------------
   19. BUTTONS
   -------------------------------------------------------------------------- */
.btn,
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ld-accent);
  color: #0d0f0e;
  border: none;
  border-radius: var(--ld-radius-md);
  padding: 12px 24px;
  font-size: 14px;
  font-family: var(--ld-font-sans);
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--ld-transition);
  text-decoration: none;
  line-height: 1;
}

.btn:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover { opacity: 0.85; color: #0d0f0e; }

.btn--secondary {
  background: var(--ld-surface2);
  color: var(--ld-text);
  border: 0.5px solid var(--ld-border2);
}

.btn--secondary:hover { background: var(--ld-surface); color: var(--ld-text); }

.btn--ghost {
  background: transparent;
  color: var(--ld-accent);
  border: 0.5px solid var(--ld-accent);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ld-accent);
  color: #0d0f0e;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-family: var(--ld-font-sans);
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--ld-transition);
  text-decoration: none;
}

.cta-btn:hover { opacity: 0.85; color: #0d0f0e; }

/* --------------------------------------------------------------------------
   20. FORMS & INPUTS
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: var(--ld-surface);
  border: 0.5px solid var(--ld-border2);
  border-radius: var(--ld-radius-md);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--ld-font-sans);
  color: var(--ld-text);
  outline: none;
  transition: border-color var(--ld-transition);
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder { color: var(--ld-muted); }

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: var(--ld-accent);
  box-shadow: 0 0 0 3px rgba(200, 245, 102, 0.12);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ld-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

textarea { min-height: 120px; resize: vertical; }

/* --------------------------------------------------------------------------
   21. MODAL / OVERLAY
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--ld-surface);
  border: 0.5px solid var(--ld-border2);
  border-radius: var(--ld-radius-xl);
  max-width: 560px;
  width: 100%;
  padding: 2rem;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--ld-surface2);
  border: none;
  color: var(--ld-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ld-transition);
}

.modal-close:hover { color: var(--ld-text); }

.modal-store {
  font-size: 12px;
  font-weight: 700;
  color: var(--ld-accent2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--ld-font-serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--ld-text);
}

.modal-desc {
  font-size: 14px;
  font-weight: 700;
  color: var(--ld-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.modal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-meta-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-muted);
}

.modal-meta-item strong {
  color: var(--ld-text);
  display: block;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   22. STATUS / EMPTY STATE
   -------------------------------------------------------------------------- */
.status-msg,
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ld-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.status-msg strong,
.no-results .page-title {
  display: block;
  font-family: var(--ld-font-serif);
  font-size: 1.5rem;
  color: var(--ld-text);
  margin-bottom: 8px;
  font-weight: normal;
}

/* --------------------------------------------------------------------------
   23. SIDEBAR & WIDGETS
   -------------------------------------------------------------------------- */
.widget-area,
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: var(--ld-surface);
  border: 0.5px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  padding: 1.5rem;
}

.widget-title,
.widgettitle {
  font-family: var(--ld-font-serif);
  font-size: 1.1rem;
  color: var(--ld-text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--ld-border);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 6px 0; border-bottom: 0.5px solid var(--ld-border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--ld-muted); font-weight: 700; font-size: 14px; transition: color var(--ld-transition); }
.widget ul li a:hover { color: var(--ld-accent); opacity: 1; }

/* --------------------------------------------------------------------------
   24. FOOTER
   -------------------------------------------------------------------------- */
.site-footer,
#colophon {
  border-top: 0.5px solid var(--ld-border);
  padding: 2rem;
  text-align: center;
  color: var(--ld-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: transparent;
}

.site-footer a { color: var(--ld-accent); }

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 2rem 2rem 0;
}

/* --------------------------------------------------------------------------
   25. PAGINATION
   -------------------------------------------------------------------------- */
.navigation.pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 3rem 0;
}

.page-numbers,
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ld-surface);
  border: 0.5px solid var(--ld-border);
  border-radius: var(--ld-radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--ld-muted);
  text-decoration: none;
  transition: all var(--ld-transition);
}

.page-numbers:hover,
.nav-links a:hover,
.page-numbers.current {
  background: var(--ld-accent);
  color: #0d0f0e;
  border-color: var(--ld-accent);
}

/* --------------------------------------------------------------------------
   26. WORDPRESS BLOCK EDITOR OVERRIDES
   -------------------------------------------------------------------------- */
.wp-block-separator {
  border: none;
  border-top: 0.5px solid var(--ld-border);
  margin: 2rem auto;
}

.wp-block-quote {
  border-left: 3px solid var(--ld-accent);
  padding: 1rem 1.5rem;
  background: var(--ld-surface);
  border-radius: 0 var(--ld-radius-md) var(--ld-radius-md) 0;
  margin: 1.5rem 0;
}

.wp-block-quote cite { color: var(--ld-muted); font-size: 13px; }

.wp-block-image figcaption {
  font-size: 12px;
  color: var(--ld-muted);
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ld-surface);
  border-radius: var(--ld-radius-md);
  overflow: hidden;
}

.wp-block-table th {
  background: var(--ld-surface2);
  color: var(--ld-text);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 0.5px solid var(--ld-border2);
}

.wp-block-table td {
  padding: 11px 16px;
  color: var(--ld-muted);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 0.5px solid var(--ld-border);
}

.wp-block-table tr:last-child td { border-bottom: none; }
.wp-block-table tr:hover td { background: var(--ld-surface2); }

/* --------------------------------------------------------------------------
   27. ADMIN BAR ADJUSTMENT
   -------------------------------------------------------------------------- */
.admin-bar .site-header,
.admin-bar #masthead {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar #masthead { top: 46px; }
}

/* --------------------------------------------------------------------------
   28. ACCESSIBILITY
   -------------------------------------------------------------------------- */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal;
}

:focus-visible {
  outline: 2px solid var(--ld-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   29. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-header, #masthead {
    padding: 0 1rem;
  }

  .hero, .page-header, .entry-header {
    padding: 3rem 1rem 2rem;
  }

  .deals-grid, .posts-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 4px;
  }

  .hero h1, .page-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .modal { padding: 1.5rem; margin: 1rem; }

  .footer-widgets {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 0;
  }

  .container,
  .wp-block-group.alignwide {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .main-navigation ul,
  .nav-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .city-grid { gap: 6px; }
  .city-chip { padding: 6px 12px; font-size: 12px; }
  .deals-grid { gap: 1rem; }
}

@media (min-width: 1400px) {
  .deals-grid, .posts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   LOCALDROP APP — Additional styles for the deals app template
   ========================================================================== */

/* Wrapper */
.localdrop-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.localdrop-app .hero {
  padding-bottom: 2rem;
}

/* City badge in header */
#ld-header-city-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ld-surface2);
  border: 0.5px solid var(--ld-border2);
  border-radius: var(--ld-radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-text);
  white-space: nowrap;
  flex-shrink: 0;
}

#ld-header-city-badge svg {
  width: 14px;
  height: 14px;
  color: var(--ld-accent);
  flex-shrink: 0;
}

/* Site header layout — logo | city badge | nav */
.site-header {
  gap: 1rem;
}

@media (max-width: 640px) {
  #ld-header-city-badge { display: none; }
}

/* Deal card hover cursor */
.deal-card { cursor: pointer; }

/* AI badge animation */
.ai-badge .ai-dot {
  animation: ld-pulse 1.2s ease-in-out infinite;
}

/* Ensure modal is above WP admin bar */
.admin-bar .modal-overlay { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .modal-overlay { top: 46px; }
}

/* "See deal" fallback price color */
.deal-card .price-see { font-size: 1rem; color: var(--ld-accent2); }

/* Responsive: single column on mobile */
@media (max-width: 600px) {
  .localdrop-wrap { padding: 0 1rem 3rem; }
  .deals-grid     { grid-template-columns: 1fr; }
  .city-grid      { gap: 6px; }
  .city-chip      { font-size: 12px; padding: 6px 11px; }
}
