/* Açık pozisyonlar sayfası (CI3 public_page/pages/open_positions.php içindeki <style>).
   layouts/job_posting.blade.php css/styles/public/open_positions.css dosyasını otomatik bağlar.
   border-left -> mantıksal border-inline-start. */
:root {
    --jp-primary: #2f6f83;
    --jp-primary-dark: #285d6e;
    --jp-primary-soft: rgba(47, 111, 131, 0.08);
    --jp-ink: #1b2e35;
    --jp-muted: #6b7280;
}

/* Arama kutusu */
.search-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 16px;
    margin-bottom: 20px;
}

.search-box .input-group {
    background: #f4f6f7;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.search-box .input-group:focus-within {
    border-color: var(--jp-primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--jp-primary-soft);
}

.search-box .form-control {
    border: none;
    background: transparent;
    padding: 14px 18px;
    font-size: 0.95rem;
    box-shadow: none;
}

.search-box .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.search-box .btn {
    background: var(--jp-primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

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

.search-box .btn svg {
    width: 20px;
    height: 20px;
}

/* İş ilanı kartları */
.job-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid #eef0f2;
    border-inline-start: 4px solid transparent;
}

.job-card:hover {
    box-shadow: 0 8px 24px rgba(47, 111, 131, 0.12);
    transform: translateY(-2px);
    border-inline-start-color: var(--jp-primary);
}

.job-card.active {
    border-inline-start-color: var(--jp-primary);
    background: var(--jp-primary-soft);
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jp-ink);
    margin-bottom: 6px;
}

.company-name {
    color: var(--jp-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.job-location, .job-unit, .job-posted {
    color: var(--jp-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.job-location svg, .job-unit svg, .job-posted svg {
    width: 15px;
    height: 15px;
    color: var(--jp-primary);
    flex-shrink: 0;
}

/* Detay paneli */
.detail-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 32px;
    min-height: 500px;
    position: sticky;
    top: 96px;
}

.detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--jp-ink);
    margin-bottom: 8px;
}

.detail-company {
    color: var(--jp-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #3b3f5c;
    font-size: 0.88rem;
    background: #f4f6f7;
    padding: 8px 14px;
    border-radius: 50px;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--jp-primary);
}

.detail-description {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 28px;
}

.detail-description h6 {
    color: var(--jp-ink);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.apply-btn {
    background: var(--jp-primary);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.apply-btn:hover {
    background: var(--jp-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 111, 131, 0.3);
}

.apply-btn svg {
    width: 18px;
    height: 18px;
}

/* "İlan seçin" boş durumu */
.no-selection {
    text-align: center;
    color: #9ca3af;
    padding: 70px 20px;
}

.no-selection svg {
    width: 64px;
    height: 64px;
    color: #cdd5da;
    margin-bottom: 20px;
    stroke-width: 1.5;
}

.no-selection h4 {
    color: #3b3f5c;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.no-selection p {
    font-size: 0.92rem;
    max-width: 320px;
    margin: 0 auto;
}

/* Liste içi durumlar (yükleniyor / boş / hata) */
#jobList .text-center svg {
    width: 56px;
    height: 56px;
    color: #cdd5da;
    stroke-width: 1.5;
}

#jobList .text-center h5 {
    color: #3b3f5c;
    font-weight: 600;
    margin-top: 16px;
}

#jobList .text-center p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.spinner-border.text-primary {
    color: var(--jp-primary) !important;
}

/* Filtre etiketleri */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.filter-tag {
    background: #eef0f2;
    color: #495057;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tag:hover, .filter-tag.active {
    background: var(--jp-primary);
    color: #fff;
}

@media (max-width: 991px) {
    .detail-section {
        position: static;
        margin-top: 20px;
        padding: 24px;
    }
}
