/* style.css - FINAL: AVATAR VE GİZLİLİK GÜNCELLEMELİ VERSİYON */

/* --- TEMEL AYARLAR --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    scrollbar-width: thin; 
    scrollbar-color: var(--primary) var(--background); 
    -webkit-tap-highlight-color: transparent; 
}

:root {
    --primary: #0095f6;
    --primary-light: rgba(0, 149, 246, 0.1);
    --primary-press: rgba(0, 149, 246, 0.25);
    --background: #fafafa;
    --surface: #ffffff;
    --text: #262626;
    --text-light: #707070;
    --border: #dbdbdb;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.15);
    --like-color: #ff3040;
    --like-light: rgba(255, 48, 64, 0.1);
    --touch-overlay: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --primary: #0095f6;
    --primary-light: rgba(0, 149, 246, 0.2);
    --primary-press: rgba(0, 149, 246, 0.4);
    --background: #121212;
    --surface: #1e1e1e;
    --text: #ffffff;
    --text-light: #b0b0b0;
    --border: #333333;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.4);
    --like-color: #ff3040;
    --like-light: rgba(255, 48, 64, 0.2);
    --touch-overlay: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    padding-bottom: 100px;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- TIKLAMA GEÇİŞ AYARLARI --- */
.action-btn, 
.delete-post-btn, 
.comment-like-btn, 
.comment-delete-btn,
.nav-item,
.nav-icon {
    transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.1s ease;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
}

/* --- ANA YERLEŞİM --- */
.main-content { 
    max-width: 1400px; margin: 15px auto; padding: 0 16px;
    min-height: calc(100vh - 200px); transition: padding-left 0.3s ease;
}

.content-header { text-align: center; margin-bottom: 20px; padding: 0 20px; }
.content-header h2 { font-size: 26px; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.content-header p { font-size: 15px; color: var(--text-light); }

.home-content-wrapper { display: flex; gap: 30px; align-items: flex-start; max-width: 1400px; margin: 0 auto; justify-content: center; position: relative; }
.home-main-content { flex: 1; min-width: 0; width: 100%; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; }

/* --- KARTLAR --- */
.image-card {
    background-color: var(--surface); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow); transition: all 0.3s ease;
    width: 100%; max-width: 600px; margin: 0 auto 20px auto;
    position: relative; z-index: 1;
    content-visibility: auto; 
    contain-intrinsic-size: 1px 500px;
    contain: layout paint;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
    .image-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
}

.card-header { display: flex; align-items: center; padding: 12px 16px; gap: 12px; position: relative; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background-color: #f0f0f0; background-size: cover; background-position: center; border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.user-avatar.large { width: 80px; height: 80px; }
.user-info { flex: 1; }
.username { font-weight: 600; font-size: 14px; margin-bottom: 1px; color: var(--text); }
.post-time { font-size: 11px; color: var(--text-light); }

/* --- GÖRSEL KAPSAYICI --- */
.post-media-container {
    position: relative;
    width: 100%;
    background-color: var(--surface);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 60vh; 
    min-height: 250px; 
}

.media-blur-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.5);
    transform: scale(1.2); 
    z-index: 0;
    opacity: 0.8;
}

[data-theme="dark"] .media-blur-bg { opacity: 0.6; }

.card-image {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 60vh;
    width: auto !important; 
    height: auto !important;
    object-fit: contain; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin: 0;
    border: none;
    min-height: 200px;
    background-color: var(--surface);
}

.card-content { padding: 12px 16px; }
.card-content p { font-size: 14px; line-height: 1.4; color: var(--text); }

/* --- AKSİYON BUTONLARI --- */
.image-actions {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; border-bottom: 1px solid var(--border); position: relative;
}
.image-actions::before { content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background-color: var(--primary); opacity: 0.8; border-radius: 2px; }

.action-left { display: flex; align-items: center; gap: 15px; margin-top: 4px; }
.action-btn { color: var(--text-light); padding: 6px; border-radius: 8px; gap: 6px; font-size: 14px; }

.like-post-btn.active { color: var(--like-color) !important; background-color: transparent !important; }
.like-post-btn.active i { animation: likeBounce 0.4s; }

@media (hover: hover) {
    .action-btn:hover { background-color: transparent; color: var(--text); }
    .like-post-btn:hover { background-color: transparent; color: var(--like-color); }
}

.like-post-btn:active { transform: scale(0.92); background-color: transparent !important; }
.action-btn:active { transform: scale(0.92); background-color: transparent !important; }

.action-btn:focus, 
.like-post-btn:focus { outline: none; background-color: transparent !important; }

.discussion-btn:focus { outline: none; }
.like-post-btn:not(.active):focus { background-color: transparent !important; }
.action-btn:not(.active):focus { background-color: transparent !important; }

@keyframes likeBounce { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

.discussion-btn {
    background: var(--primary); color: white; border: none; padding: 6px 14px;
    border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 500;
    display: flex; align-items: center; gap: 6px;
    transition: transform 0.1s ease, background-color 0.1s ease;
}

@media (hover: hover) { .discussion-btn:hover { background: #0081d6; } }
.discussion-btn:active { transform: scale(0.95); background: #0077cc; }

.delete-post-btn { color: var(--text-light); padding: 8px; border-radius: 8px; font-size: 16px; margin-left: auto; }
@media (hover: hover) { .delete-post-btn:hover { background-color: rgba(255, 71, 87, 0.1); color: #ff4757; } }
.delete-post-btn:active { transform: scale(0.92); background-color: transparent; color: #ff4757; }
.delete-post-btn:focus { outline: none; background-color: transparent; }

/* --- TARTIŞMA BÖLÜMÜ --- */
.discussion-section {
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, transform 0.4s ease, padding 0.4s ease, border 0.4s ease;
    background: var(--background); border-top: 0px solid transparent; transform: translateY(-10px); visibility: hidden;
}
.discussion-section.expanded { max-height: 600px; opacity: 1; transform: translateY(0); visibility: visible; border-top: 1px solid var(--border); }

.comments-container { padding: 15px; max-height: 300px; overflow-y: auto; }
.comments-list { display: flex; flex-direction: column; gap: 6px; padding: 8px; }

.comment-item {
    max-width: 85%; min-width: 100px; width: fit-content; padding: 4px 22px 4px 10px;
    border-radius: 14px; position: relative; word-wrap: break-word; align-self: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); margin-bottom: 2px; animation: slideInUp 0.3s ease;
}
.comment-item.mine {
    align-self: flex-end; background-color: rgba(0, 149, 246, 0.15); border-color: rgba(0, 149, 246, 0.2);
    color: var(--text); border-radius: 14px; border-bottom-right-radius: 2px; border-bottom-left-radius: 14px;
}

.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0px; gap: 10px; }

.comment-user { 
    font-weight: 700; 
    font-size: 13px; 
    color: var(--primary); 
    opacity: 0.9; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
@media (hover: hover) { .comment-user:hover { text-decoration: underline; color: #0081d6; } }
.comment-user:active { opacity: 0.7; }

.comment-delete-btn {
    position: absolute; top: 3px; right: 3px; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center; color: var(--text-light);
    border-radius: 50%; font-size: 10px; cursor: pointer; opacity: 0.6; transition: all 0.2s ease;
}
@media (hover: hover) { .comment-delete-btn:hover { color: #ff4757; background-color: rgba(255, 71, 87, 0.1); opacity: 1; } }
.comment-delete-btn:active { background-color: transparent; color: #ff4757; transform: scale(0.9); opacity: 1; }

.comment-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1px; border-top: 1px solid rgba(0,0,0,0.03); padding-top: 1px; min-width: 100px; }
.footer-left { display: flex; align-items: center; }
.footer-right { display: flex; align-items: center; gap: 8px; }
.comment-text { font-size: 14px; line-height: 1.3; color: var(--text); margin-bottom: 1px; }

.comment-like-btn { color: var(--text-light); padding: 4px 8px; border-radius: 6px; gap: 3px; font-size: 11px; font-weight: 500; }
@media (hover: hover) { .comment-like-btn:hover { background-color: transparent; color: var(--like-color); } }
.comment-like-btn:active { background-color: transparent; color: var(--like-color); transform: scale(0.95); }
.comment-like-btn.active { color: var(--like-color); background-color: transparent !important; }
.comment-like-btn:focus { outline: none; background-color: transparent !important; }
.comment-time { font-size: 10px; color: var(--text-light); font-weight: 500; min-width: 30px; text-align: right; margin-right: -4px; white-space: nowrap; }
[data-theme="dark"] .comment-item.mine { background-color: rgba(0, 149, 246, 0.25); border-color: transparent; color: #fff; }

.add-comment { display: flex; padding: 12px 15px; border-top: 1px solid var(--border); gap: 10px; background: var(--surface); align-items: center; }
.comment-input { flex: 1; padding: 10px 15px; border: 1px solid transparent; border-radius: 25px; background: var(--background); color: var(--text); font-size: 13px; transition: all 0.3s ease; outline: none; }
.comment-input:focus { background-color: var(--surface); border-color: var(--border); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.submit-comment {
    width: 36px; height: 36px; border-radius: 50%; background-color: transparent;
    color: var(--primary); border: none; cursor: pointer; transition: all 0.1s ease;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px;
}
@media (hover: hover) { .submit-comment:hover { background-color: var(--primary-light); transform: scale(1.1); } }
.submit-comment:active { background-color: var(--primary-press); transform: scale(0.9); }
.submit-comment:focus { outline: none; background-color: transparent; }

/* --- FİLTRELER --- */
.filters-container { display: flex; align-items: center; margin-bottom: 25px; padding: 0 10px; }
.filters-sidebar { 
    width: 320px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-strong); 
    border: 1px solid var(--border); position: sticky; top: 85px; height: calc(100vh - 100px); 
    flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden; z-index: 90;
    will-change: transform;
}
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; padding: 20px 25px; border-bottom: 1px solid var(--border); flex-shrink: 0; background: var(--surface); }

#close-filters { display: none; }

.filters-title { font-size: 20px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.filters-scroll-content { flex: 1; overflow-y: auto; padding: 25px; scrollbar-width: thin; scrollbar-color: rgba(0, 149, 246, 0.5) transparent; }
.filters-scroll-content::-webkit-scrollbar { width: 6px; }
.filters-scroll-content::-webkit-scrollbar-track { background: transparent; }
.filters-scroll-content::-webkit-scrollbar-thumb { background-color: rgba(0, 149, 246, 0.3); border-radius: 10px; }
.filters-scroll-content::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 149, 246, 0.8); }
.filter-actions { flex-shrink: 0; display: flex; gap: 12px; padding: 20px 25px; background-color: var(--surface); border-top: 1px solid var(--border); z-index: 20; box-shadow: 0 -4px 15px rgba(0,0,0,0.03); }
.filter-group { margin-bottom: 25px; }
.filter-group-title { font-size: 14px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.filter-options { display: flex; flex-direction: column; gap: 8px; }

.filter-option {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: 10px; cursor: pointer; transition: background-color 0.1s ease;
    border: 1px solid transparent; background: var(--background); user-select: none;
}
@media (hover: hover) { .filter-option:hover { background: var(--primary-light); border-color: rgba(0, 149, 246, 0.3); } }
.filter-option:active { background: var(--primary-light); transform: scale(0.98); }
.filter-option.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.filter-checkbox { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0; background: var(--surface); }
.filter-checkbox.radio { border-radius: 50%; }
.filter-option.active .filter-checkbox { background: var(--primary); border-color: var(--primary); }
.filter-option.active .filter-checkbox:not(.radio)::after { content: '✓'; color: white; font-size: 11px; font-weight: bold; }
.filter-option.active .filter-checkbox.radio::after { content: ''; width: 8px; height: 8px; background: white; border-radius: 50%; }

.date-range-container { display: flex; flex-direction: column; gap: 10px; padding: 15px; background: var(--background); border-radius: 12px; border: 1px solid var(--border); }
.date-input-group label { font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 4px; display: block; }
.date-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background-color: var(--surface); color: var(--text); font-family: inherit; font-size: 13px; outline: none; }
.date-input:focus { border-color: var(--primary); }

.filter-tags-container { margin-top: 20px; padding: 15px; background: rgba(0, 149, 246, 0.05); border-radius: 12px; border: 1px dashed var(--primary); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.filter-tag { background: var(--primary); color: white; padding: 6px 12px; border-radius: 15px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.filter-tag:hover { background: #d32f2f; }
.no-filters { font-size: 12px; color: var(--text-light); font-style: italic; }

.filter-btn {
    flex: 1 1 0px; padding: 12px; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.1s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.filter-btn.primary { background: var(--primary); color: white; box-shadow: 0 4px 10px rgba(0, 149, 246, 0.2); }
@media (hover: hover) { .filter-btn.primary:hover { background: #0081d6; transform: translateY(-2px); } }
.filter-btn.primary:active { transform: scale(0.96); background: #0077cc; box-shadow: none; }
.filter-btn.secondary { background: var(--background); color: var(--text); border: 1px solid var(--border); }
@media (hover: hover) { .filter-btn.secondary:hover { background: var(--border); } }
.filter-btn.secondary:active { background: var(--border); transform: scale(0.96); }

.mobile-filter-btn {
    display: none; align-items: center; gap: 8px; padding: 10px 18px;
    background: var(--primary); color: white; border: none; border-radius: 20px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.2); margin-left: auto; transition: transform 0.1s ease;
}
.mobile-filter-btn:active { transform: scale(0.95); background: #0077cc; }
.filter-badge { background: #ff4757; color: white; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; position: absolute; top: -5px; right: -5px; }

/* --- MODAL --- */
.modal { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); z-index: 2000; justify-content: center; align-items: center; 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    will-change: opacity;
}
.modal-content { background-color: var(--surface); border-radius: 20px; width: 90%; max-width: 400px; padding: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); animation: modalAppear 0.3s ease; max-height: 90vh; overflow-y: auto; border: 1px solid var(--border); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }

.close-btn {
    width: 34px;
    height: 34px;
    background-color: #ff4757; 
    color: #ffffff;            
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

[data-theme="dark"] .close-btn {
    background-color: #ff4757;
    color: #ffffff;
}

@media (hover: hover) {
    .close-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    }
}

.close-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.form-group input, textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; transition: all 0.2s ease; background-color: var(--surface); color: var(--text); }
.form-group input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.1); }
.submit-btn { width: 100%; padding: 12px; background-color: var(--primary); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.1s ease; }
@media (hover: hover) { .submit-btn:hover { background-color: #0081d6; } }
.submit-btn:active { background-color: #0077cc; transform: scale(0.98); }
.file-upload { display: flex; flex-direction: column; align-items: center; padding: 24px; border: 2px dashed var(--border); border-radius: 8px; margin-bottom: 16px; cursor: pointer; transition: all 0.1s ease; background-color: rgba(0, 149, 246, 0.05); }
@media (hover: hover) { .file-upload:hover { border-color: var(--primary); background-color: rgba(0, 149, 246, 0.1); } }
.file-upload:active { background-color: rgba(0, 149, 246, 0.15); border-color: var(--primary); transform: scale(0.98); }
.file-upload i { font-size: 36px; color: var(--text-light); margin-bottom: 8px; }
#image-preview { object-fit: contain; width: 100%; height: auto; max-height: 400px; border-radius: 8px; background-color: transparent; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state i { margin-bottom: 16px; font-size: 48px; }
.empty-state h3 { margin-bottom: 8px; font-weight: 600; font-size: 18px; }
.empty-state p { font-size: 14px; }

.auth-form.visible-flex { 
    display: block !important; 
    animation: slideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity; 
}

.no-image-post {
    position: relative; background: linear-gradient(135deg, var(--primary-light) 0%, rgba(0, 149, 246, 0.05) 100%);
    border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 300px; transition: transform 0.1s ease;
}
.no-image-icon { font-size: 64px; color: var(--primary); margin-bottom: 20px; opacity: 0.7; }
.no-image-text { color: var(--text-light); font-size: 16px; font-weight: 600; text-align: center; max-width: 80%; }
.post-content-only { padding: 30px 20px; }
.post-content-only .card-content { background: var(--surface); border-radius: 12px; padding: 20px; margin: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border: 1px solid var(--border); }
.post-content-only .card-content p { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0; text-align: center; }
@media (hover: hover) { .no-image-post:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 149, 246, 0.2); border-color: var(--primary); } }
.no-image-post:active { background-color: rgba(0, 149, 246, 0.1); transform: scale(0.99); }
[data-theme="dark"] .no-image-post { background: linear-gradient(135deg, rgba(0, 149, 246, 0.15) 0%, rgba(0, 149, 246, 0.05) 100%); border-color: rgba(0, 149, 246, 0.3); }
[data-theme="dark"] .no-image-icon { color: rgba(0, 149, 246, 0.8); }
[data-theme="dark"] .no-image-text { color: rgba(255, 255, 255, 0.7); }
[data-theme="dark"] .image-card .discussion-section { background-color: rgba(0,0,0,0.2); }
[data-theme="dark"] .image-card .add-comment { background-color: var(--surface); }

/* --- YÜKLEME ANİMASYONU --- */
.feed-loading { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    padding: 60px 20px; width: 100%; grid-column: 1 / -1; color: var(--text-light); 
    animation: fadeIn 0.5s ease; 
}

.feed-spinner { 
    width: 50px; height: 50px; 
    border: 4px solid rgba(0, 149, 246, 0.1); 
    border-radius: 50%; 
    border-top-color: var(--primary); 
    animation: feedSpin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 10px rgba(0, 149, 246, 0.1); 
}

.feed-spinner.small {
    width: 30px; height: 30px; 
    border-width: 3px;
    margin-bottom: 0;
}

#feed-sentinel {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feed-loading p { font-size: 15px; font-weight: 600; letter-spacing: 0.5px; color: var(--text); opacity: 0.7; }

/* --- GİZLİ HESAP UYARISI STİLLERİ --- */
.private-account-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 10px;
}
.private-account-message i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary);
    opacity: 0.6;
}
.private-account-message h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.private-account-message p {
    font-size: 15px;
    line-height: 1.5;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0081d6; }
.floating-nav { z-index: 999; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalAppear { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes feedSpin { to { transform: rotate(360deg); } }

@media (min-width: 1024px) { .main-content { padding-left: 160px; } }
@media (max-width: 1200px) { .home-content-wrapper { gap: 20px; } .filters-sidebar { width: 280px; } }
@media (max-width: 1024px) { .main-content { max-width: 100%; padding: 0 20px; } .filters-sidebar { width: 260px; padding: 20px; } .home-content-wrapper { gap: 15px; } }

/* --- MOBİL UYUMLULUK VE YÜKSEKLİK AYARLARI --- */
@media (max-width: 768px) {
    body { padding-bottom: 120px; } 
    .home-content-wrapper { flex-direction: column; gap: 0; } .home-main-content { padding-bottom: 20px; }
    .filters-sidebar { width: 100%; position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100% !important; max-height: none; z-index: 300; border-radius: 0; border: none; transform: translateX(100%); transition: transform 0.3s ease; display: none; }
    
    #close-filters { display: flex; }
    
    .filters-sidebar.active { display: flex; transform: translateX(0); }
    .filters-header { border-bottom: 1px solid var(--border); } .filters-scroll-content { padding: 20px; padding-top: 10px; }
    .filter-actions { padding: 15px 20px; padding-bottom: 70px !important; background-color: var(--surface); box-shadow: 0 -4px 15px rgba(0,0,0,0.1); position: relative; z-index: 20; }
    .mobile-filter-btn { display: flex; } .filters-container { padding: 0; } .content-header { padding: 0; }
    
    .post-media-container { 
        max-height: 600px; 
        min-height: auto; 
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent !important; 
    }
    .card-image { 
        max-height: 600px;
        height: auto !important;
        object-fit: contain;
    }
    
    .discussion-section.expanded { max-height: 600px; } .comments-container { max-height: 300px; padding: 12px; } .add-comment { padding: 12px; }
    .image-actions { padding: 8px 12px; } .action-btn, .discussion-btn { font-size: 12px; }
    .action-btn, .delete-post-btn, .comment-like-btn, .comment-delete-btn { padding: 6px; }
    .discussion-btn { padding: 6px 12px; }
    .main-content { padding: 0 15px; margin: 15px auto; } .filter-btn { padding: 16px 20px; font-size: 16px; }
    .no-image-post { min-height: 250px; } .no-image-icon { font-size: 48px; margin-bottom: 15px; } .no-image-text { font-size: 14px; }
    .post-content-only { padding: 15px; margin: 10px; } .post-content-only .card-content p { font-size: 14px; }
    .modal-content { margin-bottom: 30px; max-height: 85vh; overflow-y: auto; }
}
@media (max-width: 480px) {
    .main-content { padding: 0 12px; margin: 10px auto; } 
    .discussion-section.expanded { max-height: 400px; } .comments-container { max-height: 250px; padding: 10px; } .add-comment { padding: 10px; flex-wrap: wrap; }
    #comment-input { padding: 10px 14px; font-size: 16px; flex: 1; min-width: 0; }
    .action-left { gap: 8px; } .mobile-filter-btn { padding: 10px 16px; font-size: 14px; }
    .filter-actions { flex-direction: row; gap: 10px; } .filter-btn { padding: 12px; }
    .content-header h2 { font-size: 24px; } .content-header p { font-size: 14px; }
    .no-image-post { min-height: 200px; } .no-image-icon { font-size: 36px; margin-bottom: 12px; } .no-image-text { font-size: 13px; }
    
    .card-image { 
        max-height: 500px;
        height: auto !important;
    }
}

.discussion-modal-content { padding: 0 !important; max-width: 500px !important; width: 95% !important; max-height: 85vh !important; overflow: hidden !important; display: flex; flex-direction: column; }
.discussion-modal-content .modal-header { padding: 15px 20px; margin-bottom: 0; border-bottom: 1px solid var(--border); flex-shrink: 0; background: var(--surface); }
.discussion-image-container { background-color: #000; display: flex; align-items: center; justify-content: center; width: 100%; max-height: 350px; flex-shrink: 0; overflow: hidden; }
.discussion-image-container img { max-width: 100%; max-height: 350px; object-fit: contain; }
.discussion-content { display: flex; flex-direction: column; flex: 1; overflow: hidden; position: relative; background: var(--surface); }
.discussion-content .post-caption { padding: 15px; border-bottom: 1px solid var(--border); font-size: 14px; flex-shrink: 0; }
.discussion-content .comments-section { flex: 1; overflow-y: auto; padding-bottom: 0; display: flex; flex-direction: column; }
.discussion-content .comments-list { padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.discussion-content .add-comment { flex-shrink: 0; border-top: 1px solid var(--border); padding: 15px; background: var(--surface); z-index: 10; display: flex; align-items: center; gap: 10px; margin-top: 0; }
#discussion-modal #comment-input { flex: 1; padding: 12px 15px; border-radius: 25px; border: 1px solid var(--border); background: var(--background); color: var(--text); outline: none; min-width: 0; }
#discussion-modal #comment-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.1); }
#discussion-modal #submit-comment { background: transparent; border: none; color: var(--primary); font-size: 18px; cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; width: 40px; height: 40px; }
@media (hover: hover) { #discussion-modal #submit-comment:hover { transform: scale(1.1); background-color: var(--primary-light); border-radius: 50%; } }
#discussion-modal #submit-comment:active { transform: scale(0.9); background-color: var(--primary-light); border-radius: 50%; }

[data-theme="dark"] .filters-sidebar { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .filter-actions { background: #1e1e1e; border-top-color: #333; }
[data-theme="dark"] .filters-header { background: #1e1e1e; border-bottom-color: #333; }
[data-theme="dark"] .date-input { background: #2c2c2c; border-color: #444; }
[data-theme="dark"] .date-input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.7; cursor: pointer; }

/* --- TAM EKRAN GÖRSEL İZLEYİCİ --- */
.fullscreen-viewer {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    will-change: opacity;
}

.fullscreen-viewer.active {
    display: flex;
    opacity: 1;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: #ff4757;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

@media (hover: hover) {
    .close-fullscreen:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
    }
}

.close-fullscreen:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.fullscreen-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 20px;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (hover: hover) {
    .fullscreen-nav-btn:hover {
        background-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-50%) scale(1.1);
    }
}

.fullscreen-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
    opacity: 0.9;
}

.fullscreen-nav-btn.prev {
    left: 20px;
}

.fullscreen-nav-btn.next {
    right: 20px;
}

@media (max-width: 768px) {
    .fullscreen-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .fullscreen-nav-btn.prev { left: 10px; }
    .fullscreen-nav-btn.next { right: 10px; }
}

.fullscreen-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: zoom-in;
    padding: 20px;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform-origin: center center;
}

.fullscreen-img-container.zoomed {
    cursor: zoom-out;
}

@media (max-width: 768px) {
    .close-fullscreen {
        top: 20px; right: 20px; font-size: 20px; width: 40px; height: 40px;
    }
}

/* --- MOBİL PERFORMANS YAMASI (GPU & FPS Optimizasyonu) --- */
@media (max-width: 768px) {
    .media-blur-bg {
        display: none !important;
    }
    
    .post-media-container {
        background: linear-gradient(to bottom, #f8f9fa, #e9ecef) !important;
    }
    [data-theme="dark"] .post-media-container {
        background: linear-gradient(to bottom, #1e1e1e, #121212) !important;
    }

    .nav-container, .top-nav, .modal, .fullscreen-viewer, .floating-nav {
        backdrop-filter: blur(8px) !important; 
        -webkit-backdrop-filter: blur(8px) !important;
    }

    .image-card, .profile-header, .auth-form {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }

    .image-card, .floating-nav, .top-nav {
        transform: translateZ(0); 
        will-change: transform; 
    }
}

/* --- MULTI-IMAGE SLIDER (CAROUSEL) --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--surface);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-slide {
    min-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.slider-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* --- SLIDER OKLARI GÜNCELLEMESİ (KARANLIK MOD & MOBİL UYUMLU) --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    
    background: rgba(255, 255, 255, 0.9);
    color: #000000 !important; 
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    opacity: 0.85; 
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

@media (hover: hover) {
    .slider-arrow:hover {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
        background: #ffffff;
        box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    }
}

[data-theme="dark"] .slider-arrow {
    background: rgba(45, 45, 45, 0.9);
    color: #ffffff !important; 
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

[data-theme="dark"] .slider-arrow:hover {
    background: rgba(60, 60, 60, 1);
    color: #fff !important;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.multi-image-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 16px;
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .slider-container {
        height: auto !important; 
        min-height: 250px; 
    }
    
    .slider-slide {
        height: auto !important;
    }
    
    .slider-slide img {
        max-height: 600px; 
        width: 100%;
        object-fit: contain;
    }
}

/* --- TAKİPÇİ / TAKİP EDİLEN LİSTESİ --- */
.user-list-item { display: flex; align-items: center; padding: 10px 15px; gap: 15px; cursor: pointer; border-radius: 12px; transition: background-color 0.2s ease; margin-bottom: 5px; background: var(--surface); border: 1px solid transparent; }
@media (hover: hover) { .user-list-item:hover { background-color: var(--primary-light); border-color: rgba(0, 149, 246, 0.2); } }
.user-list-item:active { background-color: var(--primary-light); transform: scale(0.98); }
.user-list-avatar { width: 44px; height: 44px; border-radius: 50%; background-color: var(--border); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); flex-shrink: 0; overflow: hidden; }
.user-list-info { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.user-list-username { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-list-fullname { font-size: 12px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-user-list { text-align: center; padding: 30px 10px; color: var(--text-light); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-user-list i { font-size: 32px; opacity: 0.5; color: var(--primary); }

.user-list-avatar.default-avatar i {
    color: var(--text-light); 
    font-size: 20px;
    opacity: 0.6; 
}

/* --- İNTERNET BAĞLANTISI YOK UYARISI EKRANI STİLLERİ --- */
.offline-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.offline-overlay.active {
    opacity: 1;
}
.offline-content {
    background-color: var(--surface);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 90%;
    width: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.offline-overlay.active .offline-content {
    transform: scale(1);
}
.offline-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    width: 80px;
    height: 80px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 50%;
}
.offline-icon-wrapper .fa-wifi {
    font-size: 35px;
    color: #ff4757;
}
.offline-icon-wrapper .fa-slash {
    position: absolute;
    font-size: 45px;
    color: #ff4757;
}
.offline-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.offline-content p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* --- HAKKINDA MODALI STİLLERİ --- */
.about-content { display: flex; flex-direction: column; gap: 20px; }
.about-logo-container { text-align: center; padding: 15px 0; background: linear-gradient(135deg, var(--primary-light) 0%, rgba(0, 149, 246, 0.05) 100%); border-radius: 12px; border: 1px solid var(--border); }
.about-logo { max-width: 150px; height: auto; }
.about-description { font-size: 15px; line-height: 1.6; color: var(--text); text-align: center; }
.rules-section { background: var(--background); padding: 20px; border-radius: 12px; border: 1px solid var(--border); }
.rules-section h4 { font-size: 16px; color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.rules-list { list-style-type: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rules-list li { font-size: 13px; color: var(--text); line-height: 1.5; position: relative; padding-left: 20px; }
.rules-list li::before { content: '•'; color: var(--primary); font-weight: bold; font-size: 18px; position: absolute; left: 0; top: -3px; }
.about-footer { text-align: center; padding-top: 15px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-light); }
.about-footer strong { color: var(--primary); font-weight: 700; }

/* --- BİLDİRİMLER (YENİ EKLENEN) --- */
.notification-badge { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; background-color: #ff4757; border-radius: 50%; border: 2px solid var(--surface); display: none; }
.notifications-list { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; padding-right: 5px; }
.notification-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--background); border-radius: 12px; border: 1px solid var(--border); transition: all 0.2s ease; cursor: pointer; position: relative; }
.notification-item.unread { background: var(--primary-light); border-color: rgba(0, 149, 246, 0.3); }
.notification-item:active { transform: scale(0.98); }
.notification-avatar { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background-color: var(--border); }
.notification-content { flex: 1; font-size: 13px; color: var(--text); line-height: 1.4; }
.notification-content strong { color: var(--text); cursor: pointer; }
@media (hover: hover) { .notification-content strong:hover { text-decoration: underline; color: var(--primary); } }
.notification-time { font-size: 11px; color: var(--text-light); margin-top: 4px; display: block; }
.notification-actions { display: flex; gap: 8px; flex-shrink: 0; margin-top: 8px;}
.notif-btn { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; }
.notif-btn.accept { background: var(--primary); color: white; }
.notif-btn.reject { background: var(--border); color: var(--text); }
.new-tag { position: absolute; top: -5px; left: -5px; background: #ff4757; color: white; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 10px; border: 2px solid var(--surface); z-index: 2; }
.notif-post-thumbnail { width: 44px; height: 44px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; border: 1px solid var(--border); }


/* --- SKELETON LOADER (YÜKLEME İSKELETİ PERFORMANS EKLENTİSİ) --- */
.skeleton-card {
    background: var(--surface);
    border-radius: 16px;
    margin: 0 auto 20px auto;
    padding: 15px;
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.skeleton-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    width: 100%;
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-image {
    width: 100%;
    height: 300px;
    background: var(--border);
    border-radius: 12px;
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

@keyframes skeletonPulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

[data-theme="dark"] .skeleton-avatar,
[data-theme="dark"] .skeleton-line,
[data-theme="dark"] .skeleton-image {
    background: #333333;
}
