/*
Theme Name: FindATrade
Theme URI: https://findatrade.ie
Author: (Your name)
Description: Modern directory theme for FindATrade
Version: 2.9
Text Domain: findatrade
*/

/* --- VARIABLES & SETUP --- */
:root {
  --primary: #004e92;       /* Deep Trust Blue */
  --primary-dark: #003366;  /* Darker Blue for gradients */
  --accent: #003366;       
  --text-dark: #333333;     /* Main text */
  --text-light: #666666;    /* Muted text */
  --bg-light: #f4f6f8;      /* Light gray background */
  --white: #ffffff;
  --radius: 12px;
  --gap: 20px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  margin: 0;
  line-height: 1.6;
}

/* Global Link Styles */
a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent); }

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

/* --- HEADER --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-logo img {
  max-width: 50px;
  height: auto;
  display: block;
}

/* WP Navigation Menu */
.header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.header nav ul li a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.header nav ul li.current-menu-item a {
  color: var(--primary);
}

/* --- HERO SECTION --- */
.hero-search {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 20px 100px;
  text-align: center;
  color: var(--white);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  margin-bottom: -50px;
}

.hero-search h1 {
  font-size: 3rem;
  margin: 0 0 10px;
  font-weight: 800;
}

.hero-search p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Search Input */
#ft-search-form input[type="search"] {
  width: 100%;
  max-width: 600px;
  padding: 18px 25px;
  border-radius: 50px;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  outline: none;
}

/* City Pills (Tags) */
.city-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.city-pill {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: 0.2s;
}

.city-pill:hover, .city-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- DIRECTORY & CONTENT CARDS --- */
.card, .filter-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

/* Trade Tags */
.trade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trade-tag {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.2s;
}

.trade-tag:hover, .trade-tag.active {
  background: var(--primary);
  color: var(--white);
}

/* --- LISTING ITEMS --- */
#ft-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.listing-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.listing-card.premium {
  border-top: 4px solid var(--accent);
}

.listing-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.listing-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: #f9f9f9;
}

.listing-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0;
}

.listing-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

/* --- PRICING & ENLIST PAGE --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.plan-card {
  background: var(--white);
  border: 2px solid #eee;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.plan-card:hover { border-color: var(--primary); }
.plan-card.selected { 
  border-color: var(--primary); 
  background-color: #f0f7ff; 
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  display: block;
  margin: 10px 0;
}

/* --- GENERIC BUTTONS (Global) --- */
.btn, button, input[type="submit"], input[type="button"], .button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

/* Generic Hover (Orange for Standard Buttons) */
.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover, .button:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  
}

/* --- FORM ELEMENTS --- */
input[type="text"], 
input[type="tel"], 
textarea, 
select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
}

/* --- FOOTER --- */
.footer {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 60px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-search h1 { font-size: 2rem; }
  .header { flex-direction: column; gap: 15px; }
  .header nav ul { gap: 15px; font-size: 0.9rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PAGINATION OVERRIDES (Fixing the Ugly Squares)
   This targets BOTH standard WordPress links AND the AJAX Buttons
   ========================================================================== */

/* --- NIEUWE STEALTH PAGINATIE --- */

/* 1. Container */
#dd-custom-pagination-block.dd-pagination-container {
    margin-top: 50px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    /* Zorg dat de oude layout niet doorlekt */
    float: none !important; 
    clear: both !important;
}

/* 2. De Knoppen (Links & Spans) */
.dd-paging-btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important; /* Rond */
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 3. Hover Effect */
a.dd-paging-btn:hover {
    background-color: #3767e6 !important;
    color: #ffffff !important;
    border-color: #3767e6 !important;
    transform: translateY(-2px);
}

/* 4. Actieve Pagina */
span.dd-paging-btn.active {
    background-color: #3767e6 !important;
    color: #ffffff !important;
    border-color: #3767e6 !important;
    cursor: default !important;
    pointer-events: none;
}

/* 5. De Puntjes (...) */
.dd-paging-dots {
    border: none !important;
    background: transparent !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #94a3b8 !important;
    letter-spacing: 2px !important;
    padding: 0 5px !important;
    cursor: default !important;
}

/* 6. Iconen */
.dd-paging-btn svg {
    width: 18px !important;
    height: 18px !important;
    pointer-events: none;
    display: block;
}

/* 7. VERBERG OUDE PAGINATIE (Voor de zekerheid) */
.page-numbers, .navigation.pagination, .ft-pagination-wrapper {
    display: none !important;
}