@media (max-width: 991px) {
    .chat-list { width: 80px; }
    .chat-user-info { display: none; }
    /* .chat-container { height: 600px; } // Removed to fit new layout */
}

@media (max-width: 768px) {
    .hover-white:hover { color: #fff !important; }
    .f-item-stats { display: none; }
    .post-card { flex-direction: column; }
    .post-user { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    
    /* Mobil Sıkışıklık Giderme */
    .f-page-title { font-size: 1.4rem; }
    .display-5 { font-size: 1.8rem !important; }
    .f-card-header { padding: 12px 16px; }
    .f-card-body { padding: 16px; }
    .f-item { padding: 12px 16px; }
    .post-content { padding: 20px 16px; min-height: auto; }
    .f-meta-bar { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 1.5rem; }
    .f-meta-bar > div { width: 100%; justify-content: space-between; display: flex; flex-wrap: wrap; }
    
    .avatar-lg { width: 48px; height: 48px; font-size: 1.4rem; }
    
    .f-icon-box { min-width: 36px !important; width: 36px !important; height: 36px !important; font-size: 0.9rem; margin-right: 12px !important; }
    
    /* Yazı Sıkışmasını Önlemek İçin Tablo Ayarları */
    .table td, .table th { padding: 10px 8px !important; font-size: 0.8rem; }

    /* Blur Content Mobile Optimization */
    .blur-content {
        padding: 2rem 1.5rem !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-width: 95% !important;
    }
    
    .blur-content h4 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.3;
    }
    
    .blur-content p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 10px;
    }
    
    .blur-btn-group {
        flex-direction: column;
        gap: 12px;
        margin-top: 1.5rem !important;
    }
    
    .blur-btn {
        width: 100%;
        padding: 12px !important;
        font-size: 0.9rem !important;
        justify-content: center;
    }

    /* Mobil Menü Estetiği */
    .navbar-collapse {
        background: rgba(10, 11, 16, 0.98);
        margin-top: 15px;
        border-radius: 15px;
        padding: 20px;
        border: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-radius: 10px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        font-weight: 500;
        transition: var(--transition);
    }
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--p) !important;
    }
    .navbar-nav .nav-link i {
        font-size: 1.2rem;
        color: var(--p);
        opacity: 0.8;
    }
    .navbar-user-tools {
        background: rgba(255, 255, 255, 0.02);
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        border-radius: 0 0 15px 15px;
    }

    /* Chat Fixes for Mobile */
    .chat-container {
        height: calc(100vh - 180px) !important; /* Header + BottomNav + Padding payı */
        min-height: auto !important;
    }
    
    .chat-wrapper {
        padding-top: 10px !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 576px) {
    .f-btn { padding: 8px 16px; font-size: 0.75rem; }
    .f-badge { padding: 3px 8px; font-size: 0.65rem; }
}

/* FIXED BOTTOM MOBILE NAVIGATION */
@media (max-width: 768px) {
    body { padding-bottom: 80px; } /* Content should not be hidden behind the nav */
    
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0px; /* Slight lift for iOS */
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(15, 17, 26, 0.95);
        backdrop-filter: blur(15px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.08); /* More subtle border */
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5); /* Stronger shadow for depth */
    }

    .mobile-bottom-nav .nav-item {
        color: #8a8d9b; /* Muted cooler gray */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.72rem;
        text-decoration: none;
        flex: 1;
        height: 100%;
        transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        font-weight: 500;
        letter-spacing: 0.3px;
        position: relative;
    }

    /* Active State Indicator */
    .mobile-bottom-nav .nav-item.active {
        color: #fff;
        font-weight: 600;
    }
    
    /* Optional Top Line Indicator for Active */
    .mobile-bottom-nav .nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        width: 40%;
        height: 3px;
        background: var(--p);
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        box-shadow: 0 2px 8px var(--p-glow);
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.5rem;
        margin-bottom: 4px;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-nav .nav-item.active i {
        transform: translateY(-2px);
        color: var(--p);
        text-shadow: 0 0 15px var(--p-glow); /* Glowing active icon */
    }

    /* CENTER FLOATING BUTTON */
    .nav-item-center-wrapper {
        position: relative;
        width: 60px;
        height: 60px;
        display: flex;
        justify-content: center;
        margin-bottom: 35px; /* Lifts it up */
    }

    .nav-item-center {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--p) 0%, #ff9800 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        font-size: 1.8rem;
        box-shadow: 0 8px 20px rgba(255, 179, 0, 0.5);
        border: 4px solid var(--bg-body); /* Creates 'cutout' effect */
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy effect */
    }

    .nav-item-center:hover, .nav-item-center:active {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 12px 25px rgba(255, 179, 0, 0.7);
    }
    
    /* Touch Feedback Ripple Effect (Optional or native) */
    .mobile-bottom-nav .nav-item:active {
        opacity: 0.7;
        transform: scale(0.95);
    }
}
/* FOOTER MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .footer {
        margin-top: 0 !important;
        padding-top: 20px !important;
        text-align: left;
    }

    .footer .row {
        gap: 1rem;
    }
    
    /* Marka Bölümü */
    .footer .col-lg-4:first-child {
        text-align: center;
        border-bottom: 1px solid var(--border);
        padding-bottom: 15px;
        margin-bottom: 5px;
    }

    .f-footer-brand {
        font-size: 1.3rem; 
        margin-bottom: 5px;
    }

    .f-footer-desc {
        max-width: 100% !important;
        margin: 5px auto 10px;
        font-size: 0.85rem;
        color: #d1d5db; /* Daha açık gri, opacity yerine */
        line-height: 1.5;
    }

    .footer .d-flex.gap-3.mt-4 {
        justify-content: center;
        margin-top: 0.5rem !important;
        gap: 0.8rem !important;
    }

    /* Başlıklar */
    .footer h4 {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #adb5bd !important; /* Daha okunabilir gri */
        margin-bottom: 8px !important;
        font-weight: 800;
        opacity: 1; /* Opacity kaldırıldı */
        padding-left: 2px;
    }
    
    /* Link Listesi - Grid Sistem */
    .footer ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px; /* Tıklama alanı için biraz daha boşluk */
        padding: 0;
    }

    /* Link Kartları */
    .f-footer-link {
        background: rgba(255, 255, 255, 0.08); /* Daha belirgin arka plan */
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        padding: 12px 5px;
        font-size: 0.9rem; /* Fontu biraz büyüttüm */
        font-weight: 500;
        color: #ffffff !important; /* Tam beyaz */
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Sosyal Medya İkonları */
    .social-link {
        font-size: 1.2rem !important;
        background: rgba(255,255,255,0.1);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff !important;
    }
}
