/* JobGara Shared Components */

/* Brand */
.jg-brand {
  font-family: var(--jg-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.jg-brand span {
  color: var(--jg-accent);
}

.jg-brand:hover {
  opacity: 0.92;
  color: inherit;
}

/* Buttons */
.jg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--jg-radius-sm);
  border: 1px solid transparent;
  font-family: var(--jg-font);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all var(--jg-transition);
  text-decoration: none !important;
  white-space: nowrap;
}

.jg-btn-primary {
  background: var(--jg-primary);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(var(--jg-primary-rgb), 0.25);
}

.jg-btn-primary:hover {
  background: var(--jg-primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.jg-btn-accent {
  background: var(--jg-accent);
  color: #111 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 179, 1, 0.35);
}

.jg-btn-accent:hover {
  background: var(--jg-accent-dark);
  color: #fff !important;
}

.jg-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.jg-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.jg-btn-outline-primary {
  background: var(--jg-surface);
  border-color: var(--jg-border);
  color: var(--jg-text) !important;
}

.jg-btn-outline-primary:hover,
.jg-btn-outline-primary.active {
  border-color: var(--jg-primary);
  color: var(--jg-primary) !important;
  background: var(--jg-primary-light);
}

.jg-btn-ghost {
  background: transparent;
  color: var(--jg-text-muted) !important;
}

.jg-btn-ghost:hover {
  background: var(--jg-surface-2);
  color: var(--jg-text) !important;
}

.jg-btn-danger {
  background: var(--jg-danger);
  color: #fff !important;
}

.jg-btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.jg-btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Cards */
.jg-card {
  background: var(--jg-surface);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius);
  box-shadow: var(--jg-shadow);
  overflow: hidden;
}

.jg-card-body {
  padding: 1.25rem 1.35rem;
}

.jg-card-header {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--jg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--jg-surface);
}

.jg-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Stats */
.jg-stat {
  background: var(--jg-surface);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius);
  padding: 1.25rem;
  box-shadow: var(--jg-shadow);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--jg-transition), box-shadow var(--jg-transition);
}

.jg-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--jg-shadow-md);
}

.jg-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--jg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jg-primary-light);
  color: var(--jg-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.jg-stat-icon.success { background: #ecfdf5; color: var(--jg-success); }
.jg-stat-icon.warning { background: #fffbeb; color: var(--jg-warning); }
.jg-stat-icon.danger { background: #fef2f2; color: var(--jg-danger); }
.jg-stat-icon.info { background: #f0f9ff; color: var(--jg-info); }

.jg-stat-label {
  font-size: 0.8rem;
  color: var(--jg-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
}

.jg-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

/* Page header */
.jg-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.jg-page-header h1,
.jg-page-header .jg-page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.jg-page-header p {
  margin: 0.35rem 0 0;
  color: var(--jg-text-muted);
  font-size: 0.95rem;
}

/* Forms */
.jg-form .form-label,
.jg-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--jg-text);
  margin-bottom: 0.4rem;
}

.jg-form .form-control,
.jg-form .form-select,
.jg-input,
.form-control.jg-input {
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius-sm);
  padding: 0.65rem 0.9rem;
  font-family: var(--jg-font);
  font-size: 0.95rem;
  background: var(--jg-surface);
  transition: border-color var(--jg-transition), box-shadow var(--jg-transition);
}

.jg-form .form-control:focus,
.jg-form .form-select:focus,
.jg-input:focus,
.form-control.jg-input:focus {
  border-color: var(--jg-primary);
  box-shadow: 0 0 0 3px rgba(var(--jg-primary-rgb), 0.15);
  outline: none;
}

/* Tables */
.jg-table-wrap {
  background: var(--jg-surface);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius);
  overflow: hidden;
  box-shadow: var(--jg-shadow);
}

.jg-table-wrap .table {
  margin: 0;
}

.jg-table-wrap .table thead th {
  background: var(--jg-surface-2);
  border-bottom: 1px solid var(--jg-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jg-text-muted);
  font-weight: 700;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.jg-table-wrap .table td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  border-color: var(--jg-border);
  font-size: 0.925rem;
}

/* Badges */
.jg-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--jg-radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.jg-badge-primary { background: var(--jg-primary-light); color: var(--jg-primary); }
.jg-badge-success { background: #ecfdf5; color: var(--jg-success); }
.jg-badge-warning { background: #fffbeb; color: var(--jg-warning); }
.jg-badge-danger { background: #fef2f2; color: var(--jg-danger); }
.jg-badge-muted { background: #f1f5f9; color: var(--jg-text-muted); }

/* Empty state */
.jg-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--jg-text-muted);
}

.jg-empty i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.45;
}

/* Auth card */
.jg-auth-wrap {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.jg-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--jg-surface);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius-lg);
  box-shadow: var(--jg-shadow-md);
  padding: 2rem;
}

.jg-auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.jg-auth-card .jg-auth-sub {
  color: var(--jg-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Job card (listings) */
.jg-job-card {
  background: var(--jg-surface);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius);
  padding: 1.25rem;
  box-shadow: var(--jg-shadow);
  transition: border-color var(--jg-transition), box-shadow var(--jg-transition), transform var(--jg-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.jg-job-card:hover {
  border-color: rgba(var(--jg-primary-rgb), 0.35);
  box-shadow: var(--jg-shadow-md);
  transform: translateY(-2px);
}

.jg-job-card h3,
.jg-job-card .jg-job-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.jg-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--jg-text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

/* Section */
.jg-section {
  padding: 3rem 0;
}

.jg-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.jg-section-sub {
  color: var(--jg-text-muted);
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

/* Bootstrap overrides for consistency */
.btn-primary {
  background-color: var(--jg-primary) !important;
  border-color: var(--jg-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--jg-primary-dark) !important;
  border-color: var(--jg-primary-dark) !important;
}

.card {
  border-color: var(--jg-border);
  border-radius: var(--jg-radius);
  box-shadow: var(--jg-shadow);
}

.card-header {
  background: var(--jg-surface);
  border-bottom-color: var(--jg-border);
}
