:root {
    --meydan-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-soft: rgba(37, 99, 235, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    background-color: var(--meydan-bg);
    margin: 0;
    padding: 0;
}

/* 🌟 MASAÜSTÜ CONTAINER */
.meydan-container {
    padding-top: calc(var(--global-header-offset) + 16px) !important;
    padding-bottom: 60px;
    min-height: 100vh;
    width: 100%;
}

.meydan-grid {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .meydan-grid {
        grid-template-columns: 80px 1fr;
        gap: 1.5rem;
    }
    .meydan-right-sidebar {
        display: none;
    }
}

.meydan-nav {
    list-style: none;
    padding: 0;
    position: sticky;
    top: calc(var(--global-header-offset) + 20px);
}

.meydan-nav li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 100px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.meydan-nav li a:hover,
.meydan-nav li a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.post-creator-card {
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
}

.input-capsule {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    transition: all 0.2s ease;
}

.input-capsule:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

/* 🌟 INSTAGRAM & FACEBOOK STYLE FIXED TOP TAB BAR */
.meydan-fb-tabs {
    display: none;
}

@media (max-width: 991px) {
    .meydan-container {
        padding-top: calc(var(--global-header-offset) + 48px) !important;
        margin-top: 0 !important;
        padding-bottom: 95px !important;
    }
    
    .meydan-fb-tabs {
        display: flex !important;
        position: fixed !important;
        top: calc(var(--global-header-offset) - 1px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 48px !important;
        background: #ffffff !important;
        z-index: 9995 !important;
        border: none !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 3px 10px -2px rgba(15, 23, 42, 0.04) !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: stretch !important;
    }
    
    .fb-tab {
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        border: none !important;
        background: transparent !important;
        color: #64748b !important;
        cursor: pointer !important;
        position: relative !important;
        text-decoration: none !important;
        padding: 4px 0 !important;
        transition: color 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .fb-tab-icon-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 22px !important;
    }
    
    .fb-tab-icon-wrap i {
        font-size: 1.18rem !important;
        color: #64748b !important;
        transition: transform 0.15s ease, color 0.15s ease !important;
    }
    
    .fb-tab-label {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em !important;
        line-height: 1 !important;
    }
    
    .fb-tab-indicator {
        display: none !important;
    }
    
    /* AKTİF SEKME (INSTAGRAM / FB ŞIK ALT ÇİZGİ) */
    .fb-tab.active {
        color: #ff385c !important;
    }
    
    .fb-tab.active .fb-tab-icon-wrap i {
        color: #ff385c !important;
        transform: scale(1.08) !important;
    }
    
    .fb-tab.active .fb-tab-label {
        color: #ff385c !important;
        font-weight: 800 !important;
    }
    
    .fb-tab.active .fb-tab-indicator {
        display: block !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 18% !important;
        right: 18% !important;
        height: 3px !important;
        background: #ff385c !important;
        border-radius: 4px 4px 0 0 !important;
        box-shadow: 0 -1px 6px rgba(255, 56, 92, 0.4) !important;
    }
    
    .fb-avatar {
        width: 22px !important;
        height: 22px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 1.5px solid #cbd5e1 !important;
        transition: all 0.15s ease !important;
    }
    
    .fb-tab.active .fb-avatar {
        border-color: #ff385c !important;
        box-shadow: 0 0 0 2px rgba(255, 56, 92, 0.25) !important;
    }
    
    .fb-badge {
        width: 8px !important;
        height: 8px !important;
        background: #ef4444 !important;
        border-radius: 50% !important;
        position: absolute !important;
        top: -1px !important;
        right: -3px !important;
        border: 1.5px solid #fff !important;
    }
    
    .meydan-grid {
        display: block !important;
        width: 100% !important;
        margin-top: 0 !important;
    }
    
    .meydan-left-sidebar,
    .meydan-right-sidebar {
        display: none !important;
    }
    
    .meydan-main {
        padding: 0 !important;
        width: 100% !important;
        margin-top: 0 !important;
    }
    
    .container {
        padding: 0 10px !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .post-creator-card {
        margin: 0.5rem 0 0.85rem 0 !important;
        width: 100% !important;
        padding: 0.65rem 0.75rem !important;
        border-radius: 14px !important;
    }
}

.btn-quick-delete {
    font-size: 0.75rem;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fee2e8;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    display: none;
}

.btn-admin-delete {
    font-size: 0.75rem;
    color: #2563eb;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    transition: 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.notif-item:hover {
    background: #f8fafc;
    border-color: #f1f5f9;
}

.notif-item.unread {
    background: #f0f9ff;
    border-color: #e0f2fe;
}

.tag-pill {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    transition: 0.2s;
}

.tag-pill:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
}