/*
Theme Name: RemoteJobs
Theme URI: https://remotejobs.com
Author: RemoteJobs Team
Author URI: https://remotejobs.com
Description: A premium membership platform theme for remote job creators and members. Patreon-style creator support with job board features.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remotejobs
Tags: membership, jobs, creator, subscription, modern
*/

/* =============================================
   REMOTEJOBS THEME - MAIN STYLESHEET
   ============================================= */

:root {
  --rj-primary: #0A66C2;
  --rj-primary-dark: #004182;
  --rj-accent: #F5A623;
  --rj-green: #057642;
  --rj-red: #CC1016;
  --rj-bg: #F3F2EF;
  --rj-white: #FFFFFF;
  --rj-dark: #0D0D0D;
  --rj-text: #191919;
  --rj-muted: #666666;
  --rj-border: #E0DFDC;
  --rj-card: #FFFFFF;
  --rj-radius: 10px;
  --rj-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --rj-shadow-hover: 0 6px 20px rgba(0,0,0,0.14);
  --rj-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rj-font-heading: 'Syne', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--rj-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rj-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--rj-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--rj-text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--rj-text); }

/* ---- CONTAINER ---- */
.rj-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rj-container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.rj-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--rj-font);
}

.rj-btn-primary {
  background: var(--rj-primary);
  color: white;
}
.rj-btn-primary:hover {
  background: var(--rj-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10,102,194,0.35);
}

.rj-btn-accent {
  background: var(--rj-accent);
  color: white;
}
.rj-btn-accent:hover {
  background: #e09510;
  color: white;
  transform: translateY(-1px);
}

.rj-btn-outline {
  background: transparent;
  color: var(--rj-primary);
  border: 2px solid var(--rj-primary);
}
.rj-btn-outline:hover {
  background: var(--rj-primary);
  color: white;
}

.rj-btn-ghost {
  background: transparent;
  color: var(--rj-text);
  border: 1.5px solid var(--rj-border);
}
.rj-btn-ghost:hover {
  border-color: var(--rj-muted);
  color: var(--rj-text);
}

.rj-btn-lg { padding: 14px 32px; font-size: 16px; }
.rj-btn-sm { padding: 7px 16px; font-size: 13px; }

/* ---- CARDS ---- */
.rj-card {
  background: var(--rj-card);
  border-radius: var(--rj-radius);
  border: 1px solid var(--rj-border);
  padding: 24px;
  box-shadow: var(--rj-shadow);
  transition: box-shadow 0.22s, transform 0.22s;
}

.rj-card:hover {
  box-shadow: var(--rj-shadow-hover);
  transform: translateY(-2px);
}

/* ---- BADGES ---- */
.rj-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rj-badge-free { background: #E8F5E9; color: #2E7D32; }
.rj-badge-pro { background: #E3F2FD; color: #0A66C2; }
.rj-badge-vip { background: #F3E5F5; color: #6A1B9A; }
.rj-badge-new { background: #FFF8E1; color: #F57F17; }
.rj-badge-remote { background: #E0F2F1; color: #00695C; }

/* ---- FORMS ---- */
.rj-form-group { margin-bottom: 20px; }

.rj-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--rj-text);
  margin-bottom: 6px;
}

.rj-input, .rj-select, .rj-textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--rj-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--rj-font);
  color: var(--rj-text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.rj-input:focus, .rj-select:focus, .rj-textarea:focus {
  border-color: var(--rj-primary);
  box-shadow: 0 0 0 3px rgba(10,102,194,0.12);
}

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

/* ---- SECTIONS ---- */
.rj-section { padding: 80px 0; }
.rj-section-sm { padding: 48px 0; }

.rj-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.rj-section-title h2 { margin-bottom: 12px; }
.rj-section-title p { color: var(--rj-muted); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ---- GRID ---- */
.rj-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rj-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rj-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---- ALERTS ---- */
.rj-alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rj-alert-success { background: #E8F5E9; color: #1B5E20; border-left: 4px solid #4CAF50; }
.rj-alert-error { background: #FFEBEE; color: #B71C1C; border-left: 4px solid #F44336; }
.rj-alert-info { background: #E3F2FD; color: #0D47A1; border-left: 4px solid #2196F3; }
.rj-alert-warning { background: #FFF8E1; color: #E65100; border-left: 4px solid #FF9800; }

/* ---- DIVIDER ---- */
.rj-divider {
  height: 1px;
  background: var(--rj-border);
  margin: 32px 0;
}

/* ---- SKELETON LOADER ---- */
.rj-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: rj-shimmer 1.5s infinite;
  border-radius: 6px;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .rj-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rj-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rj-grid-3, .rj-grid-2, .rj-grid-4 { grid-template-columns: 1fr; }
  .rj-section { padding: 48px 0; }
  h1 { font-size: 2rem; }
}
