/* GENİŞLETİLMİŞ SOSYAL IZGARA */
.social-layout { 
    display: grid; 
    grid-template-columns: 320px minmax(500px, 1fr) 320px; 
    gap: 30px; 
    max-width: 1400px; 
    margin: 30px auto; 
    padding: 0 20px; 
    align-items: start; 
}

.sidebar-sticky { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 25px; }
.sidebar-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }

/* PAYLAŞIM KUTUSU */
.create-post-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 25px; }
.create-post-input { width: 100%; border: none; background: var(--bg); border-radius: 16px; padding: 15px; font-family: inherit; font-size: 1rem; resize: none; margin-top: 15px; outline: none; }

/* FOTOĞRAF ÖNİZLEME */
.image-preview-container { position: relative; display: none; margin-top: 15px; }
.image-preview-container img { width: 100%; max-height: 250px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.image-preview-remove { position: absolute; top: 10px; right: 10px; background: rgba(26, 20, 16, 0.7); color: white; border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }

/* AKIŞ (FEED) KARTLARI */
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 25px; overflow: hidden; }
.post-header { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--bg); }
.post-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); cursor: pointer; transition: 0.2s; }
.post-avatar:hover { border-color: var(--accent); transform: scale(1.05); }
.post-author-name { font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; }
.post-author-name:hover { color: var(--accent); }

.post-image { width: 100%; max-height: 450px; object-fit: cover; border-bottom: 1px solid var(--bg); display: block; background: var(--bg); }
.post-body { padding: 20px; font-size: 1rem; line-height: 1.6; color: var(--text); }
.post-actions { display: flex; gap: 20px; padding: 15px 20px; border-top: 1px solid var(--bg); }
.action-item { display: flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; font-weight: 700; font-size: 0.95rem; transition: 0.2s; }
.action-item:hover, .action-item.liked { color: var(--red); }

/* LİSTELER VE KİŞİLER */
.wish-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: var(--bg); border-radius: 12px; margin-bottom: 10px; font-size: 0.95rem; font-weight: 500; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; transition: 0.2s; }
.contact-item:hover { background: var(--bg); }

/* FLOATING CHAT (SOHBET KUTUSU) */
.floating-chat { position: fixed; bottom: 0; right: 80px; width: 340px; height: 480px; background: var(--card); border: 1px solid var(--border); border-bottom: none; border-radius: 16px 16px 0 0; box-shadow: 0 -5px 25px rgba(0,0,0,0.1); display: flex; flex-direction: column; z-index: 1000; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.floating-chat.open { transform: translateY(0); }
.chat-header { background: var(--text); color: white; padding: 12px 15px; border-radius: 16px 16px 0 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.chat-messages-area { flex: 1; padding: 15px; overflow-y: auto; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.msg-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.4; word-wrap: break-word; }
.msg-received { background: var(--card); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-sent { background: var(--accent); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input-area { padding: 12px; background: var(--card); border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* MODALLAR (PROFİL, ARKADAŞ EKLE) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 20, 16, 0.6); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 15px; }
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease-out; }
.modal-card { background: var(--card); border-radius: 24px; border: 1px solid var(--border); width: 100%; max-width: 450px; max-height: 90vh; overflow-y: auto; position: relative; padding: 0; overflow: hidden; }
.modal-close { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5); border: none; color: white; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; z-index: 10; backdrop-filter: blur(4px); }
.modal-close:hover { background: var(--accent); }

.profile-modal-header { height: 150px; background-color: var(--border); background-size: cover; background-position: center; position: relative; }
.profile-modal-avatar { width: 90px; height: 90px; border-radius: 50%; border: 4px solid var(--card); position: absolute; bottom: -45px; left: 50%; transform: translateX(-50%); object-fit: cover; background: var(--bg); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.profile-modal-info { text-align: center; margin-top: 55px; padding: 0 20px 20px 20px; }
.profile-modal-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--heading); margin-bottom: 5px; }

/* MOBİL UYUMLULUK (RESPONSIVE) */
.mobile-tabs { display: none; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 72px; z-index: 100; }
.mobile-tab-btn { flex: 1; padding: 15px; text-align: center; border: none; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.9rem;}
.mobile-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 1024px) {
    .social-layout { grid-template-columns: 1fr; margin-top: 0; padding: 15px; gap: 15px; }
    .mobile-tabs { display: flex; }
    
    .left-sidebar, .right-sidebar { display: none; }
    .feed-content { display: block; width: 100%; }

    body.show-wishlist .left-sidebar { display: block; width: 100%; }
    body.show-wishlist .feed-content, body.show-wishlist .right-sidebar { display: none; }

    body.show-contacts .right-sidebar { display: block; width: 100%; }
    body.show-contacts .feed-content, body.show-contacts .left-sidebar { display: none; }

    .floating-chat { width: 100%; right: 0; bottom: 0; height: 60vh; border-radius: 20px 20px 0 0; }
}