/*
Theme Name: BuildWithDanial Jobs
Theme URI: https://buildwithdanial.store
Author: Danial
Author URI: https://buildwithdanial.store
Description: Custom Job Board theme with infographic split-layout.
Version: 1.0.1
License: MIT
Text Domain: bwd-jobs
*/

/* Global Reset & Typography */
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; background-color: #f0f4f8; color: #334155; margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }

/* Variables */
:root {
    --hosp-primary: #1b5e5a;
    --hosp-secondary: #25827d;
    --hosp-bg: #e2f0ef;
    --hosp-text: #0f3a38;
    
    --tech-primary: #2b559b;
    --tech-secondary: #3b71cc;
    --tech-bg: #e6efff;
    --tech-text: #17325c;
    
    --border: #e2e8f0;
}

/* Header Override for Split Design */
.site-header { background: #fff; padding: 0; border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 60px; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.site-brand a { text-decoration: none !important; display: flex; align-items: center; gap: 8px; }
.brand-text-logo { font-size: 20px; font-weight: 900; color: #0f172a; letter-spacing: -0.5px; text-transform: uppercase; }
.main-navigation ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { font-weight: 600; color: #64748b; font-size: 14px; text-decoration: none !important; transition: color 0.2s; }
.main-navigation a:hover { color: var(--tech-primary); }

/* Split Layout Architecture */
.split-layout-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 24px; position: relative; }
.split-layout-container { display: flex; gap: 40px; position: relative; margin-bottom: 40px; }
.split-col { flex: 1; min-width: 0; }

/* Center Divider Line */
.split-divider { position: absolute; left: 50%; top: 60px; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent); transform: translateX(-50%); display: flex; justify-content: center; align-items: center; }
.divider-diamond { width: 12px; height: 12px; background: #94a3b8; transform: rotate(45deg); border: 2px solid #f0f4f8; }

/* Column Headers */
.split-header { padding: 32px 24px; border-radius: 16px 16px 0 0; text-align: center; color: #fff; margin-bottom: 24px; position: relative; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.split-header h2 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: 1px; position: relative; z-index: 2; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* Graphic Mimicry */
.split-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.2; z-index: 1; }
.hospitality-header { background: linear-gradient(135deg, var(--hosp-primary) 0%, var(--hosp-secondary) 100%); }
.hospitality-header::before { background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px); }
.tech-header { background: linear-gradient(135deg, var(--tech-primary) 0%, var(--tech-secondary) 100%); }
.tech-header::before { background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.4) 0%, transparent 40%); }

/* Infographic Job Cards */
.split-jobs { display: flex; flex-direction: column; gap: 20px; }
.info-job-card { background: #fff; border-radius: 12px; padding: 20px; display: flex; gap: 20px; border: 2px solid transparent; box-shadow: 0 4px 12px rgba(15,23,42,0.04); transition: all 0.2s; position: relative; text-decoration: none !important; color: inherit; }
.hospitality-col .info-job-card { border-color: rgba(27,94,90,0.1); }
.hospitality-col .info-job-card:hover { border-color: var(--hosp-primary); transform: translateX(-4px); }
.tech-col .info-job-card { border-color: rgba(43,85,155,0.1); }
.tech-col .info-job-card:hover { border-color: var(--tech-primary); transform: translateX(4px); }

/* Card Icon Left */
.info-job-icon { width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.green-icon { background: var(--hosp-bg); color: var(--hosp-primary); }
.blue-icon { background: var(--tech-bg); color: var(--tech-primary); }

/* Card Content Right */
.info-job-content { flex: 1; }
.info-title { font-size: 18px; font-weight: 900; margin: 0 0 4px 0; letter-spacing: -0.3px; color: #1e293b; text-transform: uppercase; }
.info-subtitle { font-size: 13px; font-weight: 800; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.hospitality-col .info-subtitle { color: var(--hosp-primary); }
.tech-col .info-subtitle { color: var(--tech-primary); }

/* Card Requirements List */
.info-reqs { margin: 0 0 12px 0; padding-left: 16px; font-size: 13px; color: #475569; }
.info-reqs li { margin-bottom: 4px; }
.info-reqs strong { font-weight: 700; color: #1e293b; }

/* Card Apply Link */
.info-apply-link { display: inline-block; font-size: 13px; font-weight: 800; color: #1e293b; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
.info-apply-link::before { content: '•'; color: currentColor; }
.hospitality-col .info-apply-link:hover { color: var(--hosp-primary); }
.tech-col .info-apply-link:hover { color: var(--tech-primary); }
.no-jobs { text-align: center; color: #64748b; font-weight: 500; font-style: italic; }

/* Bottom Banners Area */
.bottom-banners-wrapper { display: flex; gap: 40px; margin-top: 40px; align-items: stretch; }

/* Why Join Us Banner */
.banner-why-join { flex: 1; background: #fff; border-radius: 16px; padding: 24px; border: 2px solid #e2e8f0; text-align: center; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 8px 24px rgba(15,23,42,0.03); }
.banner-why-join h4 { margin: 0 0 20px 0; font-size: 18px; font-weight: 900; color: #1e293b; letter-spacing: 1px; }
.banner-icons { display: flex; justify-content: space-around; }
.banner-icon-item { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; color: #475569; }
.banner-icon-item i { font-size: 24px; color: var(--hosp-primary); background: var(--hosp-bg); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Apply Now / QR Banner */
.banner-apply-now { flex: 1; background: linear-gradient(135deg, #475569 0%, #1e293b 100%); border-radius: 16px; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; color: #fff; box-shadow: 0 8px 24px rgba(15,23,42,0.1); }
.apply-now-text h4 { margin: 0 0 8px 0; font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.apply-now-text a { color: #cbd5e1; text-decoration: none; font-size: 14px; font-weight: 500; display: block; margin-bottom: 4px; transition: color 0.2s; }
.apply-now-text a:hover { color: #fff; }

.apply-now-qr { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.1); padding: 12px 16px; border-radius: 12px; }
.qr-placeholder { font-size: 48px; color: #fff; background: #fff; color: #1e293b; padding: 4px; border-radius: 4px; }
.qr-text { font-size: 11px; line-height: 1.4; color: #e2e8f0; }
.qr-text strong { font-size: 12px; color: #fff; letter-spacing: 0.5px; }

/* Footer Slogan */
.footer-slogan { text-align: center; margin-top: 24px; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #64748b; text-transform: uppercase; }

/* Responsive Mobile Stacking */
@media (max-width: 900px) {
    .split-layout-container { flex-direction: column; gap: 32px; }
    .split-divider { display: none; }
    .bottom-banners-wrapper { flex-direction: column; gap: 24px; }
    .info-job-card { padding: 16px; }
    .banner-apply-now { flex-direction: column; text-align: center; gap: 24px; }
}

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: #1e293b; }
@media (max-width: 768px) {
    .main-navigation { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* =========================================================
   UI ENHANCEMENTS: Glass Header & Footer
========================================================= */
.glass-header { 
    background: rgba(255, 255, 255, 0.8) !important; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.btn-post-job { 
    background: linear-gradient(135deg, #1e293b, #0f172a); 
    color: #fff !important; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-post-job:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25); color: #fff !important; }
.badge-free { background: #10b981; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; font-weight: 800; }

.minimal-footer { background: #fff; border-top: 1px solid var(--border); padding: 48px 24px 24px; text-align: center; }
.footer-minimal-content { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: 32px; }
.footer-inline-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.footer-inline-links a { color: #64748b; font-weight: 600; font-size: 14px; text-decoration: none; transition: color 0.2s; }
.footer-inline-links a:hover { color: #1e293b; }
.footer-bottom-line { border-top: 1px solid #f1f5f9; padding-top: 24px; font-size: 13px; color: #94a3b8; font-weight: 500; }

/* =========================================================
   SINGLE JOB PAGE: 70/30 Layout
========================================================= */
.single-layout-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 24px; }
.single-layout-container { display: flex; gap: 40px; align-items: flex-start; }
.single-main-col { flex: 1; min-width: 0; }
.single-sidebar-col { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }

/* Banners */
.single-hero-banner { border-radius: 16px; padding: 60px 40px; margin-bottom: 32px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.single-hero-banner::before { content: ''; position: absolute; inset: 0; opacity: 0.1; background-image: radial-gradient(#fff 2px, transparent 2px); background-size: 20px 20px; }
.hero-content { position: relative; z-index: 2; }
.single-hero-banner h1 { font-size: 36px; font-weight: 900; margin: 0 0 8px 0; letter-spacing: -0.5px; line-height: 1.2; }
.hero-subtitle { font-size: 16px; font-weight: 700; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }

/* Job Body */
.premium-requirements { background: #fff; border-radius: 12px; padding: 32px; border: 1px solid var(--border); margin-bottom: 32px; box-shadow: 0 4px 12px rgba(15,23,42,0.03); }
.premium-requirements h3 { margin: 0 0 20px 0; font-size: 18px; font-weight: 800; color: #1e293b; }
.premium-requirements ul { list-style: none; margin: 0; padding: 0; }
.premium-requirements li { margin-bottom: 12px; display: flex; gap: 12px; align-items: flex-start; color: #475569; font-weight: 500; }
.premium-requirements li i { color: #10b981; font-size: 18px; margin-top: 2px; }

.job-content-body { background: #fff; border-radius: 12px; padding: 32px; border: 1px solid var(--border); color: #334155; line-height: 1.8; font-size: 16px; }
.job-content-body h3 { margin: 0 0 24px 0; font-size: 20px; font-weight: 800; color: #1e293b; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; }

/* Sidebar Widgets */
.sidebar-widget { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(15,23,42,0.04); }
.btn-apply-massive { display: block; background: #2563eb; color: #fff !important; text-align: center; padding: 16px; border-radius: 12px; font-size: 18px; font-weight: 800; text-decoration: none; margin-bottom: 24px; transition: background 0.2s; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.btn-apply-massive:hover { background: #1d4ed8; }

.job-quick-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.job-quick-facts li { display: flex; gap: 16px; align-items: center; }
.fact-icon { width: 40px; height: 40px; border-radius: 10px; background: #f1f5f9; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.fact-text { display: flex; flex-direction: column; }
.fact-text strong { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.fact-text span { font-size: 15px; font-weight: 700; color: #1e293b; }

.qr-widget { text-align: center; background: #f8fafc; border: 2px dashed #cbd5e1; }
.qr-widget img { width: 120px; height: 120px; border-radius: 8px; margin-bottom: 16px; mix-blend-mode: multiply; }
.qr-widget p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }
.qr-widget strong { color: #1e293b; font-size: 14px; }

/* Responsive Single */
@media (max-width: 900px) {
    .single-layout-container { flex-direction: column; }
    .single-sidebar-col { width: 100%; position: static; }
}

/* =========================================================
   FRONTEND JOB SUBMISSION FORM (Post a Job)
========================================================= */
.post-job-container { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 48px; box-shadow: 0 8px 32px rgba(15,23,42,0.06); border: 1px solid var(--border); }
.post-job-header { text-align: center; margin-bottom: 40px; border-bottom: 2px solid #f1f5f9; padding-bottom: 24px; }
.post-job-header h1 { font-size: 32px; font-weight: 900; color: #1e293b; margin: 0 0 8px 0; letter-spacing: -0.5px; }
.post-job-header p { font-size: 16px; color: #64748b; margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 24px; }
.form-col h3 { font-size: 18px; font-weight: 800; color: #1e293b; margin: 0 0 20px 0; border-left: 4px solid var(--tech-primary); padding-left: 12px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 15px; font-family: inherit; color: #1e293b; transition: all 0.2s; background: #f8fafc; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--tech-primary); outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(43, 85, 155, 0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-full-width { margin-bottom: 32px; }

.form-submit-row { text-align: right; border-top: 2px solid #f1f5f9; padding-top: 24px; }
.btn-submit-massive { background: linear-gradient(135deg, var(--tech-primary), #1e3a8a); color: #fff; border: none; padding: 16px 40px; font-size: 18px; font-weight: 800; border-radius: 12px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-submit-massive:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3); }

/* Form Alerts */
.job-success-alert { background: #d1fae5; border: 1px solid #34d399; color: #065f46; padding: 40px; border-radius: 12px; text-align: center; }
.job-success-alert i { font-size: 48px; color: #10b981; margin-bottom: 16px; }
.job-success-alert h2 { margin: 0 0 8px 0; font-size: 24px; font-weight: 800; }
.job-error-alert { background: #fee2e2; border: 1px solid #f87171; color: #991b1b; padding: 16px; border-radius: 8px; margin-bottom: 24px; font-weight: 600; text-align: center; }

@media (max-width: 768px) {
    .post-job-container { padding: 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 24px; }
}
