/*
Theme Name: F&B Career Hub Lightweight
Theme URI: https://example.com/fnb-career-hub
Author: Gemini Assistant
Author URI: https://example.com
Description: Tema WordPress super ringan, responsif, dan elegan khusus portal lowongan kerja F&B. Terintegrasi penuh dengan WP Job Manager.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fnb-career-hub
*/

/* Reset & CSS Variables */
:root {
  --primary: #d97706; /* Warm F&B Amber/Orange */
  --primary-hover: #b45309;
  --secondary: #1e293b; /* Deep Slate */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
}
.site-logo span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-btn {
  background: var(--primary);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-btn:hover {
  background: var(--primary-hover);
}

.hero-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-section p {
  font-size: 1.15rem;
  color: #94a3b8;
  margin: 0 auto 30px;
  max-width: 600px;
}

/* WP Job Manager Styling Overrides */
div.job_listings {
  margin-top: -30px;
}

.job_filters {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.job_filters .search_jobs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.job_filters .search_jobs div {
  flex: 1;
  min-width: 200px;
}

.job_filters label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job_filters input[type="text"],
.job_filters select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.job_filters input[type="text"]:focus,
.job_filters select:focus {
  border-color: var(--primary);
}

ul.job_listings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

ul.job_listings li.job_listing {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin: 0;
}

ul.job_listings li.job_listing:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

ul.job_listings li.job_listing a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: inherit;
  gap: 20px;
}

.job_listing .company img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.job_listing .position {
  flex: 1;
}

.job_listing .position h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: var(--secondary);
  font-weight: 700;
}

.job_listing .company {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.job_listing .location {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-type {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
}

.job-type.part-time { background: #e0f2fe; color: #075985; }
.job-type.freelance { background: #f3e8ff; color: #6b21a8; }
.job-type.internship { background: #dcfce7; color: #166534; }

/* Single Job Details */
.single-job-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}

.single-job-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.single-job-header h1 {
  font-size: 2rem;
  color: var(--secondary);
  margin: 0 0 10px;
}

.job-application-button {
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 20px;
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero-section h1 { font-size: 1.8rem; }
  ul.job_listings li.job_listing a {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .job_filters .search_jobs { flex-direction: column; }
}
