/*
Theme Name: WorkBank
Theme URI: https://workbank.online
Author: BonusGroup
Author URI: https://bonusgroup.nl
Description: Premium dark job board theme for WorkBank.online — remote EU tech jobs platform. Elementor compatible.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: workbank
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --wb-bg: #0a0a0f;
  --wb-bg-card: rgba(255,255,255,0.03);
  --wb-bg-card-hover: rgba(255,255,255,0.06);
  --wb-border: rgba(255,255,255,0.06);
  --wb-border-hover: rgba(0, 212, 170, 0.2);
  --wb-text: #e8e6e1;
  --wb-text-muted: rgba(255,255,255,0.5);
  --wb-text-faint: rgba(255,255,255,0.3);
  --wb-accent: #00d4aa;
  --wb-accent-blue: #00b4d8;
  --wb-accent-purple: #7b68ee;
  --wb-gradient: linear-gradient(135deg, #00d4aa, #00b4d8);
  --wb-gradient-purple: linear-gradient(135deg, #00d4aa, #00b4d8, #7b68ee);
  --wb-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --wb-font-mono: 'Space Mono', 'Courier New', monospace;
  --wb-radius: 12px;
  --wb-radius-sm: 8px;
  --wb-radius-lg: 16px;
  --wb-container: 1120px;
  --wb-featured-bg: linear-gradient(135deg, #00d4aa, #00b4d8);
  --wb-tag-new-bg: rgba(123, 104, 238, 0.2);
  --wb-tag-new-color: #7b68ee;
}

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

body {
  font-family: var(--wb-font);
  background: var(--wb-bg);
  color: var(--wb-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wb-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--wb-accent-blue); }

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

/* ============================================
   LAYOUT
   ============================================ */
.wb-container {
  max-width: var(--wb-container);
  margin: 0 auto;
  padding: 0 24px;
}

.wb-section { padding: 80px 0; }
.wb-section-sm { padding: 40px 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -2px; }
h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -1px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

.wb-gradient-text {
  background: var(--wb-gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wb-mono { font-family: var(--wb-font-mono); }

/* ============================================
   HEADER
   ============================================ */
.wb-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--wb-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
}
.wb-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--wb-text);
  letter-spacing: -0.5px;
}
.wb-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--wb-gradient);
  border-radius: var(--wb-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--wb-bg);
  font-size: 18px;
  font-family: var(--wb-font-mono);
}
.wb-nav { display: flex; align-items: center; gap: 28px; }
.wb-nav a { font-size: 14px; color: var(--wb-text-muted); }
.wb-nav a:hover { color: var(--wb-text); }
.wb-nav-user { display: flex; align-items: center; gap: 12px; }

/* ============================================
   BUTTONS
   ============================================ */
.wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--wb-font);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--wb-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1;
}
.wb-btn-primary {
  background: var(--wb-gradient);
  color: var(--wb-bg);
  font-weight: 700;
}
.wb-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.3);
  color: var(--wb-bg);
}
.wb-btn-outline {
  background: transparent;
  color: var(--wb-accent);
  border: 1px solid rgba(0, 212, 170, 0.3);
}
.wb-btn-outline:hover {
  background: rgba(0, 212, 170, 0.1);
  border-color: var(--wb-accent);
  color: var(--wb-accent);
}
.wb-btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--wb-radius-sm); }
.wb-btn-lg { padding: 16px 32px; font-size: 16px; }
.wb-btn-danger { background: #e74c3c; color: #fff; }
.wb-btn-danger:hover { background: #c0392b; color: #fff; }

/* ============================================
   CARDS
   ============================================ */
.wb-card {
  background: var(--wb-bg-card);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wb-card:hover {
  background: var(--wb-bg-card-hover);
  border-color: var(--wb-border-hover);
}
.wb-card-padded { padding: 24px; }

/* ============================================
   FORMS
   ============================================ */
.wb-input,
.wb-select,
.wb-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--wb-radius);
  color: var(--wb-text);
  font-family: var(--wb-font);
  font-size: 15px;
  padding: 14px 18px;
  width: 100%;
  outline: none;
  transition: border-color 0.3s;
}
.wb-input:focus,
.wb-select:focus,
.wb-textarea:focus {
  border-color: rgba(0, 212, 170, 0.4);
}
.wb-input::placeholder,
.wb-textarea::placeholder {
  color: var(--wb-text-faint);
}
.wb-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-color: rgba(255,255,255,0.05) !important;
  color: #e8e6e1 !important;
  color-scheme: dark;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--wb-radius);
  font-family: var(--wb-font);
  font-size: 14px;
  padding: 12px 40px 12px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2300d4aa'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.wb-select:focus {
  border-color: rgba(0, 212, 170, 0.4);
  outline: none;
}
.wb-select option {
  background: #1a1a2e !important;
  color: #e8e6e1 !important;
  padding: 10px;
}
/* Global select overrides for dark theme */
select,
.wb-container select,
form select {
  background-color: rgba(255,255,255,0.05) !important;
  color: #e8e6e1 !important;
  color-scheme: dark;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 40px 12px 16px;
  font-size: 14px;
  font-family: var(--wb-font);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2300d4aa'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  outline: none;
}
select option,
form select option {
  background: #1a1a2e !important;
  color: #e8e6e1 !important;
}
.wb-textarea { resize: vertical; min-height: 120px; }
.wb-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wb-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wb-form-group { margin-bottom: 20px; }
.wb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================
   JOB CARDS
   ============================================ */
.wb-job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  gap: 20px;
}
.wb-job-card-left { display: flex; align-items: center; gap: 16px; flex: 1; }
.wb-job-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--wb-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--wb-font-mono);
  flex-shrink: 0;
}
.wb-job-title { font-size: 16px; font-weight: 600; color: var(--wb-text); }
.wb-job-meta { font-size: 13px; color: var(--wb-text-muted); margin-top: 4px; }
.wb-job-salary {
  font-family: var(--wb-font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--wb-accent);
  text-align: right;
  white-space: nowrap;
}

/* Tags */
.wb-tag {
  display: inline-block;
  font-family: var(--wb-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
}
.wb-tag-featured { background: var(--wb-featured-bg); color: var(--wb-bg); }
.wb-tag-new { background: var(--wb-tag-new-bg); color: var(--wb-tag-new-color); }
.wb-tag-remote { background: rgba(0, 212, 170, 0.15); color: var(--wb-accent); }
.wb-tag-hybrid { background: rgba(0, 180, 216, 0.15); color: var(--wb-accent-blue); }
.wb-tag-applied { background: rgba(123, 104, 238, 0.15); color: var(--wb-accent-purple); }

/* ============================================
   SEARCH BAR
   ============================================ */
.wb-search-bar {
  display: flex;
  gap: 12px;
  background: var(--wb-bg-card);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-lg);
  padding: 8px;
}
.wb-search-bar .wb-input {
  border: none;
  background: transparent;
}
.wb-search-bar .wb-input + .wb-input {
  border-left: 1px solid var(--wb-border);
  border-radius: 0;
  padding-left: 16px;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.wb-dashboard { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: 100vh; }
.wb-sidebar {
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--wb-border);
  padding: 24px 0;
}
.wb-sidebar-nav { list-style: none; }
.wb-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--wb-text-muted);
  transition: all 0.2s;
}
.wb-sidebar-nav li a:hover,
.wb-sidebar-nav li.active a {
  color: var(--wb-text);
  background: rgba(0, 212, 170, 0.05);
  border-right: 2px solid var(--wb-accent);
}
.wb-sidebar-nav li a .wb-nav-icon { font-size: 18px; width: 24px; text-align: center; }
.wb-sidebar-nav li a .wb-nav-badge {
  margin-left: auto;
  background: var(--wb-accent);
  color: var(--wb-bg);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.wb-main { padding: 32px 40px; }
.wb-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

/* ============================================
   STATS GRID
   ============================================ */
.wb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.wb-stat-card {
  padding: 24px;
  text-align: center;
}
.wb-stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}
.wb-stat-label { font-size: 13px; color: var(--wb-text-muted); margin-top: 4px; }

/* ============================================
   TABLES
   ============================================ */
.wb-table { width: 100%; border-collapse: collapse; }
.wb-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--wb-text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--wb-border);
}
.wb-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 14px;
}
.wb-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================
   TABS
   ============================================ */
.wb-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--wb-border); margin-bottom: 24px; }
.wb-tab {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--wb-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--wb-font);
}
.wb-tab:hover { color: var(--wb-text); }
.wb-tab.active { color: var(--wb-accent); border-bottom-color: var(--wb-accent); }

/* ============================================
   PAGINATION
   ============================================ */
.wb-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.wb-page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wb-bg-card);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-sm);
  color: var(--wb-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.wb-page-btn:hover, .wb-page-btn.active {
  background: var(--wb-accent);
  color: var(--wb-bg);
  border-color: var(--wb-accent);
}

/* ============================================
   ALERTS & NOTICES
   ============================================ */
.wb-alert {
  padding: 16px 20px;
  border-radius: var(--wb-radius);
  font-size: 14px;
  margin-bottom: 20px;
}
.wb-alert-success { background: rgba(0, 212, 170, 0.1); border: 1px solid rgba(0, 212, 170, 0.2); color: var(--wb-accent); }
.wb-alert-error { background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.2); color: #e74c3c; }
.wb-alert-info { background: rgba(0, 180, 216, 0.1); border: 1px solid rgba(0, 180, 216, 0.2); color: var(--wb-accent-blue); }

/* ============================================
   COUNTRY TAGS
   ============================================ */
.wb-country-tag {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  cursor: pointer;
}
.wb-country-tag:hover {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.3);
  color: var(--wb-accent);
}

/* ============================================
   FULL WIDTH TEMPLATE
   ============================================ */
.wb-full-width {
  width: 100%;
  overflow: hidden;
}

/* ============================================
   FOOTER
   ============================================ */
.wb-footer {
  border-top: 1px solid var(--wb-border);
  padding: 40px 0;
  margin-top: 80px;
}
.wb-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wb-footer-copy { font-size: 13px; color: var(--wb-text-faint); font-family: var(--wb-font-mono); }

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */
.elementor-page .wb-header { position: relative; }
.elementor-section { padding: 0; }
.elementor-widget-container .wb-card { margin-bottom: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .wb-dashboard { grid-template-columns: 1fr; }
  .wb-sidebar { display: none; }
  .wb-main { padding: 20px 16px; }
  .wb-form-row { grid-template-columns: 1fr; }
  .wb-search-bar { flex-direction: column; }
  .wb-search-bar .wb-input + .wb-input { border-left: none; border-top: 1px solid var(--wb-border); border-radius: var(--wb-radius); padding-left: 18px; }
  .wb-job-card { flex-direction: column; align-items: flex-start; }
  .wb-job-salary { text-align: left; }
  .wb-nav { display: none; }
  .wb-header-inner { flex-wrap: wrap; }
  .wb-stats { grid-template-columns: 1fr 1fr; }
}
