/*
Theme Name: Remote Jobs Theme
Theme URI: https://example.com/remote-jobs-theme
Author: Amani
Author URI: https://example.com
Description: A strong, fast theme for a worldwide remote job board. Works with the Remote Jobs plugin: hero search, filters, job cards, company pages, category pages, and AdSense ad slots (under header, above/below title, middle of content).
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remote-jobs-theme
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 7.4
*/

/* Theme styles — see functions.php for the full stylesheet logic.
   This file only carries the theme header; all CSS is inlined in
   functions.php via wp_add_inline_style to keep the theme to one file,
   plus the plugin's frontend.css when the plugin is active. */

:root {
  --rj-primary: #2563eb;
  --rj-dark: #111827;
  --rj-muted: #6b7280;
  --rj-border: #e5e7eb;
  --rj-bg: #f8fafc;
  --rj-radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif; background: var(--rj-bg); color: var(--rj-dark); line-height: 1.7; }
a { color: var(--rj-primary); }
a:hover { text-decoration: underline; }
.rj-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.rj-site-header { background: #fff; border-bottom: 1px solid var(--rj-border); position: sticky; top: 0; z-index: 50; }
.rj-site-header .rj-container { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.rj-logo { font-size: 22px; font-weight: 800; color: var(--rj-dark); text-decoration: none; }
.rj-logo span { color: var(--rj-primary); }
.rj-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.rj-nav a { color: var(--rj-dark); text-decoration: none; font-weight: 600; }
.rj-nav a:hover { color: var(--rj-primary); }
.rj-hero { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 56px 0 48px; text-align: center; }
.rj-hero h1 { margin: 0 0 10px; font-size: 34px; }
.rj-hero p { margin: 0 0 22px; opacity: .9; }
.rj-hero .rj-search-form { justify-content: center; }
.rj-hero .rj-search-form input, .rj-hero .rj-search-form select { min-width: 180px; }
.rj-section { padding: 32px 0; }
.rj-section h2 { margin: 0 0 16px; font-size: 24px; }
.rj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rj-job-card { background: #fff; border: 1px solid var(--rj-border); border-radius: var(--rj-radius); padding: 20px; }
.rj-job-card h3 { margin: 0 0 8px; font-size: 19px; }
.rj-job-card h3 a { color: var(--rj-dark); text-decoration: none; }
.rj-job-card h3 a:hover { color: var(--rj-primary); }
.rj-meta { color: var(--rj-muted); font-size: 14px; margin: 0 0 10px; }
.rj-salary { font-weight: 700; color: #047857; }
.rj-badge { display: inline-block; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.rj-badge-expired { background: #fee2e2; color: #991b1b; }
.rj-apply-btn { display: inline-block; background: var(--rj-primary); color: #fff; padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.rj-apply-btn:hover { background: #1d4ed8; color: #fff; text-decoration: none; }
.rj-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.rj-cat-grid a { display: block; background: #fff; border: 1px solid var(--rj-border); border-radius: var(--rj-radius); padding: 16px; text-decoration: none; color: var(--rj-dark); font-weight: 700; }
.rj-cat-grid a:hover { border-color: var(--rj-primary); color: var(--rj-primary); }
.rj-company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rj-company-card { background: #fff; border: 1px solid var(--rj-border); border-radius: var(--rj-radius); padding: 20px; text-align: center; }
.rj-company-card img { max-width: 120px; height: auto; border-radius: 8px; }
.rj-job-single { background: #fff; border: 1px solid var(--rj-border); border-radius: var(--rj-radius); padding: 28px; margin: 24px 0; }
.rj-job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; background: var(--rj-bg); border-radius: 10px; padding: 16px; margin: 20px 0; }
.rj-job-facts dt { font-size: 13px; color: var(--rj-muted); }
.rj-job-facts dd { margin: 2px 0 0; font-weight: 700; }
.rj-company-box { display: flex; gap: 16px; align-items: center; background: var(--rj-bg); border-radius: 10px; padding: 16px; margin: 20px 0; }
.rj-company-box img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; }
.rj-ad { margin: 24px 0; text-align: center; }
.rj-site-footer { background: var(--rj-dark); color: #d1d5db; padding: 32px 0; margin-top: 40px; }
.rj-site-footer a { color: #fff; }
.rj-pagination { margin: 24px 0; text-align: center; }
.rj-pagination a, .rj-pagination span { display: inline-block; padding: 8px 14px; border: 1px solid var(--rj-border); background: #fff; border-radius: 8px; margin: 0 3px; text-decoration: none; }
@media (max-width: 640px) {
  .rj-hero h1 { font-size: 26px; }
  .rj-site-header .rj-container { flex-wrap: wrap; }
}
