/*
Theme Name: Job Schema Theme
Theme URI: https://parttimesampingan.com/
Author: Nama Anda
Author URI: https://parttimesampingan.com/
Description: Tema untuk job schema
Version: 1.0
License: GPL v2
Text Domain: job-schema-theme
*/

/* ============================================
   GLOBAL & BASE
   ============================================ */
body {
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ============================================
   WHITESPACE UNTUK SEMUA HALAMAN
   ============================================ */
.tag-container, 
.category-container, 
.lokasi-container, 
.industri-container, 
.perusahaan-container,
.lowongan-archive .lowongan-container,
.category-archive-container,
.lowongan-container,
.page-container,
.index-container {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

@media (max-width: 768px) {
    .tag-container, .category-container, .lokasi-container, .industri-container, 
    .perusahaan-container, .lowongan-archive .lowongan-container, .category-archive-container,
    .lowongan-container, .page-container, .index-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 480px) {
    .tag-container, .category-container, .lokasi-container, .industri-container, 
    .perusahaan-container, .lowongan-archive .lowongan-container, .category-archive-container,
    .lowongan-container, .page-container, .index-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ============================================
   JOBS GRID & CARD
   ============================================ */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.job-card {
    background: #fff;
    border: 2px solid #000;
    transition: transform 0.2s;
}

.job-card:hover {
    transform: translateY(-4px);
}

.job-card-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.company-logo {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.job-card-content {
    padding: 20px;
}

.job-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.job-title a {
    color: #000;
    text-decoration: none;
}

.job-title a:hover {
    text-decoration: underline;
}

.job-company {
    font-weight: 600;
    color: #059669;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.job-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.detail-label {
    font-weight: 700;
    width: 85px;
    color: #000;
}

.detail-value {
    color: #444;
}

.detail-value.salary {
    color: #065f46;
    font-weight: 600;
}

.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-cat, .badge-post {
    background: #000;
    color: #fff;
}

.badge-cpt {
    background: #d97706;
    color: #fff;
}

.badge-openings {
    background: #fbbf24;
    color: #78350f;
}

.badge-type {
    background: #e0e0e0;
    color: #333;
}

.badge-salary {
    background: #d1fae5;
    color: #065f46;
}

.badge-update {
    background: #fef3c7;
    color: #92400e;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.job-id {
    font-size: 11px;
    color: #999;
}

.job-link {
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.job-link:hover {
    background: #333;
}

/* ============================================
   HEADER & STATS
   ============================================ */
.category-header, .tag-header, .lokasi-header, .industri-header, .perusahaan-header {
    background: #059669;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    color: #fff;
}

.category-title, .tag-title, .lokasi-title, .industri-title, .perusahaan-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px;
}

.category-stats, .tag-stats, .lokasi-stats, .industri-stats, .perusahaan-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 2px solid #000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

.pagination a:hover, .pagination .current {
    background: #000;
    color: #fff;
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active {
    background: #000;
    color: #fff;
}

/* ============================================
   MODAL
   ============================================ */
.lowongan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    background: #fff;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #000;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
}

.modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.lowongan-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.lowongan-item {
    background: #fff;
    border: 2px solid #000;
    padding: 20px;
    text-decoration: none;
    color: #000;
    display: block;
}

.lowongan-item:hover {
    background: #000;
    color: #fff;
}

.lowongan-item h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.lowongan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.lowongan-company, .lowongan-location {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.lowongan-item:hover .lowongan-company,
.lowongan-item:hover .lowongan-location {
    background: #333;
    color: #fff;
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 2px solid #000;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.back-home {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-header, .tag-header {
        padding: 25px;
    }
    
    .category-title, .tag-title {
        font-size: 24px;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        margin-bottom: 3px;
    }
    
    .job-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .job-link {
        width: 100%;
        text-align: center;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .job-card-content {
        padding: 15px;
    }
    
    .job-title {
        font-size: 18px;
    }
    
    .job-card-logo {
        height: 80px;
    }
    
    .company-logo {
        max-height: 50px;
    }
    
    .category-stats, .tag-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .lowongan-list {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* ============================================
   HOME/BLOG INDEX WHITESPACE
   ============================================ */
.home-container {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

@media (max-width: 768px) {
    .home-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 480px) {
    .home-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}