/* =============================================
   REMOTEJOBS - MAIN CSS (assets/css/main.css)
   ============================================= */

/* ---- HEADER ---- */
.rj-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--rj-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.rj-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }

.rj-header-spacer { height: 64px; }

.rj-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.rj-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.rj-logo-icon svg { width: 32px; height: 32px; }

.rj-logo-text {
  font-family: var(--rj-font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--rj-text);
  letter-spacing: -0.3px;
}

.rj-header-search { flex: 1; max-width: 480px; }

.rj-search-wrap {
  display: flex;
  align-items: center;
  background: var(--rj-bg);
  border: 1.5px solid var(--rj-border);
  border-radius: 50px;
  overflow: hidden;
  padding: 0 6px 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rj-search-wrap:focus-within {
  border-color: var(--rj-primary);
  box-shadow: 0 0 0 3px rgba(10,102,194,0.1);
}

.rj-search-icon { color: var(--rj-muted); font-size: 14px; margin-right: 6px; }

.rj-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--rj-text);
  outline: none;
  padding: 8px 0;
  font-family: var(--rj-font);
}

.rj-search-btn {
  padding: 6px 14px;
  background: var(--rj-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.rj-search-btn:hover { background: var(--rj-primary-dark); }

.rj-nav { display: flex; align-items: center; gap: 4px; }

.rj-nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rj-text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.rj-nav-link:hover { background: var(--rj-bg); color: var(--rj-primary); }
.rj-nav-link-highlight { color: var(--rj-accent); font-weight: 700; }

.rj-header-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* User menu */
.rj-user-menu { position: relative; }

.rj-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--rj-border);
  border-radius: 50px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: var(--rj-font);
}

.rj-user-trigger:hover { border-color: var(--rj-primary); }

.rj-user-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.rj-user-name { font-size: 13px; font-weight: 600; color: var(--rj-text); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rj-chevron { font-size: 11px; color: var(--rj-muted); transition: transform 0.2s; }
.rj-user-menu.open .rj-chevron { transform: rotate(180deg); }

.rj-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--rj-border);
  border-radius: 12px;
  box-shadow: var(--rj-shadow-hover);
  padding: 8px;
  display: none;
  z-index: 200;
}

.rj-user-menu.open .rj-user-dropdown { display: block; }

.rj-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--rj-text);
  text-decoration: none;
  transition: background 0.15s;
}

.rj-user-dropdown a:hover { background: var(--rj-bg); }
.rj-dropdown-divider { height: 1px; background: var(--rj-border); margin: 6px 0; }
.rj-dropdown-logout { color: var(--rj-red) !important; }

/* Hamburger */
.rj-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.rj-hamburger span {
  width: 22px; height: 2px;
  background: var(--rj-text);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

.rj-mobile-nav {
  display: none;
  padding: 16px 0;
  border-top: 1px solid var(--rj-border);
  background: white;
}

.rj-mobile-nav.open { display: block; }

.rj-mobile-nav-link {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--rj-text);
  text-decoration: none;
  border-bottom: 1px solid var(--rj-border);
}

/* ---- HERO ---- */
.rj-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0A1628 0%, #0A2540 50%, #0A3355 100%);
  position: relative;
  overflow: hidden;
}

.rj-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(10,102,194,0.3) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(245,166,35,0.2) 0%, transparent 40%);
  pointer-events: none;
}

.rj-hero-content { max-width: 620px; position: relative; z-index: 1; }

.rj-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--rj-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.rj-hero-title {
  font-family: var(--rj-font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
}

.rj-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}

.rj-hero-search-big {
  background: white;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.rj-hero-search-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.rj-hero-search-field {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--rj-border);
  border-radius: 8px;
  padding: 0 12px;
}

.rj-hero-search-field .rj-input,
.rj-hero-search-field .rj-select {
  border: none;
  padding: 10px 0;
  box-shadow: none;
}

.rj-hero-quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--rj-muted);
}

.rj-quick-tag {
  padding: 4px 10px;
  background: var(--rj-bg);
  border: 1px solid var(--rj-border);
  border-radius: 50px;
  font-size: 12px;
  color: var(--rj-text);
  text-decoration: none;
  transition: all 0.2s;
}

.rj-quick-tag:hover { background: var(--rj-primary); color: white; border-color: var(--rj-primary); }

.rj-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- STATS BAR ---- */
.rj-stats-bar { background: white; border-bottom: 1px solid var(--rj-border); padding: 20px 0; }

.rj-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.rj-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 40px;
}

.rj-stat-item strong { font-size: 24px; font-weight: 800; color: var(--rj-primary); font-family: var(--rj-font-heading); }
.rj-stat-item span { font-size: 13px; color: var(--rj-muted); margin-top: 2px; }
.rj-stat-divider { width: 1px; height: 40px; background: var(--rj-border); }

/* ---- JOB CARDS ---- */
.rj-jobs-list { display: flex; flex-direction: column; gap: 12px; }

.rj-job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
}

.rj-jc-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; }

.rj-company-logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--rj-bg);
  border: 1px solid var(--rj-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.rj-jc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--rj-text);
  margin-bottom: 4px;
}

.rj-jc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--rj-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.rj-jc-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.rj-jc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.rj-jc-date { font-size: 12px; color: var(--rj-muted); }

/* ---- PAYWALL ---- */
.rj-paywall-gate {
  text-align: center;
  padding: 60px 40px;
  background: white;
  border: 2px dashed var(--rj-border);
  border-radius: var(--rj-radius);
}

.rj-paywall-icon { font-size: 48px; margin-bottom: 16px; }
.rj-paywall-gate h3 { margin-bottom: 10px; }
.rj-paywall-gate p { color: var(--rj-muted); margin-bottom: 24px; }
.rj-paywall-gate .rj-btn { margin: 6px; }

/* ---- MEMBERSHIP TIERS ---- */
.rj-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.rj-tier-card { position: relative; overflow: hidden; }

.rj-tier-card.rj-tier-featured {
  border-color: var(--rj-primary);
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(10,102,194,0.18);
}

.rj-tier-popular {
  position: absolute;
  top: 0; right: 0;
  background: var(--rj-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-bottom-left-radius: 10px;
}

.rj-tier-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.rj-tier-name { font-family: var(--rj-font-heading); font-size: 20px; font-weight: 700; margin-bottom: 4px; }

.rj-tier-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--rj-text);
  margin-bottom: 20px;
  font-family: var(--rj-font-heading);
}

.rj-tier-price span { font-size: 14px; font-weight: 400; color: var(--rj-muted); }

.rj-tier-features { margin-bottom: 24px; }

.rj-tier-features li {
  font-size: 14px;
  color: var(--rj-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--rj-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rj-tier-features li:last-child { border-bottom: none; }

/* ---- CREATOR CARDS ---- */
.rj-creator-card { text-align: center; }
.rj-creator-avatar { font-size: 48px; margin-bottom: 12px; }
.rj-creator-card h3 { font-size: 17px; margin-bottom: 4px; }
.rj-creator-card p { color: var(--rj-muted); font-size: 13px; margin-bottom: 8px; }
.rj-creator-stats { font-size: 13px; color: var(--rj-muted); }

/* ---- CTA BANNER ---- */
.rj-cta-banner {
  background: linear-gradient(135deg, var(--rj-primary-dark), var(--rj-primary));
  padding: 80px 0;
  text-align: center;
}

.rj-cta-banner h2 { color: white; margin-bottom: 12px; }
.rj-cta-banner p { color: rgba(255,255,255,0.8); font-size: 16px; }

/* ---- FOOTER ---- */
.rj-footer { background: #0D1117; color: #ccc; padding: 60px 0 0; }

.rj-footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.rj-footer .rj-logo-text { color: white; }
.rj-footer-tagline { font-size: 13.5px; color: #888; line-height: 1.6; margin-top: 12px; }

.rj-footer-socials { display: flex; gap: 10px; margin-top: 20px; }

.rj-social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
  transition: background 0.2s;
}

.rj-social-btn:hover { background: var(--rj-primary); color: white; }

.rj-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.rj-footer-col h4 { color: white; font-size: 14px; margin-bottom: 16px; }

.rj-footer-col ul li { margin-bottom: 10px; }

.rj-footer-col a {
  color: #888;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.rj-footer-col a:hover { color: white; }

.rj-footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.rj-newsletter-text { display: flex; flex-direction: column; gap: 4px; }
.rj-newsletter-text strong { color: white; font-size: 15px; }
.rj-newsletter-text span { color: #888; font-size: 13px; }

.rj-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.rj-newsletter-form .rj-input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: white; }
.rj-newsletter-form .rj-input::placeholder { color: #666; }

.rj-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 12px;
}

.rj-footer-bottom a { color: #888; text-decoration: none; }
.rj-footer-bottom a:hover { color: white; }

.rj-footer-payment-icons { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #666; }

/* ---- DASHBOARD ---- */
.rj-dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 32px 0 60px;
}

.rj-dashboard-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.rj-sidebar-nav { background: white; border-radius: var(--rj-radius); border: 1px solid var(--rj-border); overflow: hidden; }

.rj-sidebar-user {
  padding: 20px;
  border-bottom: 1px solid var(--rj-border);
  text-align: center;
}

.rj-sidebar-avatar { font-size: 40px; margin-bottom: 10px; }
.rj-sidebar-name { font-weight: 700; font-size: 15px; }
.rj-sidebar-tier { margin-top: 6px; }

.rj-sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--rj-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.rj-sidebar-menu a:hover { background: var(--rj-bg); color: var(--rj-primary); }
.rj-sidebar-menu a.active { background: #EEF4FF; color: var(--rj-primary); border-left-color: var(--rj-primary); font-weight: 600; }

/* ---- MINI JOB CARDS (Hero float) ---- */
.rj-mini-job-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: var(--rj-shadow-hover);
  min-width: 280px;
}

.rj-mjc-logo { font-size: 22px; }

.rj-mini-job-card strong { display: block; font-size: 13px; font-weight: 600; color: var(--rj-text); }
.rj-mini-job-card span { display: block; font-size: 11px; color: var(--rj-muted); }

.rj-members-pill {
  background: white;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 13px;
  box-shadow: var(--rj-shadow-hover);
  color: var(--rj-text);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .rj-tiers-grid { grid-template-columns: 1fr; }
  .rj-tier-card.rj-tier-featured { transform: none; }
  .rj-footer-top { grid-template-columns: 1fr; }
  .rj-footer-links { grid-template-columns: repeat(2, 1fr); }
  .rj-dashboard-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .rj-header-search { display: none; }
  .rj-nav { display: none; }
  .rj-hamburger { display: flex; }
  .rj-hero { padding: 48px 0 40px; }
  .rj-hero-search-inner { flex-direction: column; }
  .rj-hero-search-field { width: 100%; }
  .rj-stats-grid { gap: 0; }
  .rj-stat-item { padding: 8px 20px; }
  .rj-stat-divider { display: none; }
  .rj-footer-links { grid-template-columns: 1fr; }
  .rj-job-card { flex-direction: column; align-items: flex-start; }
  .rj-jc-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
