/* ============================================
   Biltek Kariyer - Site stilleri
   (index, job, apply, tesekkurler)
   ============================================ */

:root {
    --primary: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --bg: #f3f4f6;
    --text-main: #0f172a;
    --text-muted: #6b7280;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Anasayfa (index) ---------- */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.nav-logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.hero {
    background: radial-gradient(circle at top left, #dbeafe 0, #f9fafb 40%, #eef2ff 100%);
    padding: 40px 20px 32px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.hero-title {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.hero-highlight {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background-color: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 8px;
}

.hero-sub {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 420px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn-primary {
    border-radius: 999px;
    padding: 9px 20px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    border-radius: 999px;
    padding: 9px 18px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-meta-item strong {
    color: #4b5563;
}

.section {
    padding: 28px 20px 40px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 20px;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.job-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
    border: 1px solid #e5e7eb;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
}

.job-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background-color: #eff6ff;
    color: #1d4ed8;
}

.job-desc {
    font-size: 13px;
    color: #4b5563;
    margin-top: 4px;
}

.job-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.job-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.job-link span {
    font-size: 14px;
}

.tag {
    font-size: 11px;
    color: var(--text-muted);
}

.footer {
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* İlan kutuları: geniş ekranda 3, tablette 2, küçük ekranda 1 sütun */
@media (max-width: 992px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- İlan detay (job) ---------- */
.container {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 16px;
}

.card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px 22px 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.card .title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card .meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 10px;
}

.card .body {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin-top: 10px;
    white-space: pre-line;
}

.card .body.mt {
    margin-top: 14px;
}

.actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.muted {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* ---------- Başvuru formu (apply) ---------- */
.apply-page .container {
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    padding: 32px 40px 40px;
}

.apply-page h1 {
    margin-top: 0;
    font-size: 26px;
    color: #111827;
}

.apply-page h2 {
    font-size: 20px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin-top: 32px;
}

.apply-page .subtitle {
    color: #6b7280;
    margin-bottom: 24px;
}

.apply-page .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 24px;
}

.apply-page .field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.apply-page label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
}

.apply-page label span.required {
    color: #dc2626;
    margin-left: 2px;
}

.apply-page input[type="text"],
.apply-page input[type="email"],
.apply-page input[type="date"],
.apply-page input[type="number"],
.apply-page select,
.apply-page textarea {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    background-color: #f9fafb;
}

.apply-page textarea {
    min-height: 90px;
    resize: vertical;
}

.apply-page input:focus,
.apply-page select:focus,
.apply-page textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
    background-color: #ffffff;
}

.apply-page .radio-group,
.apply-page .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 14px;
}

.apply-page .radio-group label,
.apply-page .checkbox-group label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apply-page .checkbox-group a {
    color: #2563eb;
    text-decoration: none;
}

.apply-page .checkbox-group a:hover {
    text-decoration: underline;
}

.apply-page .section-note {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.apply-page .errors {
    border-radius: 10px;
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

.apply-page .errors ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.apply-page .submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.apply-page button[type="submit"] {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.apply-page button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.3);
}

.apply-page button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.apply-page .small-text {
    font-size: 12px;
    color: #6b7280;
}

.apply-page .file-input {
    font-size: 13px;
}

.apply-page .grid-mb {
    margin-bottom: 12px;
}
/* İş tecrübesi, eğitim ve kurs satırlarını tek satıra sığdırmak için özel gridler */
.apply-page .grid-exp,
.apply-page .grid-edu,
.apply-page .grid-course {
    display: grid;
    grid-template-columns: 2fr 1.6fr 0.9fr 0.9fr;
    column-gap: 24px;
}

/* Eğitim ve kurslarda biraz farklı oranlar */
.apply-page .grid-edu {
    grid-template-columns: 1.2fr 1.9fr 0.9fr 1.3fr;
}

.apply-page .grid-course {
    grid-template-columns: 1.3fr 1.7fr 0.8fr 0.8fr;
}

/* Başlangıç / bitiş yıl inputlarını görsel olarak daralt */
.apply-page .grid-exp input[type="number"],
.apply-page .grid-edu input[type="number"],
.apply-page .grid-course input[type="number"] {
    max-width: 120px;
}

@media (max-width: 768px) {
    /* Başvuru formu: mobil / tablet dikey görünüm */
    .apply-page .container {
        margin: 16px;
        padding: 18px 16px 24px;
        border-radius: 12px;
    }
    .apply-page h1 {
        font-size: 22px;
    }
    .apply-page h2 {
        font-size: 18px;
        margin-top: 24px;
    }
    .apply-page .grid,
    .apply-page .grid-exp,
    .apply-page .grid-edu,
    .apply-page .grid-course {
        grid-template-columns: 1fr;
    }
    .apply-page .submit-row {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    /* Genel mobil düzen */
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 14px;
        gap: 6px;
    }
    .nav-links {
        flex-wrap: wrap;
        row-gap: 6px;
        font-size: 13px;
    }
    .hero {
        padding: 24px 16px 20px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-sub {
        font-size: 13px;
    }
    .section {
        padding: 20px 16px 28px;
    }
    .section-title {
        font-size: 18px;
    }

    /* Başvuru formu mobil düzen */
    .apply-page .container {
        margin: 16px;
        padding: 18px 16px 24px;
        border-radius: 12px;
    }
    .apply-page h1 {
        font-size: 22px;
    }
    .apply-page .grid {
        grid-template-columns: 1fr;
    }
    .apply-page input[type="text"],
    .apply-page input[type="email"],
    .apply-page input[type="date"],
    .apply-page input[type="number"],
    .apply-page select,
    .apply-page textarea {
        font-size: 15px;
    }
}

/* ---------- Teşekkür sayfası (tesekkurler) ---------- */
body.thanks-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f5f7fb;
}

.thanks-page .card {
    max-width: 520px;
    text-align: center;
    padding: 32px 36px;
}

.thanks-page h1 {
    font-size: 24px;
    color: #111827;
    margin-top: 0;
}

.thanks-page p {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 10px;
}

.thanks-page a.button {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.thanks-page a.button:hover {
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.35);
}
