/*
Theme Name: VapeChest Directory
Theme URI: https://vapechest.com
Author: VapeChest.com
Author URI: https://vapechest.com
Description: All-in-one SEO-first WordPress directory theme for VapeChest.com with built-in Stores, Products, and Brands post types, domain verification, CSV import/export, and automatic import of 65 verified real-world stores, 7 brands, and 8 product showcases on activation.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vapechest-theme
*/

:root {
  --vc-bg: #fafafa;
  --vc-surface: #ffffff;
  --vc-charcoal: #09090b;
  --vc-charcoal-soft: #18181b;
  --vc-ink: #18181b;
  --vc-muted: #52525b;
  --vc-border: #e4e4e7;
  --vc-orange: #ea580c;
  --vc-orange-hover: #c2410c;
  --vc-green: #15803d;
  --vc-green-bg: #f0fdf4;
  --vc-font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --vc-font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --vc-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  font-family: var(--vc-font-sans);
  background-color: var(--vc-bg);
  color: var(--vc-ink);
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.vc-main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, .vc-display {
  font-family: var(--vc-font-display);
  margin: 0;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.vc-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Compliance Top Strip */
.vc-notice-bar {
  background: var(--vc-charcoal-soft);
  color: #d4d4d8;
  font-size: 0.75rem;
  border-bottom: 1px solid #27272a;
}

.vc-notice-bar .vc-container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Header */
.vc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--vc-border);
}

.vc-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.vc-brand {
  font-family: var(--vc-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vc-charcoal);
  white-space: nowrap;
}

.vc-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--vc-muted);
}

.vc-nav a:hover,
.vc-nav .current-menu-item > a {
  color: var(--vc-charcoal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--vc-orange);
}

.vc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--vc-orange);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.vc-btn-primary:hover {
  background: var(--vc-orange-hover);
}

.vc-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--vc-charcoal-soft);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
}

.vc-btn-dark:hover {
  background: var(--vc-orange);
}

.vc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--vc-ink);
  background: #f4f4f5;
  border: 1px solid var(--vc-border);
  border-radius: 0.5rem;
  cursor: pointer;
}

.vc-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--vc-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Sections & Grids */
.vc-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--vc-border);
}

.vc-section-white {
  background: var(--vc-surface);
}

.vc-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.vc-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vc-orange);
  margin: 0 0 0.375rem;
}

.vc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.vc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.vc-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.875rem;
}

.vc-card {
  background: var(--vc-surface);
  border: 1px solid var(--vc-border);
  border-radius: 0.875rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.vc-card-media {
  padding: 0;
  overflow: hidden;
}

.vc-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f4f4f5;
}

.vc-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.vc-meta {
  font-size: 0.75rem;
  color: var(--vc-muted);
}

.vc-domain {
  font-family: var(--vc-font-mono);
  font-size: 0.75rem;
  color: var(--vc-muted);
}

.vc-verified {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vc-green);
}

.vc-unverified {
  font-size: 0.75rem;
  color: #71717a;
}

/* Search & Filters */
.vc-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.vc-input,
.vc-select,
.vc-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid var(--vc-border);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--vc-ink);
}

.vc-filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
  padding: 1.25rem 0;
}

/* Breadcrumbs */
.vc-breadcrumbs {
  font-size: 0.75rem;
  color: var(--vc-muted);
  margin-bottom: 1.25rem;
}

.vc-breadcrumbs a:hover {
  color: var(--vc-charcoal);
}

/* CTA Banner */
.vc-cta-box {
  background: var(--vc-charcoal-soft);
  color: #ffffff;
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Footer */
.vc-footer {
  background: var(--vc-charcoal);
  color: #a1a1aa;
  padding: 3rem 0 2rem;
  font-size: 0.8125rem;
}

.vc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #27272a;
}

.vc-footer h4 {
  color: #ffffff;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.vc-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.vc-footer a:hover {
  color: #ffffff;
}

.vc-footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: #71717a;
}

/* Outbound Confirmation Modal */
.vc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 9, 11, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vc-modal-backdrop.is-open {
  display: flex;
}

.vc-modal {
  background: #ffffff;
  border: 1px solid var(--vc-border);
  border-radius: 0.875rem;
  max-width: 440px;
  width: 100%;
  padding: 1.5rem;
}

@media (max-width: 960px) {
  .vc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vc-grid-4,
  .vc-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vc-filter-row {
    grid-template-columns: 1fr;
  }
  .vc-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .vc-nav {
    display: none;
  }
  .vc-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #ffffff;
    border-bottom: 1px solid var(--vc-border);
    padding: 1rem 1.25rem;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .vc-mobile-toggle {
    display: inline-flex;
  }
  .vc-grid-3,
  .vc-grid-4,
  .vc-grid-5,
  .vc-footer-grid {
    grid-template-columns: 1fr;
  }
  .vc-search-bar {
    flex-direction: column;
  }
}
