/* Enerjik Renk Paleti ve Temel Ayarlar */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: linear-gradient(135deg, #6e8efb, #a777e3); /* Enerjik Gradyan */
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: #ffd700; /* "Work" kısmını vurgula */
}

.search-bar input {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    width: 300px;
}

.nav-icons button {
    background: transparent;
    border: none;
    color: white;
    margin-left: 20px;
    cursor: pointer;
    font-weight: 500;
}

.profile-btn {
    background-color: white !important;
    color: #6e8efb !important;
    padding: 5px 15px;
    border-radius: 15px;
}

.content {
    text-align: center;
    padding: 50px;
    color: #333;
}
/* İş Kartları Düzeni */
.job-container {
    display: flex;
    flex-wrap: wrap; /* Kartlar sığmazsa alt satıra geçer */
    justify-content: center;
    gap: 20px; /* Kartlar arası boşluk */
    padding: 20px;
}

.job-card {
    background: white;
    width: 300px;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease; /* Üzerine gelince büyüme efekti için */
    position: relative;
    border: 1px solid #eee;
}

.job-card:hover {
    transform: translateY(-10px); /* Hafifçe yukarı kalkar */
}

.job-badge {
    background: #e1e7ff;
    color: #6e8efb;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.job-card h3 {
    margin: 10px 0;
    color: #2c3e50;
}

.company {
    color: #7f8c8d;
    font-size: 14px;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    margin: 15px 0;
}

.price {
    color: #27ae60; /* Ücret yeşil olsun */
    font-weight: bold;
    font-size: 16px;
}

.apply-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.apply-btn:hover {
    opacity: 0.9;
}
/* Sosyal Akış Tasarımı */
.feed-container {
    max-width: 600px; /* Instagram gibi dikey ve dar bir akış */
    margin: 30px auto;
    padding: 10px;
}

.create-post {
    background: white;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.create-post input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
}

.post-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    background: #ddd;
    border-radius: 50%; /* Yuvarlak profil resmi */
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%); /* Geçici avatar rengi */
}

.post-header h4 {
    margin: 0;
    font-size: 16px;
}

.post-time {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.post-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    margin-top: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    border: 1px dashed #ccc;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}/* Profil Sayfası Tasarımı */
.profile-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.cover-photo {
    height: 150px;
    background: linear-gradient(45deg, #a777e3, #6e8efb); /* Kapak fotoğrafı alanı */
}

/* Sayfaları başlangıçta gizlemek için */
#isler-sayfasi, #akissayfasi, #profil-sayfasi, #mesajlar-sayfasi {
    display: none;
}

/* Sayfa aktif olduğunda görünecek stil */
.active-section {
    display: block !important;
}/* Mesajlaşma Paneli */
.messaging-container {
    max-width: 1000px;
    margin: 20px auto;
    height: 80vh; /* Ekranın %80'ini kaplasın */
}

.messaging-wrapper {
    display: flex;
    background: white;
    border-radius: 15px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Sol Liste */
.chat-sidebar {
    width: 30%;
    border-right: 1px solid #eee;
    background: #f9f9f9;
}

.sidebar-header {
    padding: 20px;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 1px solid #eee;
}

.convo-item {
    display: flex;
    padding: 15px;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.active-convo { background: #fff; border-left: 5px solid #6e8efb; }
.convo-item:hover { background: #f0f0f0; }

.convo-avatar { width: 40px; height: 40px; background: #6e8efb; border-radius: 50%; }

.convo-info h4 { margin: 0; font-size: 14px; }
.convo-info p { margin: 0; font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sağ Sohbet Alanı */
.chat-window {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.chat-header { padding: 15px; border-bottom: 1px solid #eee; font-weight: bold; }

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fdfdfd;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
}

.received { background: #eee; align-self: flex-start; border-bottom-left-radius: 2px; }
.sent { background: #6e8efb; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }

/* Mesaj Yazma Alanı */
.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
}

.chat-input-area button {
    background: #6e8efb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}/* Filtreleme Çubuğu */
.filter-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-bar select {
    padding: 12px 20px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 14px;
    color: #555;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-bar select:hover {
    border-color: #6e8efb;
}/* Modal (Pop-up) Arka Planı */
.modal-overlay {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Yarı saydam siyah */
    z-index: 1000; /* Her şeyin üstünde dursun */
    justify-content: center;
    align-items: center;
}

/* Beyaz Kutu Tasarımı */
.modal-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px; /* Çok geniş olmasın */
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.3s ease; /* Açılış animasyonu */
}

/* Yukarıdan aşağı kayma animasyonu */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form Elemanları */
.modal-box input, .modal-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box; /* Kutudan taşmayı engeller */
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

/* =========================================
   MOBİL UYUMLULUK (RESPONSIVE) AYARLARI
   ========================================= */

@media screen and (max-width: 768px) {
    /* Bu parantez içindeki her şey sadece TABLET ve TELEFONDA çalışır */

    /* 1. Üst Menüyü Düzenle */
    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    .search-bar input {
        width: 90%; /* Arama çubuğu genişlesin */
        margin-top: 10px;
    }

    /* 2. Alt Navigasyon Çubuğu (Instagram Tarzı) */
    .nav-icons {
        position: fixed; /* Ekrana yapıştır */
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        display: flex;
        justify-content: space-around; /* Butonları eşit dağıt */
        padding: 10px 0;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
        z-index: 999; /* Her şeyin üstünde dursun */
        border-top: 1px solid #eee;
    }

    .nav-icons button {
        color: #888; /* Arka plan beyaz olduğu için yazı gri olsun */
        font-size: 11px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Aktif butonu renklendirmek için */
    .nav-icons button:hover {
        color: #6e8efb;
    }

    /* 3. İçeriğin Alt Menü Arkasında Kalmasını Engelle */
    body {
        padding-bottom: 80px; /* Alt tarafı boş bırak */
    }

    /* 4. İş Kartları ve Postları Ekrana Sığdır */
    .job-card, .post-card, .profile-header-card, .skills-card {
        width: 90% !important; /* Genişlik %100'e yakın olsun */
        margin-left: auto;
        margin-right: auto;
    }

    .feed-container, .profile-container {
        padding: 10px;
    }

    /* 5. Mesajlaşma Ekranını Alt Alta Al */
    .messaging-wrapper {
        flex-direction: column; /* Yan yana değil, alt alta */
        height: 75vh; /* Ekran boyuna göre ayarla */
    }

    .chat-sidebar {
        width: 100%;
        height: 120px; /* Liste üstte küçük kalsın */
        overflow-x: auto; /* Yan yana kaydırılabilsin */
        display: flex;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .chat-window {
        width: 100%;
        height: calc(100% - 120px); /* Kalan alan sohbete */
    }
    
    /* 6. Filtreleme Çubuğunu Alt Alta Al */
    .filter-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-bar select {
        width: 90%;
    }

} /* <--- İŞTE UNUTULAN PARANTEZ BURASI! MOBİL KISIM BURADA BİTİYOR */


/* =========================================
   MODERN PROFİL TASARIMI (V2.0) ✨
   ========================================= */

.profile-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

/* --- ÜST KART --- */
.profile-header-card {
    background: white;
    border-radius: 16px;
    overflow: hidden; /* Taşmaları gizle */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    position: relative;
}

/* Kapak Fotoğrafı (Gradient) */
.profile-cover {
    height: 180px;
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); /* Turkuaz Geçiş */
    background-size: cover;
}

.profile-header-content {
    text-align: center;
    padding: 0 20px 30px;
    margin-top: -75px; /* Resmi yukarı çekip kapağın üstüne bindirir */
}

/* Profil Resmi */
.profile-avatar-large {
    width: 150px;
    height: 150px;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 5px solid white; /* Beyaz çerçeve */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
}

.header-text h2 {
    margin: 5px 0;
    font-size: 26px;
    color: #2c3e50;
}

.header-text p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* İstatistik Kutuları (Takipçi vb.) */
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-box strong {
    font-size: 18px;
    color: #333;
}

.stat-box span {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- İKİ SÜTUNLU IZGARA (GRID) --- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Sol dar, sağ geniş */
    gap: 25px;
}

/* Sol Sütun (Yetenekler) */
.left-column .skills-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.left-column h3, .right-column h3 {
    margin-top: 0;
    font-size: 18px;
    color: #34495e;
    border-bottom: 2px solid #f4f7f6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.skill-tag {
    display: inline-block;
    background: #eef2f3;
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin: 3px;
    font-weight: 600;
}

/* Mobil Uyumluluk */
@media screen and (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr; /* Mobilde alt alta olsun */
    }
    
    .profile-avatar-large {
        width: 120px;
        height: 120px;
    }
}

/* =========================================
   MODAL (AÇILIR PENCERE) TASARIMI 🛠️
   ========================================= */

.modal-form-group {
    margin-bottom: 15px;
    width: 100%;
    text-align: left;
}

.modal-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.modal-form-group input[type="text"],
.modal-form-group input[type="file"],
.modal-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fdfdfd;
    box-sizing: border-box;
    transition: 0.3s;
    font-family: inherit;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    background-color: white;
}

.modal-form-group input[type="file"] {
    padding: 8px;
    background: white;
}
/* --- PROFİL İÇERİK KUTULARI (İlanlar ve Başvurular) --- */
.content-box {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.content-box h3 {
    margin-top: 0;
    font-size: 18px;
    color: #34495e;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Boş Durum (Henüz ilan yoksa) */
.empty-state {
    text-align: center;
    padding: 20px;
    color: #95a5a6;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px dashed #ddd;
}

.empty-state p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

/* Küçük Butonlar */
.small-btn {
    background-color: #e1e7ff;
    color: #6e8efb;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.small-btn:hover {
    background-color: #6e8efb;
    color: white;
}
/* --- CHAT SİSTEMİ TASARIMI --- */
.chat-container {
    display: flex;
    height: 80vh; /* Ekranın %80'i kadar yükseklik */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid #ddd;
}

/* Sol Taraf (Kişi Listesi) */
.chat-sidebar {
    width: 30%;
    border-right: 1px solid #eee;
    background: #f9f9f9;
    overflow-y: auto;
}
.sidebar-header {
    padding: 15px;
    background: #eee;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}
.contact-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}
.contact-item:hover { background: #fff; }
.contact-item.active { background: #e3e8ff; border-left: 4px solid #6e8efb; }

/* Sağ Taraf (Mesaj Alanı) */
.chat-main {
    width: 70%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Header */
.chat-header {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
}
.avatar-small { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }

/* Mesaj Alanı */
.messages-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f4f6f8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Baloncuklar */
.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}
.message-sent {
    align-self: flex-end; /* Sağa yasla */
    background: #6e8efb;
    color: white;
    border-bottom-right-radius: 2px;
}
.message-received {
    align-self: flex-start; /* Sola yasla */
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-bottom-left-radius: 2px;
}
.msg-time { font-size: 10px; opacity: 0.7; margin-top: 5px; text-align: right; display: block; }

/* Input Alanı */
.chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: #fff;
}
.chat-input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
}
.send-btn {
    width: 45px;
    height: 45px;
    background: #6e8efb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

/* Boş Durum */
.empty-chat-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}
/* Modern Bildirim Kutusu (Toast) */
#toast-container {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#toast-container.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}
/* Arama Kutusu Taşıyıcısı */
.nav-search-container {
    position: relative; /* Sonuç kutusunu buna göre hizalamak için şart */
    margin: 0 20px;
    width: 300px;
}

/* Arama Inputu */
#nav-search-input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    outline: none;
    transition: all 0.3s;
}

#nav-search-input:focus {
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Açılır Sonuç Listesi */
#nav-search-results {
    display: none; /* Başlangıçta gizli */
    position: absolute;
    top: 110%; /* Inputun hemen altı */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000; /* Her şeyin üstünde dursun */
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
}

/* Sonuç Kartı */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
}

.search-result-item:hover {
    background-color: #f0f8ff; /* Üzerine gelince hafif mavi */
}

.search-result-item img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.search-result-info div:first-child {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.search-result-info div:last-child {
    font-size: 11px;
    color: #888;
}