/* --- 1. TEMEL AYARLAR & DEĞİŞKENLER --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

:root {
    --primary: #6366f1;
    --accent: #a855f7;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --header-h: 80px;
    --radius: 20px;
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --text-gray: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 2. HEADER & NAVIGASYON --- */
header {
    height: var(--header-h);
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.nav-desktop { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-desktop a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; transition: 0.3s; }
.nav-desktop a:hover { color: var(--primary); }

.m-toggle { display: none; font-size: 26px; cursor: pointer; background: none; border: none; color: var(--text); }
.nav-mobile { display: none; }

/* --- 3. ANA İÇERIK VE LAYOUT --- */
main {
    margin-top: var(--header-h) !important;
    flex: 1 0 auto;
    width: 100%;
}

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

.grid-layout { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 32px; 
}

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

.hero {
    background: white;
    padding: 50px 30px;
    border-radius: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

/* --- HERO ARAMA FORMU DÜZELTME (YENİ) --- */
.hero form {
    display: flex;
    gap: 12px;
    align-items: center; /* Dikeyde tam hizalama */
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero .form-input {
    height: 55px; /* Butonla eşitlemek için sabit yükseklik */
    margin-bottom: 0;
}

.hero .btn-katil {
    height: 55px; /* Inputla aynı boy */
    padding: 0 30px;
    margin-top: 0 !important; /* Varsa dıştan gelen margin'i sıfırlar */
    white-space: nowrap;
}

/* --- 4. GİRİŞ VE KAYIT (AUTH) --- */
.auth-container {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- 5. MESLEKLER SAYFASI (GÜNCEL IZGARA) --- */
.grid-layout-meslekler {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}

.meslek-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.meslek-scroll-area {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 15px;
    padding-right: 5px;
}

.meslek-scroll-area::-webkit-scrollbar { width: 4px; }
.meslek-scroll-area::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

.meslek-link {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.meslek-link:hover {
    background: #f1f5f9;
    color: var(--primary);
    transform: translateX(5px);
}

/* --- 6. FORM ELEMANLARI --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.form-input {
    width: 100%; padding: 14px 18px; border-radius: 12px;
    border: 1.5px solid #e2e8f0; font-family: inherit; font-size: 15px;
    transition: 0.3s; background: #ffffff;
}
.form-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }

.btn-katil {
    background: var(--primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-katil:hover { transform: translateY(-2px); opacity: 0.9; }

/* --- 7. RESPONSIVE & MOBİL MENÜ FİX --- */
@media (max-width: 992px) {
    .nav-desktop { display: none; }
    .m-toggle { display: block; }

    .nav-mobile {
        display: flex;
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: white;
        z-index: 10001;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        list-style: none;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-mobile.active { right: 0; }
    .nav-mobile a { font-size: 22px; text-decoration: none; color: var(--text); font-weight: 700; }
    
    .grid-layout { grid-template-columns: 1fr; }
    .hero { padding: 40px 20px; }

    /* Mobilde arama formunun yan yana kalmasını sağlar */
    .hero form {
        flex-direction: row; 
        gap: 8px;
    }
}

/* --- 8. FOOTER --- */
footer { padding: 40px 0; background: white; margin-top: auto; border-top: 1px solid #eee; text-align: center; }

/* --- EKSTRA YARDIMCI SINIFLAR --- */
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-20 { margin-top: 20px; }